diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-12 22:04:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-01-12 23:15:03 +0900 |
commit | 9e8e958b5d72b9671425b5bcd34fa016874b8677 (patch) | |
tree | 41f3f3e37fe82f28e74cbe9018e9d0d86095f4a5 /jobs/basejob.h | |
parent | a4509336ad07ef91771492830a0756af68d55962 (diff) | |
download | libquotient-9e8e958b5d72b9671425b5bcd34fa016874b8677.tar.gz libquotient-9e8e958b5d72b9671425b5bcd34fa016874b8677.zip |
BaseJob: afterStart(), beforeAbandon(), up/downloadProgress()
To support the upcoming DownloadFileJob
Diffstat (limited to 'jobs/basejob.h')
-rw-r--r-- | jobs/basejob.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/jobs/basejob.h b/jobs/basejob.h index 4567bca7..5e2734b1 100644 --- a/jobs/basejob.h +++ b/jobs/basejob.h @@ -192,6 +192,9 @@ namespace QMatrixClient */ void failure(BaseJob*); + void downloadProgress(qint64 bytesReceived, qint64 bytesTotal); + void uploadProgress(qint64 bytesSent, qint64 bytesTotal); + protected: using headers_t = QHash<QByteArray, QByteArray>; @@ -210,6 +213,9 @@ namespace QMatrixClient void setExpectedContentTypes(const QByteArrayList& contentTypes); virtual void beforeStart(const ConnectionData* connData); + virtual void afterStart(const ConnectionData* connData, + QNetworkReply* reply); + virtual void beforeAbandon(QNetworkReply*); /** * Used by gotReply() to check the received reply for general |