aboutsummaryrefslogtreecommitdiff
path: root/jobs/joinroomjob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-07-27 14:54:43 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-07-27 14:54:43 +0900
commit844d3362022d0278b07e1232460c1662e4fb61d2 (patch)
treeae00b58eee196782e56839faca52dd8bc3bbd00f /jobs/joinroomjob.h
parentd8c3e31d34b8129dc24f52a7d726ff1206b90d48 (diff)
downloadlibquotient-844d3362022d0278b07e1232460c1662e4fb61d2.tar.gz
libquotient-844d3362022d0278b07e1232460c1662e4fb61d2.zip
Introduce Status class + BaseJob::{checkReply,parseReply,parseJson} now return it
This better fixes the contract for derived job classes and simplifies error reporting. Methods error() and errorString() are kept for back-compatibility; status() returns a combination of them, conveniently packed into a Status object. For a quick status check, Status::good() is provided.
Diffstat (limited to 'jobs/joinroomjob.h')
-rw-r--r--jobs/joinroomjob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/joinroomjob.h b/jobs/joinroomjob.h
index 1329ca56..a6f4af21 100644
--- a/jobs/joinroomjob.h
+++ b/jobs/joinroomjob.h
@@ -35,7 +35,7 @@ namespace QMatrixClient
protected:
QString apiPath() const override;
- void parseJson(const QJsonDocument& data) override;
+ Status parseJson(const QJsonDocument& data) override;
private:
class Private;