libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
Quotient::AbstractEventMetaType Class Referenceabstract

The base class for event metatypes. More...

#include <event.h>

Inheritance diagram for Quotient::AbstractEventMetaType:
Collaboration diagram for Quotient::AbstractEventMetaType:

Public Member Functions

auto derivedTypes () const
 
virtual ~AbstractEventMetaType ()=default
 

Public Attributes

const std::type_info & typeInfo
 
const char *const className
 
const AbstractEventMetaType *const baseType
 
const event_type_t matrixId
 

Protected Member Functions

 AbstractEventMetaType (const std::type_info &typeInfo, const char *className, AbstractEventMetaType *nearestBase=nullptr, event_type_t matrixId=nullptr)
 
virtual bool doLoadFrom (const QJsonObject &fullJson, const QString &type, Event *&event) const =0
 

Friends

template<class EventT >
class EventMetaType
 
bool operator== (const AbstractEventMetaType &lhs, const AbstractEventMetaType &rhs)
 

Detailed Description

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.

Definition at line 42 of file event.h.

Constructor & Destructor Documentation

◆ ~AbstractEventMetaType()

virtual Quotient::AbstractEventMetaType::~AbstractEventMetaType ( )
virtualdefault

◆ AbstractEventMetaType()

Quotient::AbstractEventMetaType::AbstractEventMetaType ( const std::type_info &  typeInfo,
const char *  className,
AbstractEventMetaType nearestBase = nullptr,
event_type_t  matrixId = nullptr 
)
explicitprotected

Member Function Documentation

◆ derivedTypes()

auto Quotient::AbstractEventMetaType::derivedTypes ( ) const
inline

Definition at line 52 of file event.h.

◆ doLoadFrom()

virtual bool Quotient::AbstractEventMetaType::doLoadFrom ( const QJsonObject &  fullJson,
const QString &  type,
Event *&  event 
) const
protectedpure virtual

Friends And Related Symbol Documentation

◆ EventMetaType

template<class EventT >
friend class EventMetaType
friend

Definition at line 64 of file event.h.

◆ operator==

bool operator== ( const AbstractEventMetaType lhs,
const AbstractEventMetaType rhs 
)
friend

Definition at line 56 of file event.h.

Member Data Documentation

◆ baseType

const AbstractEventMetaType* const Quotient::AbstractEventMetaType::baseType

Definition at line 48 of file event.h.

◆ className

const char* const Quotient::AbstractEventMetaType::className

Definition at line 47 of file event.h.

◆ matrixId

const event_type_t Quotient::AbstractEventMetaType::matrixId

Definition at line 49 of file event.h.

◆ typeInfo

const std::type_info& Quotient::AbstractEventMetaType::typeInfo

Definition at line 46 of file event.h.


The documentation for this class was generated from the following file: