aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-12 19:37:09 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-12 19:37:09 +0300
commitec3ddd6930991b04d13cdb12720f141482f9a6eb (patch)
treeef2885c4bb8391c7b631fd21f882dbdb695f1add /lib/jobs
parenteabed200f5fe09a37942a52387c0d3f25070b0c3 (diff)
downloadlibquotient-ec3ddd6930991b04d13cdb12720f141482f9a6eb.tar.gz
libquotient-ec3ddd6930991b04d13cdb12720f141482f9a6eb.zip
Move FileError definition from DownloadFileJob to BaseJob
Will use it in BaseJob in a later commit.
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.h1
-rw-r--r--lib/jobs/downloadfilejob.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index b4c4c136..e708ba8d 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -82,6 +82,7 @@ public:
UserConsentRequiredError = UserConsentRequired,
CannotLeaveRoom,
UserDeactivated,
+ FileError,
UserDefinedError = 256
};
Q_ENUM(StatusCode)
diff --git a/lib/jobs/downloadfilejob.h b/lib/jobs/downloadfilejob.h
index b7d2d75b..06dc145c 100644
--- a/lib/jobs/downloadfilejob.h
+++ b/lib/jobs/downloadfilejob.h
@@ -5,8 +5,6 @@
namespace Quotient {
class DownloadFileJob : public GetContentJob {
public:
- enum { FileError = BaseJob::UserDefinedError + 1 };
-
using GetContentJob::makeRequestUrl;
static QUrl makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri);