From 8a8c645f2a2dc91e9d956b7dee8ef5cf741541f4 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 3 Jun 2018 13:22:03 +0900 Subject: csapi: Updated to the most recent API definitions --- lib/csapi/content-repo.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/csapi/content-repo.h') diff --git a/lib/csapi/content-repo.h b/lib/csapi/content-repo.h index 8d73dc51..582fedab 100644 --- a/lib/csapi/content-repo.h +++ b/lib/csapi/content-repo.h @@ -34,14 +34,14 @@ namespace QMatrixClient class GetContentJob : public BaseJob { public: - explicit GetContentJob(const QString& serverName, const QString& mediaId); + explicit GetContentJob(const QString& serverName, const QString& mediaId, bool allowRemote = true); /** Construct a URL out of baseUrl and usual parameters passed to * GetContentJob. This function can be used when * a URL for GetContentJob is necessary but the job * itself isn't. */ - static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId); + static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, bool allowRemote = true); ~GetContentJob() override; @@ -62,14 +62,14 @@ namespace QMatrixClient class GetContentOverrideNameJob : public BaseJob { public: - explicit GetContentOverrideNameJob(const QString& serverName, const QString& mediaId, const QString& fileName); + explicit GetContentOverrideNameJob(const QString& serverName, const QString& mediaId, const QString& fileName, bool allowRemote = true); /** Construct a URL out of baseUrl and usual parameters passed to * GetContentOverrideNameJob. This function can be used when * a URL for GetContentOverrideNameJob is necessary but the job * itself isn't. */ - static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, const QString& fileName); + static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, const QString& fileName, bool allowRemote = true); ~GetContentOverrideNameJob() override; @@ -90,14 +90,14 @@ namespace QMatrixClient class GetContentThumbnailJob : public BaseJob { public: - explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, Omittable width = none, Omittable height = none, const QString& method = {}); + explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, Omittable width = none, Omittable height = none, const QString& method = {}, bool allowRemote = true); /** Construct a URL out of baseUrl and usual parameters passed to * GetContentThumbnailJob. This function can be used when * a URL for GetContentThumbnailJob is necessary but the job * itself isn't. */ - static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, Omittable width = none, Omittable height = none, const QString& method = {}); + static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, Omittable width = none, Omittable height = none, const QString& method = {}, bool allowRemote = true); ~GetContentThumbnailJob() override; -- cgit v1.2.3