diff -r 000000000000 -r 4c57ab32a7fe process.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/process.cpp Sun Jan 30 12:58:48 2005 +0000 @@ -0,0 +1,51 @@ +#include "process.h" + +///////////////////////////////////////////////////////////////// +// Process +///////////////////////////////////////////////////////////////// +Process::Process() +{ + connect( this, SIGNAL(readyReadStderr()), + this, SLOT(readProcErrout()) ); + connect( this, SIGNAL(readyReadStdout()), + this, SLOT(readProcStdout()) ); + clear(); +} + +Process::~Process() +{ +} + +void Process::clear() +{ + errOut=""; + stdOut=""; +} + +void Process::waitFinished() +{ + while (isRunning()) + { + // FIXME use some kind of sleep here... + } +} + +void Process::readProcErrout() +{ + errOut+=readStderr(); +} + +void Process::readProcStdout() +{ + stdOut+=readStdout(); +} + +QString Process::getErrout() +{ + return errOut; +} + +QString Process::getStdout() +{ + return stdOut; +}