diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-07-27 14:54:43 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-07-27 14:54:43 +0900 |
commit | 844d3362022d0278b07e1232460c1662e4fb61d2 (patch) | |
tree | ae00b58eee196782e56839faca52dd8bc3bbd00f /jobs/checkauthmethods.cpp | |
parent | d8c3e31d34b8129dc24f52a7d726ff1206b90d48 (diff) | |
download | libquotient-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/checkauthmethods.cpp')
-rw-r--r-- | jobs/checkauthmethods.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jobs/checkauthmethods.cpp b/jobs/checkauthmethods.cpp index 55d8632a..f471c135 100644 --- a/jobs/checkauthmethods.cpp +++ b/jobs/checkauthmethods.cpp @@ -57,7 +57,7 @@ QString CheckAuthMethods::apiPath() const return "_matrix/client/r0/login"; } -void CheckAuthMethods::parseJson(const QJsonDocument& data) +BaseJob::Status CheckAuthMethods::parseJson(const QJsonDocument& data) { // TODO } |