libQuotient
A Qt library for building matrix clients
simplestateevents.h File Reference
#include "stateevent.h"
#include "single_key_value.h"
Include dependency graph for simplestateevents.h:

Go to the source code of this file.

Classes

class  Quotient::RoomServerAclEvent
 

Namespaces

 Quotient
 

Macros

#define DEFINE_SIMPLE_STATE_EVENT(Name_, TypeId_, ValueType_, GetterName_, JsonKey_)
 

Functions

 Quotient::DEFINE_SIMPLE_STATE_EVENT (RoomTopicEvent, "m.room.topic", QString, topic, "topic") DEFINE_SIMPLE_STATE_EVENT(RoomPinnedEventsEvent
 

Variables

m room Quotient::pinned_events
 
m room Quotient::QStringList
 
m room Quotient::pinnedEvents
 

Macro Definition Documentation

◆ DEFINE_SIMPLE_STATE_EVENT

#define DEFINE_SIMPLE_STATE_EVENT (   Name_,
  TypeId_,
  ValueType_,
  GetterName_,
  JsonKey_ 
)
Value:
constexpr inline auto Name_##Key = JsonKey_##_L1; \
class QUOTIENT_API Name_ : public ::Quotient::KeylessStateEventBase< \
Name_, EventContent::SingleKeyValue<ValueType_, Name_##Key>> { \
public: \
using value_type = ValueType_; \
QUO_EVENT(Name_, TypeId_) \
using KeylessStateEventBase::KeylessStateEventBase; \
auto GetterName_() const { return content().value; } \
}; \
#define QUOTIENT_API

Definition at line 12 of file simplestateevents.h.