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

Method process

Suscan/CancellableTask.cpp:148–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146}
147
148bool
149CancellableController::process(QString const &name, CancellableTask *task)
150{
151 // Going to delete it nonetheless
152 if (this->doneReceived)
153 this->deleteTask();
154
155 if (this->task != nullptr)
156 return false;
157
158 this->name = name;
159 this->task = task;
160 this->cancelledState = false;
161 this->doneReceived = false;
162
163 emit progress(task->getProgress(), task->getStatus());
164
165 task->moveToThread(&this->worker);
166
167 this->connectTask();
168
169 emit queuedWork();
170
171 return true;
172}
173
174bool
175CancellableController::cancel(void)

Callers 1

pushDownloadTaskMethod · 0.45

Calls 4

deleteTaskMethod · 0.95
connectTaskMethod · 0.95
getProgressMethod · 0.80
getStatusMethod · 0.80

Tested by

no test coverage detected