libkdepim Library API Documentation

KPIM::CollectingProcess Class Reference

An output collecting KProcess class. More...

#include <collectingprocess.h>

List of all members.

Public Member Functions

 CollectingProcess (QObject *parent=0, const char *name=0)
bool start (RunMode runmode, Communication comm)
QByteArray collectedStdout ()
QByteArray collectedStderr ()

Protected Member Functions

void virtual_hook (int id, void *data)


Detailed Description

An output collecting KProcess class.

This class simplifies the usage of KProcess by collecting all output (stdout/stderr) of the process.

Author:
Ingo Kloecker <kloecker@kde.org>

Definition at line 48 of file collectingprocess.h.


Member Function Documentation

bool KPIM::CollectingProcess::start RunMode  runmode,
Communication  comm
 

Starts the process in NotifyOnExit mode and writes in to stdin of the process.

QByteArray KPIM::CollectingProcess::collectedStdout  ) 
 

Returns the contents of the stdout buffer and clears it afterwards.

QByteArray KPIM::CollectingProcess::collectedStderr  ) 
 

Returns the contents of the stderr buffer and clears it afterwards.

void KPIM::CollectingProcess::virtual_hook int  id,
void *  data
[protected]
 


The documentation for this class was generated from the following file:
KDE Logo
This file is part of the documentation for libkdepim Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:29 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003