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

Method connectNewTask

Suscan/MultitaskController.cpp:149–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149void
150MultitaskController::connectNewTask(CancellableTask *task)
151{
152 connect(
153 task,
154 SIGNAL(progress(qreal, QString)),
155 this,
156 SLOT(onProgress(qreal, QString)));
157
158 connect(
159 task,
160 SIGNAL(done(void)),
161 this,
162 SLOT(onDone(void)));
163
164 connect(
165 task,
166 SIGNAL(cancelled(void)),
167 this,
168 SLOT(onCancelled(void)));
169
170 connect(
171 task,
172 SIGNAL(error(QString)),
173 this,
174 SLOT(onError(QString)));
175
176 connect(
177 this,
178 SIGNAL(cancel(void)),
179 task,
180 SLOT(onCancelRequested(void)));
181}
182
183CancellableTaskContext *
184MultitaskController::findTask(CancellableTask *task) const

Callers 1

pushTaskMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected