KPIM::CollectingProcess Class Reference

#include <collectingprocess.h>

Inherits TDEProcess.

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 TDEProcess class.

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

Author
Ingo Kloecker kloec.nosp@m.ker@.nosp@m.kde.o.nosp@m.rg

Definition at line 49 of file collectingprocess.h.

Member Function Documentation

◆ collectedStderr()

TQByteArray CollectingProcess::collectedStderr ( )

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

Definition at line 116 of file collectingprocess.cpp.

◆ collectedStdout()

TQByteArray CollectingProcess::collectedStdout ( )

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

Definition at line 96 of file collectingprocess.cpp.

◆ start()

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.


The documentation for this class was generated from the following files: