diff options
Diffstat (limited to 'lib/jobs/basejob.h')
-rw-r--r-- | lib/jobs/basejob.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h index 0d791d3a..c34ba3c3 100644 --- a/lib/jobs/basejob.h +++ b/lib/jobs/basejob.h @@ -134,11 +134,21 @@ namespace QMatrixClient QUrl requestUrl() const; bool isBackground() const; + /** Current status of the job */ Status status() const; + /** Short human-friendly message on the job status */ + QString statusCaption() const; + /** Raw response body as received from the server */ + QByteArray rawData() const; + + /** Error (more generally, status) code + * Equivalent to status().code + * \sa status + */ int error() const; - QString errorCaption() const; + /** Error-specific message, as returned by the server */ virtual QString errorString() const; - QByteArray errorRawData() const; + /** A URL to help/clarify the error, if provided by the server */ QUrl errorUrl() const; int maxRetries() const; |