| 27 | } |
| 28 | |
| 29 | void IMAPMultiDisconnectOperation::start() |
| 30 | { |
| 31 | if (_operations->count() == 0) { |
| 32 | if (callback() != NULL) { |
| 33 | callback()->operationFinished(this); |
| 34 | } |
| 35 | return; |
| 36 | } |
| 37 | |
| 38 | retain(); |
| 39 | mc_foreacharray(IMAPOperation, op, _operations) { |
| 40 | #if __APPLE__ |
| 41 | op->setCallbackDispatchQueue(this->callbackDispatchQueue()); |
| 42 | #endif |
| 43 | op->setCallback(this); |
| 44 | op->start(); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | void IMAPMultiDisconnectOperation::operationFinished(Operation * op) |
| 49 | { |
no test coverage detected