diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 21:24:49 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-03 21:24:49 +0900 |
commit | e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4 (patch) | |
tree | 03eecc0f4999f90952da3d7cf8637c2fa2ac84f1 /jobs/generated/content-repo.h | |
parent | e1aedb9f3dcf7dcdc68e5eefab206258013c5114 (diff) | |
parent | f6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff) | |
download | libquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.tar.gz libquotient-e80bfd2fc710d4780a2c22bde9d605a41bd4aaa4.zip |
Merge branch 'kitsune-expose-download-urls' into kitsune-gtad
Diffstat (limited to 'jobs/generated/content-repo.h')
-rw-r--r-- | jobs/generated/content-repo.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/jobs/generated/content-repo.h b/jobs/generated/content-repo.h index 0796322b..b4ea562f 100644 --- a/jobs/generated/content-repo.h +++ b/jobs/generated/content-repo.h @@ -32,6 +32,13 @@ namespace QMatrixClient class GetContentJob : public BaseJob { public: + /** 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); + explicit GetContentJob(const QString& serverName, const QString& mediaId); ~GetContentJob() override; @@ -50,6 +57,13 @@ namespace QMatrixClient class GetContentOverrideNameJob : public BaseJob { public: + /** 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); + explicit GetContentOverrideNameJob(const QString& serverName, const QString& mediaId, const QString& fileName); ~GetContentOverrideNameJob() override; @@ -68,6 +82,13 @@ namespace QMatrixClient class GetContentThumbnailJob : public BaseJob { public: + /** 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, int width = {}, int height = {}, const QString& method = {}); + explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, int width = {}, int height = {}, const QString& method = {}); ~GetContentThumbnailJob() override; @@ -85,6 +106,13 @@ namespace QMatrixClient class GetUrlPreviewJob : public BaseJob { public: + /** Construct a URL out of baseUrl and usual parameters passed to + * GetUrlPreviewJob. This function can be used when + * a URL for GetUrlPreviewJob is necessary but the job + * itself isn't. + */ + static QUrl makeRequestUrl(QUrl baseUrl, const QString& url, double ts = {}); + explicit GetUrlPreviewJob(const QString& url, double ts = {}); ~GetUrlPreviewJob() override; |