aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/device_keys.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-08 17:07:33 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-08 17:07:33 +0900
commitc5ebff775e71b5d32a3b2af8f666e3f13f8970c2 (patch)
treef9eb65490277da58e5aab367ca4af35220d24f72 /lib/csapi/definitions/device_keys.h
parentb28e2d697842f58e2994ead62635b31f48162cdc (diff)
downloadlibquotient-c5ebff775e71b5d32a3b2af8f666e3f13f8970c2.tar.gz
libquotient-c5ebff775e71b5d32a3b2af8f666e3f13f8970c2.zip
csapi: add jobs for keys management
This concludes the Great Income of Jobs to libQMatrixClient - all CS API calls are now covered with job classes, yay!
Diffstat (limited to 'lib/csapi/definitions/device_keys.h')
-rw-r--r--lib/csapi/definitions/device_keys.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/csapi/definitions/device_keys.h b/lib/csapi/definitions/device_keys.h
new file mode 100644
index 00000000..895700c1
--- /dev/null
+++ b/lib/csapi/definitions/device_keys.h
@@ -0,0 +1,32 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+
+#include <QtCore/QHash>
+
+#include "converters.h"
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ struct DeviceKeys
+ {
+ QString userId;
+ QString deviceId;
+ QStringList algorithms;
+ QHash<QString, QString> keys;
+ QHash<QString, QHash<QString, QString>> signatures;
+ };
+
+ QJsonObject toJson(const DeviceKeys& pod);
+
+ template <> struct FromJson<DeviceKeys>
+ {
+ DeviceKeys operator()(const QJsonValue& jv);
+ };
+
+} // namespace QMatrixClient