aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/leaving.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-05 22:30:59 +0900
committerGitHub <noreply@github.com>2018-02-05 22:30:59 +0900
commit898f0c73b4d76c091e48c5e767b94d6ad18f582f (patch)
tree965074fffd32cae0dba11c494ae65b3c67bef28b /jobs/generated/leaving.cpp
parent818fbda8c43fa76ede72db2e941ec81fe093cc59 (diff)
parentf6b55a3c8fc60dd263954df3359027eff2ef1e18 (diff)
downloadlibquotient-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.cpp')
-rw-r--r--jobs/generated/leaving.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/jobs/generated/leaving.cpp b/jobs/generated/leaving.cpp
index 89c110dd..fbc40d11 100644
--- a/jobs/generated/leaving.cpp
+++ b/jobs/generated/leaving.cpp
@@ -12,12 +12,24 @@ using namespace QMatrixClient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
+QUrl LeaveRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/rooms/" % roomId % "/leave");
+}
+
LeaveRoomJob::LeaveRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, "LeaveRoomJob",
basePath % "/rooms/" % roomId % "/leave")
{
}
+QUrl ForgetRoomJob::makeRequestUrl(QUrl baseUrl, const QString& roomId)
+{
+ return BaseJob::makeRequestUrl(baseUrl,
+ basePath % "/rooms/" % roomId % "/forget");
+}
+
ForgetRoomJob::ForgetRoomJob(const QString& roomId)
: BaseJob(HttpVerb::Post, "ForgetRoomJob",
basePath % "/rooms/" % roomId % "/forget")