blob: 11731864d98accbf002d89f310ecea37880e9d47 (
plain)
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
|
// Copyright 2008 Nanorex, Inc. See LICENSE file for details.
#ifndef JOBMONITOR_H
#define JOBMONITOR_H
#include <QObject>
#include <QThread>
#include <QString>
/* CLASS: JobMonitor */
class JobMonitor : public QThread {
Q_OBJECT
public:
JobMonitor(const QString& initString);
virtual ~JobMonitor();
signals:
void startedMonitoring(const QString& processType, const QString& id,
const QString& title);
void jobFinished(const QString& id);
void jobAborted(const QString& id);
public slots:
virtual void abortJob() = 0;
protected:
QString initString;
};
#endif
|