| 172 | } |
| 173 | |
| 174 | bool |
| 175 | CancellableController::cancel(void) |
| 176 | { |
| 177 | if (this->task == nullptr || this->cancelledState) |
| 178 | return false; |
| 179 | |
| 180 | this->cancelledState = true; |
| 181 | emit cancelling(); |
| 182 | emit queuedCancel(); |
| 183 | |
| 184 | return true; |
| 185 | } |
| 186 | |
| 187 | void |
| 188 | CancellableController::onDone(void) |
no outgoing calls
no test coverage detected