libQuotient
A Qt library for building matrix clients
|
#include <qolmoutboundsession.h>
Public Member Functions | |
QOlmOutboundGroupSession () | |
QByteArray | pickle (const PicklingKey &key) const |
Serialises a QOlmOutboundGroupSession to encrypted Base64. | |
QByteArray | encrypt (const QByteArray &plaintext) const |
Encrypts a plaintext message using the session. | |
uint32_t | sessionMessageIndex () const |
QByteArray | sessionId () const |
Get a base64-encoded identifier for this session. | |
QByteArray | sessionKey () const |
int | messageCount () const |
void | setMessageCount (int messageCount) |
QDateTime | creationTime () const |
void | setCreationTime (const QDateTime &creationTime) |
OlmErrorCode | lastErrorCode () const |
const char * | lastError () const |
Static Public Member Functions | |
static QOlmExpected< QOlmOutboundGroupSession > | unpickle (QByteArray &&pickled, const PicklingKey &key) |
An out-bound group session is responsible for encrypting outgoing communication in a Megolm session.
Definition at line 15 of file qolmoutboundsession.h.
Quotient::QOlmOutboundGroupSession::QOlmOutboundGroupSession | ( | ) |
QDateTime Quotient::QOlmOutboundGroupSession::creationTime | ( | ) | const |
QByteArray Quotient::QOlmOutboundGroupSession::encrypt | ( | const QByteArray & | plaintext | ) | const |
Encrypts a plaintext message using the session.
OlmErrorCode Quotient::QOlmOutboundGroupSession::lastErrorCode | ( | ) | const |
int Quotient::QOlmOutboundGroupSession::messageCount | ( | ) | const |
QByteArray Quotient::QOlmOutboundGroupSession::pickle | ( | const PicklingKey & | key | ) | const |
Serialises a QOlmOutboundGroupSession
to encrypted Base64.
QByteArray Quotient::QOlmOutboundGroupSession::sessionId | ( | ) | const |
Get a base64-encoded identifier for this session.
QByteArray Quotient::QOlmOutboundGroupSession::sessionKey | ( | ) | const |
Get the base64-encoded current ratchet key for this session.
Each message is sent with a different ratchet key. This function returns the ratchet key that will be used for the next message.
uint32_t Quotient::QOlmOutboundGroupSession::sessionMessageIndex | ( | ) | const |
Get the current message index for this session.
Each message is sent with an increasing index; this returns the index for the next message.
|
static |
Deserialises from encrypted Base64 that was previously obtained by pickling a QOlmOutboundGroupSession
.