10 #ifndef GUARD_PROCRUN_H_INCLUDE
11 #define GUARD_PROCRUN_H_INCLUDE
13 #include <procrun/procrun-config.h>
21 class PROCRUN_EXPORT
ProcRun :
public QProcess {
34 return end_time_.secsTo (start_time_);
38 const QStringList & input);
40 int durationInSeconds () {
41 return end_time_.secsTo (start_time_);
44 int durationInMiliSeconds () {
45 return end_time_.msecsTo (start_time_);
52 QProcess::ProcessError error);
57 QProcess::ExitStatus exitStatus);
60 readyReadStandardErrorSlot ();
63 readyReadStandardOutputSlot ();
70 QProcess::ProcessState newState);
74 QDateTime start_time_;
76 QString std_err_output_;
77 QString std_out_output_;
80 QList<QProcess::ProcessError> errors_;
81 QList<QProcess::ProcessState> states_;
88 #endif // GUARD_PROCRUN_H_INCLUDE
Helper class to run a process.
Definition: procrun.h:21