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

#include <eventitem.h>

Inheritance diagram for Quotient::TimelineItem:
Collaboration diagram for Quotient::TimelineItem:

Public Types

using index_t = int
 
- Public Types inherited from Quotient::EventItemBase
using value_type = RoomEvent
 

Public Member Functions

 TimelineItem (RoomEventPtr &&e, index_t number)
 
index_t index () const
 
- Public Member Functions inherited from Quotient::EventItemBase
 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 ()
 

Additional Inherited Members

- Protected Member Functions inherited from Quotient::EventItemBase
template<EventClass< RoomEvent > EventT>
EventT * getAs ()
 

Detailed Description

Definition at line 83 of file eventitem.h.

Member Typedef Documentation

◆ index_t

Definition at line 87 of file eventitem.h.

Constructor & Destructor Documentation

◆ TimelineItem()

Quotient::TimelineItem::TimelineItem ( RoomEventPtr &&  e,
index_t  number 
)
inline

Definition at line 89 of file eventitem.h.

Member Function Documentation

◆ index()

index_t Quotient::TimelineItem::index ( ) const
inline

Definition at line 93 of file eventitem.h.


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