QXmpp  Version: 1.6.0
QXmppAtmTrustMemoryStorage.h
1 // SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #ifndef QXMPPATMTRUSTMEMORYSTORAGE_H
6 #define QXMPPATMTRUSTMEMORYSTORAGE_H
7 
8 #include "QXmppAtmTrustStorage.h"
9 #include "QXmppTrustMemoryStorage.h"
10 
11 class QXmppAtmTrustMemoryStoragePrivate;
12 
13 class QXMPP_EXPORT QXmppAtmTrustMemoryStorage : virtual public QXmppAtmTrustStorage, public QXmppTrustMemoryStorage
14 {
15 public:
18 
20  QXmppTask<void> addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList<QXmppTrustMessageKeyOwner> &keyOwners) override;
21  QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &keyIdsForAuthentication, const QList<QByteArray> &keyIdsForDistrusting) override;
22  QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds) override;
23  QXmppTask<void> removeKeysForPostponedTrustDecisions(const QString &encryption) override;
24  QXmppTask<QHash<bool, QMultiHash<QString, QByteArray>>> keysForPostponedTrustDecisions(const QString &encryption, const QList<QByteArray> &senderKeyIds = {}) override;
25 
26  QXmppTask<void> resetAll(const QString &encryption) override;
28 
29 private:
30  const std::unique_ptr<QXmppAtmTrustMemoryStoragePrivate> d;
31 };
32 
33 #endif // QXMPPATMTRUSTMEMORYSTORAGE_H
virtual QXmppTask< void > resetAll(const QString &encryption)=0
The QXmppAtmTrustMemoryStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM)...
Definition: QXmppAtmTrustMemoryStorage.h:13
Definition: QXmppStream.h:20
virtual QXmppTask< QHash< bool, QMultiHash< QString, QByteArray > > > keysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds={})=0
virtual QXmppTask< void > addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList< QXmppTrustMessageKeyOwner > &keyOwners)=0
The QXmppAtmTrustStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM)...
Definition: QXmppAtmTrustStorage.h:14
The QXmppTrustMemoryStorage class stores trust data for end-to-end encryption in the memory...
Definition: QXmppTrustMemoryStorage.h:14
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &keyIdsForAuthentication, const QList< QByteArray > &keyIdsForDistrusting)=0