libQuotient
A Qt library for building matrix clients
Quotient::EventRelation Struct Reference

#include <eventrelation.h>

Public Types

using reltypeid_t = QLatin1String
 

Static Public Member Functions

static EventRelation replyTo (QString eventId)
 
static EventRelation annotate (QString eventId, QString key)
 
static EventRelation replace (QString eventId)
 
static EventRelation replyInThread (QString threadRootId, bool isFallingBack, QString inThreadReplyEventId)
 

Public Attributes

QString type
 
QString eventId
 
QString key = {}
 
bool isFallingBack = false
 
QString inThreadReplyEventId = {}
 

Static Public Attributes

static constexpr auto ReplyType = "m.in_reply_to"_L1
 
static constexpr auto AnnotationType = "m.annotation"_L1
 
static constexpr auto ReplacementType = "m.replace"_L1
 
static constexpr auto ThreadType = "m.thread"_L1
 

Detailed Description

Definition at line 14 of file eventrelation.h.

Member Typedef Documentation

◆ reltypeid_t

using Quotient::EventRelation::reltypeid_t = QLatin1String

Definition at line 15 of file eventrelation.h.

Member Function Documentation

◆ annotate()

static EventRelation Quotient::EventRelation::annotate ( QString  eventId,
QString  key 
)
inlinestatic

Definition at line 34 of file eventrelation.h.

◆ replace()

static EventRelation Quotient::EventRelation::replace ( QString  eventId)
inlinestatic

Definition at line 38 of file eventrelation.h.

◆ replyInThread()

static EventRelation Quotient::EventRelation::replyInThread ( QString  threadRootId,
bool  isFallingBack,
QString  inThreadReplyEventId 
)
inlinestatic

Definition at line 42 of file eventrelation.h.

◆ replyTo()

static EventRelation Quotient::EventRelation::replyTo ( QString  eventId)
inlinestatic

Definition at line 30 of file eventrelation.h.

Member Data Documentation

◆ AnnotationType

constexpr auto Quotient::EventRelation::AnnotationType = "m.annotation"_L1
staticconstexpr

Definition at line 26 of file eventrelation.h.

◆ eventId

QString Quotient::EventRelation::eventId

Definition at line 18 of file eventrelation.h.

◆ inThreadReplyEventId

QString Quotient::EventRelation::inThreadReplyEventId = {}

Definition at line 23 of file eventrelation.h.

◆ isFallingBack

bool Quotient::EventRelation::isFallingBack = false

Definition at line 20 of file eventrelation.h.

◆ key

QString Quotient::EventRelation::key = {}

Definition at line 19 of file eventrelation.h.

◆ ReplacementType

constexpr auto Quotient::EventRelation::ReplacementType = "m.replace"_L1
staticconstexpr

Definition at line 27 of file eventrelation.h.

◆ ReplyType

constexpr auto Quotient::EventRelation::ReplyType = "m.in_reply_to"_L1
staticconstexpr

Definition at line 25 of file eventrelation.h.

◆ ThreadType

constexpr auto Quotient::EventRelation::ThreadType = "m.thread"_L1
staticconstexpr

Definition at line 28 of file eventrelation.h.

◆ type

QString Quotient::EventRelation::type

Definition at line 17 of file eventrelation.h.


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