libQuotient
A Qt library for building matrix clients
Quotient::EventItemBase Class Reference

#include <eventitem.h>

Inheritance diagram for Quotient::EventItemBase:

Public Types

using value_type = RoomEvent
 

Public Member Functions

 EventItemBase (RoomEventPtr &&e)
 
const RoomEventevent () const
 
const RoomEventget () const
 
template<EventClass< RoomEvent > EventT>
const EventT * viewAs () const
 
const RoomEventPtroperator-> () const
 
const RoomEventoperator* () const
 
RoomEventPtr replaceEvent (RoomEventPtr &&other)
 
void setUserData (std::any userData)
 Store arbitrary data with the event item. More...
 
const std::any & userdata () const
 Obtain custom data previously stored with the event item. More...
 
std::any & userData ()
 

Protected Member Functions

template<EventClass< RoomEvent > EventT>
EventT * getAs ()
 

Detailed Description

Definition at line 40 of file eventitem.h.

Member Typedef Documentation

◆ value_type

Definition at line 42 of file eventitem.h.

Constructor & Destructor Documentation

◆ EventItemBase()

Quotient::EventItemBase::EventItemBase ( RoomEventPtr &&  e)
inlineexplicit

Definition at line 44 of file eventitem.h.

Member Function Documentation

◆ event()

const RoomEvent* Quotient::EventItemBase::event ( ) const
inline

Definition at line 49 of file eventitem.h.

◆ get()

const RoomEvent* Quotient::EventItemBase::get ( ) const
inline

Definition at line 50 of file eventitem.h.

◆ getAs()

template<EventClass< RoomEvent > EventT>
EventT* Quotient::EventItemBase::getAs ( )
inlineprotected

Definition at line 73 of file eventitem.h.

◆ operator*()

const RoomEvent& Quotient::EventItemBase::operator* ( ) const
inline

Definition at line 57 of file eventitem.h.

◆ operator->()

const RoomEventPtr& Quotient::EventItemBase::operator-> ( ) const
inline

Definition at line 56 of file eventitem.h.

◆ replaceEvent()

RoomEventPtr Quotient::EventItemBase::replaceEvent ( RoomEventPtr &&  other)
inline

Definition at line 60 of file eventitem.h.

◆ setUserData()

void Quotient::EventItemBase::setUserData ( std::any  userData)
inline

Store arbitrary data with the event item.

Definition at line 66 of file eventitem.h.

◆ userData()

std::any& Quotient::EventItemBase::userData ( )
inline

Definition at line 69 of file eventitem.h.

◆ userdata()

const std::any& Quotient::EventItemBase::userdata ( ) const
inline

Obtain custom data previously stored with the event item.

Definition at line 68 of file eventitem.h.

◆ viewAs()

template<EventClass< RoomEvent > EventT>
const EventT* Quotient::EventItemBase::viewAs ( ) const
inline

Definition at line 52 of file eventitem.h.


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