diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-08 17:07:33 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-08 17:07:33 +0900 |
commit | c5ebff775e71b5d32a3b2af8f666e3f13f8970c2 (patch) | |
tree | f9eb65490277da58e5aab367ca4af35220d24f72 /lib/csapi/definitions/device_keys.h | |
parent | b28e2d697842f58e2994ead62635b31f48162cdc (diff) | |
download | libquotient-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.h | 32 |
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 |