libQuotient
A Qt library for building matrix clients
|
A wrapper around an olm encrypted message. More...
#include <qolmmessage.h>
Public Types | |
enum | Type { PreKey = OLM_MESSAGE_TYPE_PRE_KEY , General = OLM_MESSAGE_TYPE_MESSAGE } |
Public Member Functions | |
QOlmMessage (QByteArray ciphertext, Type type=General) | |
Q_INVOKABLE Type | type () const |
Q_INVOKABLE QByteArray | toCiphertext () const |
Static Public Member Functions | |
static QOlmMessage | fromCiphertext (const QByteArray &ciphertext) |
A wrapper around an olm encrypted message.
This class encapsulates a Matrix olm encrypted message, passed in either of 2 forms: a general message or a pre-key message.
The class provides functions to get a type and the ciphertext.
Definition at line 22 of file qolmmessage.h.
Enumerator | |
---|---|
PreKey | |
General |
Definition at line 25 of file qolmmessage.h.
|
static |
Q_INVOKABLE QByteArray Quotient::QOlmMessage::toCiphertext | ( | ) | const |
Q_INVOKABLE Type Quotient::QOlmMessage::type | ( | ) | const |