diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-05 22:30:59 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-05 22:30:59 +0900 |
commit | 898f0c73b4d76c091e48c5e767b94d6ad18f582f (patch) | |
tree | 965074fffd32cae0dba11c494ae65b3c67bef28b /jobs/generated/leaving.h | |
parent | 818fbda8c43fa76ede72db2e941ec81fe093cc59 (diff) | |
parent | f6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff) | |
download | libquotient-898f0c73b4d76c091e48c5e767b94d6ad18f582f.tar.gz libquotient-898f0c73b4d76c091e48c5e767b94d6ad18f582f.zip |
Merge pull request #170 from QMatrixClient/kitsune-expose-download-urls
Expose download URLs
Diffstat (limited to 'jobs/generated/leaving.h')
-rw-r--r-- | jobs/generated/leaving.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/jobs/generated/leaving.h b/jobs/generated/leaving.h index cd39b612..9bae2363 100644 --- a/jobs/generated/leaving.h +++ b/jobs/generated/leaving.h @@ -15,12 +15,26 @@ namespace QMatrixClient class LeaveRoomJob : public BaseJob { public: + /** Construct a URL out of baseUrl and usual parameters passed to + * LeaveRoomJob. This function can be used when + * a URL for LeaveRoomJob is necessary but the job + * itself isn't. + */ + static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId); + explicit LeaveRoomJob(const QString& roomId); }; class ForgetRoomJob : public BaseJob { public: + /** Construct a URL out of baseUrl and usual parameters passed to + * ForgetRoomJob. This function can be used when + * a URL for ForgetRoomJob is necessary but the job + * itself isn't. + */ + static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId); + explicit ForgetRoomJob(const QString& roomId); }; } // namespace QMatrixClient |