33 #ifndef CXPROCESSWRAPPER_H_
34 #define CXPROCESSWRAPPER_H_
36 #include "cxResourceExport.h"
39 #include "boost/shared_ptr.hpp"
40 #include <QStringList>
68 explicit ProcessWrapper(QString name =
"executable", QObject* parent = NULL);
71 QProcess *getProcess();
73 void launchWithRelativePath(QString executable, QStringList arguments = QStringList());
74 void launch(QString executable, QStringList argument = QStringList());
78 qint64 write(
const char * data);
79 bool waitForStarted(
int msecs = 30000);
80 bool waitForFinished(
int msecs = 30000);
86 QString getExecutableInBundlesAbsolutePath(QString exeInBundle);
87 void internalLaunch(QString executable, QStringList arguments);
89 QPointer<QProcess> mProcess;
92 QString mLastExecutablePath;
boost::shared_ptr< class ProcessWrapper > ProcessWrapperPtr
boost::shared_ptr< class ProcessReporter > ProcessReporterPtr