aboutsummaryrefslogtreecommitdiff
path: root/src/client/QXmppAtmTrustStorage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/QXmppAtmTrustStorage.h')
-rw-r--r--src/client/QXmppAtmTrustStorage.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/QXmppAtmTrustStorage.h b/src/client/QXmppAtmTrustStorage.h
new file mode 100644
index 00000000..e801c7df
--- /dev/null
+++ b/src/client/QXmppAtmTrustStorage.h
@@ -0,0 +1,24 @@
+// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
+//
+// SPDX-License-Identifier: LGPL-2.1-or-later
+
+#ifndef QXMPPATMTRUSTSTORAGE_H
+#define QXMPPATMTRUSTSTORAGE_H
+
+#include "QXmppTrustStorage.h"
+
+class QXmppTrustMessageKeyOwner;
+
+class QXMPP_EXPORT QXmppAtmTrustStorage : virtual public QXmppTrustStorage
+{
+public:
+ virtual ~QXmppAtmTrustStorage() = default;
+
+ virtual QFuture<void> addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList<QXmppTrustMessageKeyOwner> &keyOwners) = 0;
+ virtual QFuture<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &keyIdsForAuthentication, const QList<QByteArray> &keyIdsForDistrusting) = 0;
+ virtual QFuture<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds) = 0;
+ virtual QFuture<void> removeKeysForPostponedTrustDecisions(const QString &encryption) = 0;
+ virtual QFuture<QHash<bool, QMultiHash<QString, QByteArray>>> keysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds = {}) = 0;
+};
+
+#endif // QXMPPATMTRUSTSTORAGE_H