libkdepim
KPIM::CollectingProcess Class Reference
An output collecting KProcess class. More...
#include <collectingprocess.h>
Inherits KProcess.
Public Member Functions | |
CollectingProcess (TQObject *parent=0, const char *name=0) | |
bool | start (RunMode runmode, Communication comm) |
TQByteArray | collectedStdout () |
TQByteArray | 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.
Definition at line 49 of file collectingprocess.h.
Member Function Documentation
bool CollectingProcess::start | ( | RunMode | runmode, | |
Communication | comm | |||
) |
Starts the process in NotifyOnExit mode and writes in to stdin of the process.
Definition at line 62 of file collectingprocess.cpp.
TQByteArray CollectingProcess::collectedStdout | ( | ) |
Returns the contents of the stdout buffer and clears it afterwards.
Definition at line 96 of file collectingprocess.cpp.
TQByteArray CollectingProcess::collectedStderr | ( | ) |
Returns the contents of the stderr buffer and clears it afterwards.
Definition at line 116 of file collectingprocess.cpp.
The documentation for this class was generated from the following files: