-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathqJob.h
More file actions
35 lines (27 loc) · 697 Bytes
/
qJob.h
File metadata and controls
35 lines (27 loc) · 697 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 __qJob_h
#define __qJob_h
// Qt includes
#include <QObject>
#include <QMetaType>
#include <QProcess>
#include <QThread>
//-----------------------------------------------------------------------------
Q_DECLARE_METATYPE(QProcess::ExitStatus)
//-----------------------------------------------------------------------------
class qJob : public QThread
{
Q_OBJECT
public:
typedef QThread Superclass;
qJob(const QString& path, QObject * parent = 0);
virtual ~qJob();
protected slots:
void applicationStarted();
void applicationFinished(int exitCode, QProcess::ExitStatus exitStatus);
protected:
virtual void run();
private:
QString Path;
QProcess * Process;
};
#endif