aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'jobs')
-rw-r--r--jobs/basejob.cpp4
-rw-r--r--jobs/basejob.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 1f087f46..d2d1ce95 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -95,6 +95,10 @@ QDebug QMatrixClient::operator<<(QDebug dbg, const BaseJob::Status& s)
<< QString(s.message).replace(filter, "\\1 HIDDEN");
}
+BaseJob::BaseJob(HttpVerb verb, const QString& name, const QString& endpoint, bool needsToken)
+ : BaseJob(verb, name, endpoint, Query { }, Data { }, needsToken)
+{ }
+
BaseJob::BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
const Query& query, const Data& data, bool needsToken)
: d(new Private(verb, endpoint, query, data, needsToken))
diff --git a/jobs/basejob.h b/jobs/basejob.h
index 6b34c9f5..daca1e79 100644
--- a/jobs/basejob.h
+++ b/jobs/basejob.h
@@ -129,7 +129,9 @@ namespace QMatrixClient
public:
BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
- const Query& query = {}, const Data& data = {},
+ bool needsToken = true);
+ BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
+ const Query& query, const Data& data = {},
bool needsToken = true);
Status status() const;