QXmpp Version: 1.5.6
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
QXmppOmemoStorage Class Referenceabstract

The QXmppOmemoStorage class stores data used by XEP-0384: OMEMO Encryption. More...

Inheritance diagram for QXmppOmemoStorage:
Inheritance graph
[legend]

Classes

struct  Device
 
struct  OmemoData
 
struct  OwnDevice
 
struct  SignedPreKeyPair
 

Public Member Functions

virtual QXmppTask< OmemoDataallData ()=0
 
virtual QXmppTask< void > setOwnDevice (const std::optional< OwnDevice > &device)=0
 
virtual QXmppTask< void > addSignedPreKeyPair (uint32_t keyId, const SignedPreKeyPair &keyPair)=0
 
virtual QXmppTask< void > removeSignedPreKeyPair (uint32_t keyId)=0
 
virtual QXmppTask< void > addPreKeyPairs (const QHash< uint32_t, QByteArray > &keyPairs)=0
 
virtual QXmppTask< void > removePreKeyPair (uint32_t keyId)=0
 
virtual QXmppTask< void > addDevice (const QString &jid, uint32_t deviceId, const Device &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
 

Detailed Description

The QXmppOmemoStorage class stores data used by XEP-0384: OMEMO Encryption.

Warning
THIS API IS NOT FINALIZED YET!
Since
QXmpp 1.5

Member Function Documentation

◆ addDevice()

QXmppOmemoStorage::addDevice ( const QString &  jid,
uint32_t  deviceId,
const Device device 
)
pure virtual

Adds other devices (i.e., all devices but the own one).

Parameters
jidJID of the device owner
deviceIdID of the device
devicedevice being added

◆ addPreKeyPairs()

QXmppOmemoStorage::addPreKeyPairs ( const QHash< uint32_t, QByteArray > &  keyPairs)
pure virtual

Adds pre key pairs.

Parameters
keyPairskey IDs mapped to the pre key pairs

◆ addSignedPreKeyPair()

QXmppOmemoStorage::addSignedPreKeyPair ( uint32_t  keyId,
const SignedPreKeyPair keyPair 
)
pure virtual

Adds a signed pre key pair.

Parameters
keyIdID of the signed pre key pair
keyPairsigned pre key pair

◆ allData()

QXmppOmemoStorage::allData ( )
pure virtual

Returns all data used by OMEMO.

Returns
the OMEMO data

◆ removeDevice()

QXmppOmemoStorage::removeDevice ( const QString &  jid,
uint32_t  deviceId 
)
pure virtual

Removes a device of the other devices (i.e., all devices but the own one).

Parameters
jidJID of the device owner
deviceIdID of the device being removed

◆ removeDevices()

QXmppOmemoStorage::removeDevices ( const QString &  jid)
pure virtual

Removes all devices of a passed JID from the other devices (i.e., all devices but the own one).

Parameters
jidJID of the device owner

◆ removePreKeyPair()

QXmppOmemoStorage::removePreKeyPair ( uint32_t  keyId)
pure virtual

Removes a pre key pair.

Parameters
keyIdID of the pre key pair

◆ removeSignedPreKeyPair()

QXmppOmemoStorage::removeSignedPreKeyPair ( uint32_t  keyId)
pure virtual

Removes a signed pre key pair.

Parameters
keyIdID of the signed pre key pair

◆ resetAll()

QXmppOmemoStorage::resetAll ( )
pure virtual

Resets all data.

◆ setOwnDevice()

QXmppOmemoStorage::setOwnDevice ( const std::optional< OwnDevice > &  device)
pure virtual

Sets the own device (i.e., the device used by this client instance).

Parameters
deviceown device

The documentation for this class was generated from the following files: