1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 13:12:50 +00:00
OpenMW/apps/opencs/model/doc/runner.hpp

39 lines
708 B
C++
Raw Normal View History

2014-09-02 08:21:17 +00:00
#ifndef CSM_DOC_RUNNER_H
#define CSM_DOC_RUNNER_H
#include <QObject>
#include <QProcess>
namespace CSMDoc
{
class Runner : public QObject
{
Q_OBJECT
QProcess mProcess;
bool mRunning;
2014-09-02 08:21:17 +00:00
public:
Runner();
void start();
void stop();
/// \note Running state is entered when the start function is called. This
/// is not necessarily identical to the moment the child process is started.
bool isRunning() const;
2014-09-02 08:21:17 +00:00
signals:
void runStateChanged();
2014-09-02 08:21:17 +00:00
private slots:
void finished (int exitCode, QProcess::ExitStatus exitStatus);
};
}
#endif