aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/keys.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 15:01:33 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-19 15:03:24 +0200
commite17764a1ae81393968dfb747c7b67353c109bc71 (patch)
treebbff0707ae3622e22c67d0cc310370eb5126ac7e /lib/csapi/keys.h
parentcbd107e595bbb78ef3411a4a92f66d495c6fc5b4 (diff)
downloadlibquotient-e17764a1ae81393968dfb747c7b67353c109bc71.tar.gz
libquotient-e17764a1ae81393968dfb747c7b67353c109bc71.zip
csapi/: generated using the latest GTAD and matrix-doc
For matrix-doc, specifically, it is master (5cb4b086) merged with https://github.com/matrix-org/matrix-doc/pull/2518.
Diffstat (limited to 'lib/csapi/keys.h')
-rw-r--r--lib/csapi/keys.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/csapi/keys.h b/lib/csapi/keys.h
index b7a8dc71..8f6c8cc9 100644
--- a/lib/csapi/keys.h
+++ b/lib/csapi/keys.h
@@ -18,7 +18,6 @@ class UploadKeysJob : public BaseJob {
public:
/*! \brief Upload end-to-end encryption keys.
*
- *
* \param deviceKeys
* Identity keys for the device. May be absent if no new
* identity keys are required.
@@ -61,9 +60,7 @@ public:
};
/// Returns the current devices and identity keys for the given users.
- struct DeviceKeys :
-
- Quotient::DeviceKeys {
+ struct DeviceInformation : DeviceKeys {
/// Additional data added to the device key information
/// by intermediate servers, and not covered by the
/// signatures.
@@ -74,7 +71,6 @@ public:
/*! \brief Download device identity keys.
*
- *
* \param deviceKeys
* The keys to be downloaded. A map from user ID, to a list of
* device IDs, or to an empty list to indicate all devices for the
@@ -113,9 +109,9 @@ public:
/// the information returned will be the same as uploaded via
/// ``/keys/upload``, with the addition of an ``unsigned``
/// property.
- QHash<QString, QHash<QString, DeviceKeys>> deviceKeys() const
+ QHash<QString, QHash<QString, DeviceInformation>> deviceKeys() const
{
- return loadFromJson<QHash<QString, QHash<QString, DeviceKeys>>>(
+ return loadFromJson<QHash<QString, QHash<QString, DeviceInformation>>>(
"device_keys"_ls);
}
};
@@ -130,8 +126,9 @@ struct JsonObjectConverter<QueryKeysJob::UnsignedDeviceInfo> {
};
template <>
-struct JsonObjectConverter<QueryKeysJob::DeviceKeys> {
- static void fillFrom(const QJsonObject& jo, QueryKeysJob::DeviceKeys& result)
+struct JsonObjectConverter<QueryKeysJob::DeviceInformation> {
+ static void fillFrom(const QJsonObject& jo,
+ QueryKeysJob::DeviceInformation& result)
{
fillFromJson<DeviceKeys>(jo, result);
fromJson(jo.value("unsigned"_ls), result.unsignedData);
@@ -146,7 +143,6 @@ class ClaimKeysJob : public BaseJob {
public:
/*! \brief Claim one-time encryption keys.
*
- *
* \param oneTimeKeys
* The keys to be claimed. A map from user ID, to a map from
* device ID to algorithm name.
@@ -202,7 +198,6 @@ class GetKeysChangesJob : public BaseJob {
public:
/*! \brief Query users with recent device key updates.
*
- *
* \param from
* The desired start point of the list. Should be the ``next_batch`` field
* from a response to an earlier call to |/sync|. Users who have not