| 21 | using namespace Suscan; |
| 22 | |
| 23 | CancellableTaskContext::CancellableTaskContext( |
| 24 | CancellableTask *task, |
| 25 | QString const &title) |
| 26 | { |
| 27 | this->mThread = new QThread; |
| 28 | this->mTask = task; |
| 29 | this->mTitle = title; |
| 30 | this->mCreationTime = QDateTime::currentDateTime(); |
| 31 | this->mLastUpdate = this->mCreationTime; |
| 32 | this->connectAll(); |
| 33 | |
| 34 | task->moveToThread(this->mThread); |
| 35 | } |
| 36 | |
| 37 | void |
| 38 | CancellableTaskContext::connectAll(void) |
nothing calls this directly
no test coverage detected