aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/leaving.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 05:22:37 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-14 09:17:33 +0200
commit8058139171897eea4a35325b98ba2f72a8c7303f (patch)
tree5af113020a750b1954b79ab0b7096a1d5afe8243 /jobs/generated/leaving.cpp
parentee214de7b829b08155bc223ea64c61c9ce2bcdf3 (diff)
downloadlibquotient-8058139171897eea4a35325b98ba2f72a8c7303f.tar.gz
libquotient-8058139171897eea4a35325b98ba2f72a8c7303f.zip
Leaving a room now uses a generated Job file
Diffstat (limited to 'jobs/generated/leaving.cpp')
-rw-r--r--jobs/generated/leaving.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/jobs/generated/leaving.cpp b/jobs/generated/leaving.cpp
new file mode 100644
index 00000000..7fed347b
--- /dev/null
+++ b/jobs/generated/leaving.cpp
@@ -0,0 +1,30 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+
+#include "leaving.h"
+
+#include "jobs/converters.h"
+#include <QtCore/QStringBuilder>
+
+using namespace QMatrixClient;
+
+static const auto basePath = QStringLiteral("/_matrix/client/r0");
+
+LeaveRoomJob::LeaveRoomJob(QString roomId)
+ : BaseJob(HttpVerb::Post, "LeaveRoomJob",
+ basePath % "/rooms/" % roomId % "/leave",
+ Query { },
+ Data { }
+ )
+{ }
+
+ForgetRoomJob::ForgetRoomJob(QString roomId)
+ : BaseJob(HttpVerb::Post, "ForgetRoomJob",
+ basePath % "/rooms/" % roomId % "/forget",
+ Query { },
+ Data { }
+ )
+{ }
+