| 83 | } |
| 84 | |
| 85 | bool TaskCommander::search(const SearchParams ¶ms) |
| 86 | { |
| 87 | if (d->isWorking) |
| 88 | return false; |
| 89 | |
| 90 | d->isWorking = true; |
| 91 | QMetaObject::invokeMethod(d->srWorker.data(), |
| 92 | "search", |
| 93 | Qt::QueuedConnection, |
| 94 | Q_ARG(SearchParams, params)); |
| 95 | |
| 96 | return true; |
| 97 | } |
| 98 | |
| 99 | bool TaskCommander::replace(const ReplaceParams ¶ms) |
| 100 | { |