Loading...
Searching...
No Matches
QXmppOmemoMemoryStorage.h
// SPDX-FileCopyrightText: 2022 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPOMEMOMEMORYSTORAGE_H
#define QXMPPOMEMOMEMORYSTORAGE_H
#include "QXmppOmemoStorage.h"
#include "QXmppTask.h"
#include "qxmppomemo_export.h"
#include <memory>
class QXmppOmemoMemoryStoragePrivate;
class QXMPPOMEMO_EXPORT QXmppOmemoMemoryStorage : public QXmppOmemoStorage
{
public:
QXmppOmemoMemoryStorage();
~QXmppOmemoMemoryStorage() override;
QXmppTask<OmemoData> allData() override;
QXmppTask<void> setOwnDevice(const std::optional<OwnDevice> &device) override;
QXmppTask<void> addSignedPreKeyPair(uint32_t keyId, const SignedPreKeyPair &keyPair) override;
QXmppTask<void> removeSignedPreKeyPair(uint32_t keyId) override;
QXmppTask<void> addPreKeyPairs(const QHash<uint32_t, QByteArray> &keyPairs) override;
QXmppTask<void> removePreKeyPair(uint32_t keyId) override;
QXmppTask<void> addDevice(const QString &jid, uint32_t deviceId, const Device &device) override;
QXmppTask<void> removeDevice(const QString &jid, uint32_t deviceId) override;
QXmppTask<void> removeDevices(const QString &jid) override;
QXmppTask<void> resetAll() override;
private:
std::unique_ptr<QXmppOmemoMemoryStoragePrivate> d;
};
#endif // QXMPPOMEMOMEMORYSTORAGE_H
QXmppOmemoMemoryStorage::QXmppOmemoMemoryStorage
QXmppOmemoMemoryStorage()
Definition QXmppOmemoMemoryStorage.cpp:40
QXmppOmemoStorage
The QXmppOmemoStorage class stores data used by XEP-0384: OMEMO Encryption.
Definition QXmppOmemoStorage.h:17
QXmppOmemoStorage::removePreKeyPair
virtual QXmppTask< void > removePreKeyPair(uint32_t keyId)=0
QXmppOmemoStorage::removeDevice
virtual QXmppTask< void > removeDevice(const QString &jid, uint32_t deviceId)=0
QXmppOmemoStorage::addDevice
virtual QXmppTask< void > addDevice(const QString &jid, uint32_t deviceId, const Device &device)=0
QXmppOmemoStorage::setOwnDevice
virtual QXmppTask< void > setOwnDevice(const std::optional< OwnDevice > &device)=0
QXmppOmemoStorage::removeDevices
virtual QXmppTask< void > removeDevices(const QString &jid)=0
QXmppOmemoStorage::addSignedPreKeyPair
virtual QXmppTask< void > addSignedPreKeyPair(uint32_t keyId, const SignedPreKeyPair &keyPair)=0
QXmppOmemoStorage::resetAll
virtual QXmppTask< void > resetAll()=0
QXmppOmemoStorage::removeSignedPreKeyPair
virtual QXmppTask< void > removeSignedPreKeyPair(uint32_t keyId)=0
QXmppOmemoStorage::allData
virtual QXmppTask< OmemoData > allData()=0
QXmppOmemoStorage::addPreKeyPairs
virtual QXmppTask< void > addPreKeyPairs(const QHash< uint32_t, QByteArray > &keyPairs)=0
QXmppTask
Definition QXmppTask.h:46
QXmppOmemoStorage::Device
Definition QXmppOmemoStorage.h:70
QXmppOmemoStorage::SignedPreKeyPair
Definition QXmppOmemoStorage.h:114