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