| 66 | } |
| 67 | |
| 68 | auto NetJob::canAbort() const -> bool |
| 69 | { |
| 70 | bool canFullyAbort = true; |
| 71 | |
| 72 | // can abort the downloads on the queue? |
| 73 | for (auto part : m_queue) |
| 74 | canFullyAbort &= part->canAbort(); |
| 75 | |
| 76 | // can abort the active downloads? |
| 77 | for (auto part : m_doing) |
| 78 | canFullyAbort &= part->canAbort(); |
| 79 | |
| 80 | return canFullyAbort; |
| 81 | } |
| 82 | |
| 83 | auto NetJob::abort() -> bool |
| 84 | { |