diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 13:22:03 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 13:22:03 +0900 |
commit | 8a8c645f2a2dc91e9d956b7dee8ef5cf741541f4 (patch) | |
tree | 3cd5af4991d5fe7b3e3de12d1b4c723ef85bbebb /lib/csapi/content-repo.h | |
parent | 48c7d2de6fda86a5115147bc7d9825c3627a17d9 (diff) | |
download | libquotient-8a8c645f2a2dc91e9d956b7dee8ef5cf741541f4.tar.gz libquotient-8a8c645f2a2dc91e9d956b7dee8ef5cf741541f4.zip |
csapi: Updated to the most recent API definitions
Diffstat (limited to 'lib/csapi/content-repo.h')
-rw-r--r-- | lib/csapi/content-repo.h | 12 |
1 files changed, 6 insertions, 6 deletions
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<int> width = none, Omittable<int> height = none, const QString& method = {}); + explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, Omittable<int> width = none, Omittable<int> 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<int> width = none, Omittable<int> height = none, const QString& method = {}); + static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, Omittable<int> width = none, Omittable<int> height = none, const QString& method = {}, bool allowRemote = true); ~GetContentThumbnailJob() override; |