libQuotient
A Qt library for building matrix clients
|
#include <roomkeyevent.h>
Public Member Functions | |
RoomKeyEvent (const QString &algorithm, const QString &roomId, const QString &sessionId, const QString &sessionKey) | |
QByteArray | sessionKey () const |
Event (Event &&) noexcept=default | |
Event (const QJsonObject &json) | |
Public Member Functions inherited from Quotient::Event | |
virtual const AbstractEventMetaType & | metaType () const |
Event (Event &&) noexcept=default | |
Event & | operator= (Event &&)=delete |
virtual | ~Event () |
QString | matrixType () const |
Exact Matrix type stored in JSON. More... | |
template<EventClass EventT> | |
bool | is () const |
template<typename... VisitorTs> | |
auto | switchOnType (VisitorTs &&... visitors) const |
Apply one of the visitors based on the actual event type. More... | |
const QJsonObject & | fullJson () const |
const QJsonObject | contentJson () const |
template<typename T , typename KeyT > | |
const T | contentPart (KeyT &&key) const |
Get a part of the content object, assuming a given type. More... | |
const QJsonObject | unsignedJson () const |
template<typename T , typename KeyT > | |
const T | unsignedPart (KeyT &&key) const |
Get a part of the unsigned object, assuming a given type. More... | |
bool | isStateEvent () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Quotient::Event | |
static QJsonObject | basicJson (const QString &matrixType, const QJsonObject &content) |
Make a minimal correct Matrix event JSON. More... | |
Static Public Attributes inherited from Quotient::Event | |
static EventMetaType< Event > | BaseMetaType { "Event" } |
Protected Member Functions inherited from Quotient::Event | |
Event (const QJsonObject &json) | |
QJsonObject & | editJson () |
virtual void | dumpTo (QDebug dbg) const |
Definition at line 9 of file roomkeyevent.h.
|
inlineexplicit |
Definition at line 15 of file roomkeyevent.h.
|
explicit |
|
defaultnoexcept |
|
inline |
Definition at line 28 of file roomkeyevent.h.