diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 15:21:10 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 15:21:10 +0900 |
commit | a584bfaaa663347270782bccf9309ff016eea530 (patch) | |
tree | 8628f4f9b4c25c4138331cca21fee294da22dcbd /lib/jobs/basejob.h | |
parent | 7ef14023ab337972530bb3f4ad35f8daa326233b (diff) | |
download | libquotient-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.h | 3 |
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: |