From 9e8e958b5d72b9671425b5bcd34fa016874b8677 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 12 Jan 2018 22:04:28 +0900 Subject: BaseJob: afterStart(), beforeAbandon(), up/downloadProgress() To support the upcoming DownloadFileJob --- jobs/basejob.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jobs/basejob.h') 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; @@ -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 -- cgit v1.2.3