libQuotient
A Qt library for building matrix clients
|
#include <stateevent.h>
Static Public Member Functions | |
static bool | isValid (const QJsonObject &fullJson) |
static QJsonObject | basicJson (const QString &matrixTypeId, const QString &stateKey={}, const QJsonObject &contentJson={}) |
Make a minimal correct Matrix state event JSON. | |
Static Public Member Functions inherited from Quotient::Event | |
static QJsonObject | basicJson (const QString &matrixType, const QJsonObject &content) |
Make a minimal correct Matrix event JSON. | |
Static Public Attributes | |
static constexpr auto | needsStateKey = false |
Static setting of whether a given even type uses state keys. | |
Static Public Attributes inherited from Quotient::Event | |
static EventMetaType< Event > | BaseMetaType { "Event" } |
Protected Member Functions | |
StateEvent (const QJsonObject &json) | |
void | dumpTo (QDebug dbg) const override |
Protected Member Functions inherited from Quotient::RoomEvent | |
RoomEvent (const QJsonObject &json) | |
Protected Member Functions inherited from Quotient::Event | |
Event (const QJsonObject &json) | |
QJsonObject & | editJson () |
Definition at line 12 of file stateevent.h.
|
explicit |
|
explicitprotected |
|
inlinestatic |
Make a minimal correct Matrix state event JSON.
Definition at line 33 of file stateevent.h.
Reimplemented from Quotient::RoomEvent.
|
inlinestatic |
Definition at line 16 of file stateevent.h.
QString Quotient::StateEvent::replacedState | ( | ) | const |
Static setting of whether a given even type uses state keys.
Most event types don't use a state key; overriding this to true
for a given type changes the calls across Quotient to include state key in their signatures; otherwise, state key is still accessible but constructors and calls in, e.g., RoomStateView don't include it.
Definition at line 27 of file stateevent.h.