5#ifndef QXMPPOMEMOSTORAGE_H
6#define QXMPPOMEMOSTORAGE_H
9#include "qxmppomemo_export.h"
55 uint32_t latestSignedPreKeyId = 1;
63 uint32_t latestPreKeyId = 1;
94 int unrespondedSentStanzasCount = 0;
103 int unrespondedReceivedStanzasCount = 0;
153 QHash<QString, QHash<uint32_t, Device>>
devices;
The QXmppOmemoStorage class stores data used by XEP-0384: OMEMO Encryption.
Definition QXmppOmemoStorage.h:17
virtual QXmppTask< void > addPreKeyPairs(const QHash< uint32_t, QByteArray > &keyPairs)=0
virtual QXmppTask< void > removeSignedPreKeyPair(uint32_t keyId)=0
virtual QXmppTask< OmemoData > allData()=0
virtual QXmppTask< void > removePreKeyPair(uint32_t keyId)=0
virtual QXmppTask< void > addSignedPreKeyPair(uint32_t keyId, const SignedPreKeyPair &keyPair)=0
virtual QXmppTask< void > addDevice(const QString &jid, uint32_t deviceId, const Device &device)=0
virtual QXmppTask< void > setOwnDevice(const std::optional< OwnDevice > &device)=0
virtual QXmppTask< void > removeDevice(const QString &jid, uint32_t deviceId)=0
virtual QXmppTask< void > removeDevices(const QString &jid)=0
virtual QXmppTask< void > resetAll()=0
Definition QXmppTask.h:62
Definition QXmppOmemoStorage.h:72
QByteArray keyId
Definition QXmppOmemoStorage.h:81
QString label
Definition QXmppOmemoStorage.h:76
QByteArray session
Definition QXmppOmemoStorage.h:86
QDateTime removalFromDeviceListDate
Definition QXmppOmemoStorage.h:110
Definition QXmppOmemoStorage.h:133
QHash< uint32_t, QByteArray > preKeyPairs
Definition QXmppOmemoStorage.h:147
std::optional< OwnDevice > ownDevice
Definition QXmppOmemoStorage.h:137
QHash< uint32_t, SignedPreKeyPair > signedPreKeyPairs
Definition QXmppOmemoStorage.h:142
QHash< QString, QHash< uint32_t, Device > > devices
Definition QXmppOmemoStorage.h:153
Definition QXmppOmemoStorage.h:23
QString label
Definition QXmppOmemoStorage.h:37
QByteArray privateIdentityKey
Definition QXmppOmemoStorage.h:42
QByteArray publicIdentityKey
Definition QXmppOmemoStorage.h:47
Definition QXmppOmemoStorage.h:117
QByteArray data
Definition QXmppOmemoStorage.h:126
QDateTime creationDate
Definition QXmppOmemoStorage.h:121