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

#include <encryptedevent.h>

Inheritance diagram for Quotient::DummyEvent:
Collaboration diagram for Quotient::DummyEvent:

Public Member Functions

 DummyEvent ()
 
 Event (Event &&) noexcept=default
 
 Event (const QJsonObject &json)
 
- Public Member Functions inherited from Quotient::Event
virtual const AbstractEventMetaTypemetaType () const
 
 Event (Event &&) noexcept=default
 
Eventoperator= (Event &&)=delete
 
virtual ~Event ()
 
QString matrixType () const
 Exact Matrix type stored in JSON.
 
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.
 
const QJsonObjectfullJson () 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.
 
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.
 
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.
 
- Static Public Attributes inherited from Quotient::Event
static EventMetaType< EventBaseMetaType { "Event" }
 
- Protected Member Functions inherited from Quotient::Event
 Event (const QJsonObject &json)
 
QJsonObjecteditJson ()
 
virtual void dumpTo (QDebug dbg) const
 

Detailed Description

Definition at line 70 of file encryptedevent.h.

Constructor & Destructor Documentation

◆ DummyEvent()

Quotient::DummyEvent::DummyEvent ( )
inlineexplicit

Definition at line 74 of file encryptedevent.h.

Member Function Documentation

◆ Event() [1/2]

Quotient::Event::Event ( const QJsonObject json)
explicit

◆ Event() [2/2]

Quotient::Event::Event ( Event &&  )
defaultnoexcept

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