aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/basejob.h')
-rw-r--r--lib/jobs/basejob.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index 04d79c66..4d379f26 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -116,9 +116,8 @@ public:
* along the lines of StatusCode, with additional values
* starting at UserDefinedError
*/
- class Status
+ struct Status
{
- public:
Status(StatusCode c)
: code(c)
{}
@@ -126,6 +125,7 @@ public:
: code(c)
, message(std::move(m))
{}
+ static Status fromHttpCode(int httpCode, QString msg = {});
bool good() const { return code < ErrorLevel; }
friend QDebug operator<<(QDebug dbg, const Status& s)