1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/process.h Wed Jul 30 15:06:06 2008 +0000
1.3 @@ -0,0 +1,31 @@
1.4 +#ifndef PROCESS_H
1.5 +#define PROCESS_H
1.6 +
1.7 +#include <qprocess.h>
1.8 +#include <qstring.h>
1.9 +
1.10 +
1.11 +using namespace std;
1.12 +
1.13 +class Process:public QProcess
1.14 +{
1.15 + Q_OBJECT
1.16 +public:
1.17 + Process ();
1.18 + ~Process ();
1.19 + void clear();
1.20 + void waitFinished();
1.21 + QString getErrout();
1.22 + QString getStdout();
1.23 +
1.24 +
1.25 +public slots:
1.26 + virtual void readProcErrout();
1.27 + virtual void readProcStdout();
1.28 +
1.29 +private:
1.30 + QString errOut;
1.31 + QString stdOut;
1.32 +};
1.33 +
1.34 +#endif