| 84 | } |
| 85 | |
| 86 | auto NetJob::canAbort() const -> bool |
| 87 | { |
| 88 | bool canFullyAbort = true; |
| 89 | |
| 90 | // can abort the downloads on the queue? |
| 91 | for (auto part : m_queue) |
| 92 | canFullyAbort &= part->canAbort(); |
| 93 | |
| 94 | // can abort the active downloads? |
| 95 | for (auto part : m_doing) |
| 96 | canFullyAbort &= part->canAbort(); |
| 97 | |
| 98 | return canFullyAbort; |
| 99 | } |
| 100 | |
| 101 | auto NetJob::abort() -> bool |
| 102 | { |