aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-02 15:21:10 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-04-02 15:21:10 +0900
commita584bfaaa663347270782bccf9309ff016eea530 (patch)
tree8628f4f9b4c25c4138331cca21fee294da22dcbd /lib/jobs/basejob.h
parent7ef14023ab337972530bb3f4ad35f8daa326233b (diff)
downloadlibquotient-a584bfaaa663347270782bccf9309ff016eea530.tar.gz
libquotient-a584bfaaa663347270782bccf9309ff016eea530.zip
BaseJob: set the status upon headers arrival
So that DownloadFileJob could figure if it should save the incoming payload to the file or it's the JSON details about the error.
Diffstat (limited to 'lib/jobs/basejob.h')
-rw-r--r--lib/jobs/basejob.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index 252b8ea0..f243066f 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -248,7 +248,7 @@ namespace QMatrixClient
*
* @see gotReply
*/
- virtual Status checkReply(QNetworkReply* reply) const;
+ virtual Status doCheckReply(QNetworkReply* reply) const;
/**
* Processes the reply. By default, parses the reply into
@@ -286,6 +286,7 @@ namespace QMatrixClient
private slots:
void sendRequest();
+ void checkReply();
void gotReply();
private: