5#ifndef QXMPPOMEMOSTORAGE_H
6#define QXMPPOMEMOSTORAGE_H
9#include "qxmppomemo_export.h"
54 uint32_t latestSignedPreKeyId = 1;
62 uint32_t latestPreKeyId = 1;
92 int unrespondedSentStanzasCount = 0;
101 int unrespondedReceivedStanzasCount = 0;
149 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:70
QByteArray keyId
Definition: QXmppOmemoStorage.h:79
QString label
Definition: QXmppOmemoStorage.h:74
QByteArray session
Definition: QXmppOmemoStorage.h:84
QDateTime removalFromDeviceListDate
Definition: QXmppOmemoStorage.h:108
Definition: QXmppOmemoStorage.h:129
QHash< uint32_t, QByteArray > preKeyPairs
Definition: QXmppOmemoStorage.h:143
std::optional< OwnDevice > ownDevice
Definition: QXmppOmemoStorage.h:133
QHash< uint32_t, SignedPreKeyPair > signedPreKeyPairs
Definition: QXmppOmemoStorage.h:138
QHash< QString, QHash< uint32_t, Device > > devices
Definition: QXmppOmemoStorage.h:149
Definition: QXmppOmemoStorage.h:22
QString label
Definition: QXmppOmemoStorage.h:36
QByteArray privateIdentityKey
Definition: QXmppOmemoStorage.h:41
QByteArray publicIdentityKey
Definition: QXmppOmemoStorage.h:46
Definition: QXmppOmemoStorage.h:114
QByteArray data
Definition: QXmppOmemoStorage.h:123
QDateTime creationDate
Definition: QXmppOmemoStorage.h:118