33 #ifndef CXPROCESSWRAPPER_H_
34 #define CXPROCESSWRAPPER_H_
36 #include "cxResourceExport.h"
39 #include "boost/shared_ptr.hpp"
40 #include <QStringList>
67 explicit ProcessWrapper(QString name =
"executable", QObject* parent = NULL);
70 QProcess* getProcess();
72 void launchWithRelativePath(QString executable, QStringList arguments = QStringList());
73 void launch(QString executable, QStringList argument = QStringList());
77 qint64 write(
const char * data);
78 bool waitForStarted(
int msecs = 30000);
79 bool waitForFinished(
int msecs = 30000);
82 QString getExecutableInBundlesAbsolutePath(QString exeInBundle);
83 void internalLaunch(QString executable, QStringList arguments);
88 QString mLastExecutablePath;
boost::shared_ptr< class ProcessWrapper > ProcessWrapperPtr
boost::shared_ptr< class ProcessReporter > ProcessReporterPtr