-
Notifications
You must be signed in to change notification settings - Fork 7
/
gameprocess.h
51 lines (39 loc) · 1.08 KB
/
gameprocess.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#ifndef GAMEPROCESS_H
#define GAMEPROCESS_H
#include <QDialog>
#include <QProcess>
class ConfigParser;
namespace Ui {
class GameProcess;
}
class WinDebugMonitor;
class GameProcess : public QDialog
{
Q_OBJECT
public:
explicit GameProcess(ConfigParser* parser, QWidget *parent = 0);
~GameProcess();
bool start(const QString& folder, const QString& executable, const QStringList& arguments);
public slots:
void startError(QProcess::ProcessError err);
void outputChannelDataReady();
void outputDebugString(int processId, QString str);
void outputDebugString(QString str);
void finished(int, QProcess::ExitStatus);
void started();
void dumpConfigValues();
void killProcess();
void saveLogToFile();
void clearOutputLogScreen();
signals:
void processFinished(GameProcess* process, int exitCode);
private:
Ui::GameProcess *ui;
QProcess* process;
ConfigParser* configParser;
#ifdef Q_OS_WIN32
public:
static WinDebugMonitor* debugMonitor;
#endif
};
#endif // GAMEPROCESS_H