class SystemcallPrivate : public QObject
{
Q_OBJECT
+
public:
SystemcallPrivate(std::string const & outfile);
~SystemcallPrivate();
static void killProcess(QProcess * p);
+
+public Q_SLOTS:
+ void stdOut();
+ void stdErr();
+ void processError(QProcess::ProcessError);
+ void processStarted();
+ void processFinished(int, QProcess::ExitStatus status);
+
+
private:
/// Pointer to the process to monitor.
- QProcess * proc_;
+ QProcess * process_;
+
/// Index to the standard output buffer.
- size_t outindex_;
+ size_t outIndex_;
/// Index to the standard error buffer.
- size_t errindex_;
+ size_t errIndex_;
///
- std::string outfile;
+ std::string outFile_;
+
/// Size of buffers.
- static size_t const bufsize_ = 200;
+ static size_t const bufferSize_ = 200;
/// Standard output buffer.
- char outdata_[bufsize_];
+ char outData_[bufferSize_];
/// Standard error buffer.
- char errdata_[bufsize_];
- ///
+ char errData_[bufferSize_];
+
bool terminalErrExists_;
- ///
bool terminalOutExists_;
- bool process_events;
- QString cmd_;
+ bool processEvents_;
void waitAndProcessEvents();
void processEvents();
-
void killProcess();
-
-public Q_SLOTS:
- void stdOut();
- void stdErr();
- void processError(QProcess::ProcessError);
- void processStarted();
- void processFinished(int, QProcess::ExitStatus status);
-
-Q_SIGNALS:
+ QString cmd_;
};