| 97 | } |
| 98 | |
| 99 | bool TaskCommander::replace(const ReplaceParams ¶ms) |
| 100 | { |
| 101 | if (d->isWorking) |
| 102 | return false; |
| 103 | |
| 104 | QMetaObject::invokeMethod(d->srWorker.data(), |
| 105 | "replace", |
| 106 | Qt::QueuedConnection, |
| 107 | Q_ARG(ReplaceParams, params)); |
| 108 | |
| 109 | d->isWorking = true; |
| 110 | return true; |
| 111 | } |
| 112 | |
| 113 | void TaskCommander::stop() |
| 114 | { |