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

#include <roomcreateevent.h>

Inheritance diagram for Quotient::RoomCreateEvent:
Collaboration diagram for Quotient::RoomCreateEvent:

Classes

struct  Predecessor
 

Public Member Functions

bool isFederated () const
 
QString version () const
 
Predecessor predecessor () const
 
bool isUpgrade () const
 
RoomType roomType () const
 
QStringList additionalCreators () const
 
 StateEvent (event_type_t type, const QString &stateKey={}, const QJsonObject &contentJson={})
 
 StateEvent (const QJsonObject &json)
 
- Public Member Functions inherited from Quotient::StateEvent
 StateEvent (event_type_t type, const QString &stateKey={}, const QJsonObject &contentJson={})
 
QString replacedState () const
 
virtual bool repeatsState () const
 
- Public Member Functions inherited from Quotient::RoomEvent
 ~RoomEvent () override
 
QString displayId () const
 A convenience function to get a display string for an event ID.
 
QString id () const
 The event_id JSON value for the event.
 
QDateTime originTimestamp () const
 
QString roomId () const
 
QString senderId () const
 
bool isRedacted () const
 
const event_ptr_tt< RedactionEvent > & redactedBecause () const
 
QString redactionReason () const
 
QString transactionId () const
 The transaction_id JSON value for the event.
 
bool isStateEvent () const
 
QString stateKey () const
 
void setRoomId (const QString &roomId)
 Fill the pending event object with the room id.
 
void setSender (const QString &senderId)
 Fill the pending event object with the sender id.
 
void setTransactionId (const QString &txnId)
 Fill the pending event object with the transaction id.
 
void addId (const QString &newId)
 Add an event id to locally created events after they are sent.
 
void setOriginalEvent (event_ptr_tt< EncryptedEvent > &&originalEvent)
 
const EncryptedEventoriginalEvent () const
 
const QJsonObject encryptedJson () const
 
bool isReply (bool includeFallbacks=false) const
 Determine whether the event is a reply to another message.
 
QString replyEventId (bool includeFallbacks=false) const
 The ID for the event being replied to.
 
std::optional< EventRelationrelatesTo () const
 The EventRelation for this event.
 
- 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::StateEvent
static bool isValid (const QJsonObject &fullJson)
 
static QJsonObject basicJson (const QString &matrixTypeId, const QString &stateKey={}, const QJsonObject &contentJson={})
 Make a minimal correct Matrix state event JSON.
 
- 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::StateEvent
static constexpr auto needsStateKey = false
 Static setting of whether a given even type uses state keys.
 
- Static Public Attributes inherited from Quotient::Event
static EventMetaType< EventBaseMetaType {}
 
- Protected Member Functions inherited from Quotient::StateEvent
 StateEvent (const QJsonObject &json)
 
void dumpTo (QDebug dbg) const override
 
- Protected Member Functions inherited from Quotient::RoomEvent
 RoomEvent (const QJsonObject &json)
 
- Protected Member Functions inherited from Quotient::Event
 Event (const QJsonObject &json)
 
QJsonObjecteditJson ()
 

Detailed Description

Definition at line 10 of file roomcreateevent.h.

Member Function Documentation

◆ additionalCreators()

QStringList Quotient::RoomCreateEvent::additionalCreators ( ) const

◆ isFederated()

bool Quotient::RoomCreateEvent::isFederated ( ) const

◆ isUpgrade()

bool Quotient::RoomCreateEvent::isUpgrade ( ) const

◆ predecessor()

Predecessor Quotient::RoomCreateEvent::predecessor ( ) const

◆ roomType()

RoomType Quotient::RoomCreateEvent::roomType ( ) const

◆ StateEvent() [1/2]

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

◆ StateEvent() [2/2]

Quotient::StateEvent::StateEvent ( event_type_t  type,
const QString stateKey = {},
const QJsonObject contentJson = {} 
)
explicit

◆ version()

QString Quotient::RoomCreateEvent::version ( ) const

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