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.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index 7ce4b808..7750fb8b 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -72,7 +72,8 @@ public:
};
Q_ENUM(StatusCode)
- using Data = RequestData;
+ using Data Q_DECL_DEPRECATED_X("Use Quotient::RequestData instead") //
+ = RequestData;
/*!
* This structure stores the status of a server call job. The status
@@ -125,7 +126,8 @@ public:
BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
bool needsToken = true);
BaseJob(HttpVerb verb, const QString& name, const QString& endpoint,
- const QUrlQuery& query, Data&& data = {}, bool needsToken = true);
+ const QUrlQuery& query, RequestData&& data = {},
+ bool needsToken = true);
QUrl requestUrl() const;
bool isBackground() const;
@@ -330,8 +332,8 @@ protected:
void setRequestHeaders(const headers_t& headers);
const QUrlQuery& query() const;
void setRequestQuery(const QUrlQuery& query);
- const Data& requestData() const;
- void setRequestData(Data&& data);
+ const RequestData& requestData() const;
+ void setRequestData(RequestData&& data);
const QByteArrayList& expectedContentTypes() const;
void addExpectedContentType(const QByteArray& contentType);
void setExpectedContentTypes(const QByteArrayList& contentTypes);