libkdepim
KPIM::CollectingProcess Class Reference
#include <collectingprocess.h>
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.
Public Member Functions | |
CollectingProcess (QObject *parent=0, const char *name=0) | |
~CollectingProcess () | |
bool | start (RunMode runmode, Communication comm) |
QByteArray | collectedStdout () |
QByteArray | collectedStderr () |
Protected Member Functions | |
void | virtual_hook (int id, void *data) |
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.
QByteArray CollectingProcess::collectedStdout | ( | ) |
Returns the contents of the stdout buffer and clears it afterwards.
Definition at line 96 of file collectingprocess.cpp.
QByteArray 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: