diff options
Diffstat (limited to 'job.h')
-rw-r--r-- | job.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); }; |