aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorTobias Fella <fella@posteo.de>2022-02-26 18:55:11 +0100
committerTobias Fella <fella@posteo.de>2022-02-26 18:55:47 +0100
commit458a0472bd0c6ea0a859c5e55ba5dd3d92ecec99 (patch)
tree6d71e05de7d7f4818415ee670f19dddd536ad45a /lib/connection.h
parent62039b527507aa6c45fbf7ac787da6234d2faac3 (diff)
downloadlibquotient-458a0472bd0c6ea0a859c5e55ba5dd3d92ecec99.tar.gz
libquotient-458a0472bd0c6ea0a859c5e55ba5dd3d92ecec99.zip
Add convenience functions for querying user devices and keys from cache
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 165d8d68..4a475319 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -680,6 +680,10 @@ public Q_SLOTS:
void encryptionUpdate(Room *room);
PicklingMode picklingMode() const;
QJsonObject decryptNotification(const QJsonObject &notification);
+
+ QStringList devicesForUser(User* user) const;
+ QString curveKeyForUserDevice(const QString &user, const QString& device) const;
+ QString edKeyForUserDevice(const QString& user, const QString& device) const;
#endif
Q_SIGNALS:
/// \brief Initial server resolution has failed