12 #ifndef CXPROCESSWRAPPER_H_
13 #define CXPROCESSWRAPPER_H_
15 #include "cxResourceExport.h"
18 #include "boost/shared_ptr.hpp"
19 #include <QStringList>
47 explicit ProcessWrapper(QString name =
"executable", QObject* parent = NULL);
50 QProcess *getProcess();
52 void launchWithRelativePath(QString executable, QStringList arguments = QStringList());
53 bool launch(QString executable, QStringList argument = QStringList());
57 qint64 write(
const char * data);
58 bool waitForStarted(
int msecs = 30000);
59 bool waitForFinished(
int msecs = 30000);
60 void turnOffReporting();
66 QString getExecutableInBundlesAbsolutePath(QString exeInBundle);
67 bool internalLaunch(QString executable, QStringList arguments);
69 QPointer<QProcess> mProcess;
72 QString mLastExecutablePath;