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 void launch(QString executable, QStringList argument = QStringList());
57 qint64 write(
const char * data);
58 bool waitForStarted(
int msecs = 30000);
59 bool waitForFinished(
int msecs = 30000);
65 QString getExecutableInBundlesAbsolutePath(QString exeInBundle);
66 void internalLaunch(QString executable, QStringList arguments);
68 QPointer<QProcess> mProcess;
71 QString mLastExecutablePath;
boost::shared_ptr< class ProcessWrapper > ProcessWrapperPtr
boost::shared_ptr< class ProcessReporter > ProcessReporterPtr
Namespace for all CustusX production code.