From c5ebff775e71b5d32a3b2af8f666e3f13f8970c2 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 8 Jun 2018 17:07:33 +0900 Subject: 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! --- lib/csapi/definitions/device_keys.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 lib/csapi/definitions/device_keys.h (limited to 'lib/csapi/definitions/device_keys.h') 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 + +#include "converters.h" + +namespace QMatrixClient +{ + // Data structures + + struct DeviceKeys + { + QString userId; + QString deviceId; + QStringList algorithms; + QHash keys; + QHash> signatures; + }; + + QJsonObject toJson(const DeviceKeys& pod); + + template <> struct FromJson + { + DeviceKeys operator()(const QJsonValue& jv); + }; + +} // namespace QMatrixClient -- cgit v1.2.3