document joinruleevent
This commit is contained in:
committed by
Carl Schwan
parent
5567f94535
commit
5107f0e79e
@@ -7,6 +7,13 @@
|
|||||||
|
|
||||||
namespace Quotient
|
namespace Quotient
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @class JoinRulesEvent
|
||||||
|
*
|
||||||
|
* Class to define a join rule state event.
|
||||||
|
*
|
||||||
|
* @sa Quotient::StateEvent
|
||||||
|
*/
|
||||||
#ifdef QUOTIENT_07
|
#ifdef QUOTIENT_07
|
||||||
class JoinRulesEvent : public StateEvent
|
class JoinRulesEvent : public StateEvent
|
||||||
#else
|
#else
|
||||||
@@ -29,7 +36,20 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The join rule for the room.
|
||||||
|
*
|
||||||
|
* see https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules for
|
||||||
|
* the available join rules for a room.
|
||||||
|
*/
|
||||||
QString joinRule() const;
|
QString joinRule() const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The allow rule for restricted rooms.
|
||||||
|
*
|
||||||
|
* see https://spec.matrix.org/latest/client-server-api/#mroomjoin_rules for
|
||||||
|
* full details on allow rules.
|
||||||
|
*/
|
||||||
QJsonArray allow() const;
|
QJsonArray allow() const;
|
||||||
};
|
};
|
||||||
REGISTER_EVENT_TYPE(JoinRulesEvent)
|
REGISTER_EVENT_TYPE(JoinRulesEvent)
|
||||||
|
|||||||
Reference in New Issue
Block a user