MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / pushTask

Method pushTask

Suscan/MultitaskController.cpp:213–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void
214MultitaskController::pushTask(CancellableTask *task, QString const &title)
215{
216 CancellableTaskContext *ctx = new CancellableTaskContext(task, title);
217
218 this->taskList.push_back(ctx);
219 this->reverseTaskMap[task] = ctx;
220
221 // Faster than calling repopulateTaskVector()
222 this->taskVec.push_back(ctx);
223 ctx->assignIndex(this->taskVec.size() - 1);
224
225 emit taskAdded(task);
226
227 // Start after GUI has been notified
228 this->connectNewTask(task);
229 ctx->start();
230}
231
232void
233MultitaskController::getTaskVector(QVector<CancellableTaskContext *> &vec) const

Callers 1

openSaveSamplesDialogMethod · 0.80

Calls 4

connectNewTaskMethod · 0.95
assignIndexMethod · 0.80
sizeMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected