diff options
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 |