summaryrefslogtreecommitdiffstats
path: root/job.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'job.cpp')
-rw-r--r--job.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/job.cpp b/job.cpp
index ae3a9e2..af35104 100644
--- a/job.cpp
+++ b/job.cpp
@@ -2,14 +2,19 @@
#include "video.h"
#include <QtConcurrentRun>
-Job::Job(QObject *parent)
+Job::Job(Video *parent)
: QObject(parent),
- m_gui(0)
+ m_gui(0),
+ m_video(parent)
{
m_watcher = new QFutureWatcher<bool>;
m_watcher->setParent(this);
connect(m_watcher, SIGNAL(finished()), this, SLOT(jobFinished()));
}
+Video* Job::video() const
+{
+ return m_video;
+}
void Job::runJob()
{
m_watcher->setFuture(QtConcurrent::run(this, &Job::executeJob));