libQuotient
A Qt library for building matrix clients
|
The status of a job. More...
#include <basejob.h>
Public Member Functions | |
Status (StatusCode c) | |
Status (int c, QString m) | |
bool | good () const |
QDebug | dumpToLog (QDebug dbg) const |
bool | operator== (const Status &other) const |
bool | operator!= (const Status &other) const |
bool | operator== (int otherCode) const |
bool | operator!= (int otherCode) const |
Static Public Member Functions | |
static StatusCode | fromHttpCode (int httpCode) |
static Status | fromHttpCode (int httpCode, QString msg) |
Public Attributes | |
int | code |
QString | message |
Friends | |
QDebug | operator<< (const QDebug &dbg, const Status &s) |
The status of a job.
The status consists of a code that is described (but not delimited) by StatusCode, and a freeform message.
To extend the list of error codes, define an (anonymous) enum along the lines of StatusCode, with additional values starting at UserDefinedError.
|
inline |
|
inline |
QDebug Quotient::BaseJob::Status::dumpToLog | ( | QDebug | dbg | ) | const |
|
static |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |