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