libQuotient
A Qt library for building matrix clients
|
The base class for event metatypes. More...
#include <event.h>
Public Member Functions | |
AbstractEventMetaType (const char *className, AbstractEventMetaType *nearestBase=nullptr, const char *matrixId=nullptr) | |
void | addDerived (const AbstractEventMetaType *newType) |
auto | derivedTypes () const |
virtual | ~AbstractEventMetaType ()=default |
Public Attributes | |
const char *const | className |
C++ class name this metatype is for. More... | |
const AbstractEventMetaType *const | baseType |
const event_type_t | matrixId |
Protected Member Functions | |
virtual bool | doLoadFrom (const QJsonObject &fullJson, const QString &type, Event *&event) const =0 |
Friends | |
template<class EventT > | |
class | EventMetaType |
The base class for event metatypes.
You should not normally have to use this directly, unless you need to devise a whole new kind of event metatypes.
|
inlineexplicit |
|
virtualdefault |
void Quotient::AbstractEventMetaType::addDerived | ( | const AbstractEventMetaType * | newType | ) |
|
inline |
|
protectedpure virtual |
|
friend |
const AbstractEventMetaType* const Quotient::AbstractEventMetaType::baseType |
const char* const Quotient::AbstractEventMetaType::className |
const event_type_t Quotient::AbstractEventMetaType::matrixId |