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

Class to define a join rule state event. More...

#include <roomjoinrulesevent.h>

Inheritance diagram for Quotient::JoinRulesEvent:
Collaboration diagram for Quotient::JoinRulesEvent:

Public Member Functions

JoinRule joinRule () const
 The join rule for the room.
 
QList< EventContent::AllowConditionallow () const
 The allow rules for restricted rooms.
 
template<typename... ContentParamTs>
requires std::constructible_from<base_type, QString, ContentParamTs...>
 KeylessStateEventBase (ContentParamTs &&... contentParams)
 
 KeylessStateEventBase (const QJsonObject &fullJson)
 
- Public Member Functions inherited from Quotient::KeylessStateEventBase< JoinRulesEvent, EventContent::JoinRuleContent >
 KeylessStateEventBase (ContentParamTs &&... contentParams)
 
- Public Member Functions inherited from Quotient::EventTemplate< EventT, BaseEventT, ContentT >
 EventTemplate (const QJsonObject &json)
 
 EventTemplate (const ContentT &c)
 
ContentT content () const
 

Additional Inherited Members

- Public Types inherited from Quotient::EventTemplate< EventT, BaseEventT, ContentT >
using content_type = ContentT
 
- Protected Member Functions inherited from Quotient::KeylessStateEventBase< JoinRulesEvent, EventContent::JoinRuleContent >
 KeylessStateEventBase (const QJsonObject &fullJson)
 

Detailed Description

Class to define a join rule state event.

See also
Quotient::StateEvent, https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules

Definition at line 78 of file roomjoinrulesevent.h.

Member Function Documentation

◆ allow()

QList< EventContent::AllowCondition > Quotient::JoinRulesEvent::allow ( ) const
inline

The allow rules for restricted rooms.

See also
https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules

Definition at line 93 of file roomjoinrulesevent.h.

◆ joinRule()

JoinRule Quotient::JoinRulesEvent::joinRule ( ) const
inline

The join rule for the room.

See also
https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules

Definition at line 88 of file roomjoinrulesevent.h.

◆ KeylessStateEventBase() [1/2]

Quotient::KeylessStateEventBase< EventT, ContentT >::KeylessStateEventBase ( const QJsonObject fullJson)
inlineexplicit

Definition at line 136 of file stateevent.h.

◆ KeylessStateEventBase() [2/2]

template<typename... ContentParamTs>
requires std::constructible_from<base_type, QString, ContentParamTs...>
Quotient::KeylessStateEventBase< EventT, ContentT >::KeylessStateEventBase ( ContentParamTs &&...  contentParams)
inlineexplicit

Definition at line 131 of file stateevent.h.


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