aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/create_room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 11:12:48 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-05 19:58:57 +0900
commite3a1511b6b03aedab065386aa0fa7a9e1cd78a70 (patch)
treef18a2a996303efbfd10fecfa035baf25e7265c68 /jobs/generated/create_room.h
parentccf2b4dd9d41b39167379669f035b45d656e3633 (diff)
downloadlibquotient-e3a1511b6b03aedab065386aa0fa7a9e1cd78a70.tar.gz
libquotient-e3a1511b6b03aedab065386aa0fa7a9e1cd78a70.zip
jobs/generated: content-repo.*, create_room.*
Diffstat (limited to 'jobs/generated/create_room.h')
-rw-r--r--jobs/generated/create_room.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/jobs/generated/create_room.h b/jobs/generated/create_room.h
new file mode 100644
index 00000000..a92cb106
--- /dev/null
+++ b/jobs/generated/create_room.h
@@ -0,0 +1,56 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+#include "../basejob.h"
+
+#include <QtCore/QVector>
+#include <QtCore/QJsonObject>
+#include <QtCore/QString>
+
+#include "converters.h"
+
+namespace QMatrixClient
+{
+ // Operations
+
+ class CreateRoomJob : public BaseJob
+ {
+ public:
+ // Inner data structures
+
+ struct Invite3pid
+ {
+ QString idServer;
+ QString medium;
+ QString address;
+
+ operator QJsonObject() const;
+ };
+
+ struct StateEvent
+ {
+ QString type;
+ QString stateKey;
+ QJsonObject content;
+
+ operator QJsonObject() const;
+ };
+
+ // End of inner data structures
+
+ explicit CreateRoomJob(const QString& visibility = {}, const QString& roomAliasName = {}, const QString& name = {}, const QString& topic = {}, const QVector<QString>& invite = {}, const QVector<Invite3pid>& invite3pid = {}, const QJsonObject& creationContent = {}, const QVector<StateEvent>& initialState = {}, const QString& preset = {}, bool isDirect = {});
+ ~CreateRoomJob() override;
+
+ const QString& roomId() const;
+
+ protected:
+ Status parseJson(const QJsonDocument& data) override;
+
+ private:
+ class Private;
+ QScopedPointer<Private> d;
+ };
+} // namespace QMatrixClient