diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 07:50:08 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-11 07:50:08 +0900 |
commit | cee574090838ab54961d2d34b76d60964f7a8304 (patch) | |
tree | 4ef79451ec35d32008229652941ce1956d229343 /lib/jobs/basejob.cpp | |
parent | c5f469375f7c7b09f5f5c9a13ca07c6cf7c2b68a (diff) | |
download | libquotient-cee574090838ab54961d2d34b76d60964f7a8304.tar.gz libquotient-cee574090838ab54961d2d34b76d60964f7a8304.zip |
BaseJob: Drop 'error' from methods that work in normal job state too
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r-- | lib/jobs/basejob.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 6984f16f..2a6705b8 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -509,12 +509,12 @@ BaseJob::Status BaseJob::status() const return d->status; } -int BaseJob::error() const +QByteArray BaseJob::rawData() const { - return d->status.code; + return d->rawResponse; } -QString BaseJob::errorCaption() const +QString BaseJob::statusCaption() const { switch (d->status.code) { @@ -553,14 +553,14 @@ QString BaseJob::errorCaption() const } } -QString BaseJob::errorString() const +int BaseJob::error() const { - return d->status.message; + return d->status.code; } -QByteArray BaseJob::errorRawData() const +QString BaseJob::errorString() const { - return d->rawResponse; + return d->status.message; } QUrl BaseJob::errorUrl() const |