| 44 | namespace Net { |
| 45 | |
| 46 | bool Upload::abort() |
| 47 | { |
| 48 | if (m_reply) { |
| 49 | m_reply->abort(); |
| 50 | } else { |
| 51 | m_state = State::AbortedByUser; |
| 52 | } |
| 53 | return true; |
| 54 | } |
| 55 | |
| 56 | void Upload::downloadProgress(qint64 bytesReceived, qint64 bytesTotal) { |
| 57 | setProgress(bytesReceived, bytesTotal); |