-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmentothread.h
More file actions
35 lines (31 loc) · 741 Bytes
/
mentothread.h
File metadata and controls
35 lines (31 loc) · 741 Bytes
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
#ifndef MENTOTHREAD_H
#define MENTOTHREAD_H
#include <QSettings>
#include <QThread>
#include <QProcess>
class MentoThread : public QThread
{
Q_OBJECT
public:
explicit MentoThread(QSettings * settings);
void run();
~MentoThread();
signals:
void processCrashed();
void output(QString str);
void notify(QString str);
void successNotify();
void statusChanged(QString str,int status);
void error(QString errdetail);
void exitSuccess();
void startFailure();
void authError();
void noConfig();
public slots:
void terminate();
void terminatedHandle();
void processFinished(int status,QProcess::ExitStatus qstatus);
private:
QSettings * settings;
};
#endif // MENTOTHREAD_H