QXmpp Version: 1.9.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
11class QXmppAtmTrustMemoryStoragePrivate;
12
14{
15public:
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
29private:
30 const std::unique_ptr<QXmppAtmTrustMemoryStoragePrivate> d;
31};
32
33#endif // QXMPPATMTRUSTMEMORYSTORAGE_H
The QXmppAtmTrustMemoryStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM)...
Definition: QXmppAtmTrustMemoryStorage.h:14
The QXmppAtmTrustStorage class stores trust data for XEP-0450: Automatic Trust Management (ATM).
Definition: QXmppAtmTrustStorage.h:15
virtual QXmppTask< void > addKeysForPostponedTrustDecisions(const QString &encryption, const QByteArray &senderKeyId, const QList< QXmppTrustMessageKeyOwner > &keyOwners)=0
virtual QXmppTask< void > removeKeysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &keyIdsForAuthentication, const QList< QByteArray > &keyIdsForDistrusting)=0
virtual QXmppTask< QHash< bool, QMultiHash< QString, QByteArray > > > keysForPostponedTrustDecisions(const QString &encryption, const QList< QByteArray > &senderKeyIds={})=0
Definition: QXmppTask.h:62
The QXmppTrustMemoryStorage class stores trust data for end-to-end encryption in the memory.
Definition: QXmppTrustMemoryStorage.h:15
virtual QXmppTask< void > resetAll(const QString &encryption)=0