summaryrefslogtreecommitdiffstats
path: root/job.h
diff options
context:
space:
mode:
Diffstat (limited to 'job.h')
-rw-r--r--job.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/job.h b/job.h
index 53843e5..721d63b 100644
--- a/job.h
+++ b/job.h
@@ -14,19 +14,22 @@ public:
virtual Video::Jobs jobType() const = 0;
QWidget* widget();
Video* video() const;
+ bool terminated() const;
protected:
Job(Video *parent, bool threaded);
virtual bool executeJob() = 0;
virtual QWidget* gui() = 0;
+ virtual void kill() = 0;
QFutureWatcher<bool>* watcher() const;
private:
QFutureWatcher<bool> *m_watcher;
QWidget *m_gui;
Video *m_video;
+ bool m_terminated;
private slots:
void jobFinished();
public slots:
- virtual void terminate() = 0;
+ void terminate();
signals:
void completed(bool result);
};