libQuotient
A Qt library for building matrix clients
Quotient::RoomPowerLevelsEvent Class Reference

#include <roompowerlevelsevent.h>

Inheritance diagram for Quotient::RoomPowerLevelsEvent:
Collaboration diagram for Quotient::RoomPowerLevelsEvent:

Public Member Functions

int invite () const
 
int kick () const
 
int ban () const
 
int redact () const
 
QHash< QString, int > events () const
 
int eventsDefault () const
 
int stateDefault () const
 
QHash< QString, int > users () const
 
int usersDefault () const
 
int roomNotification () const
 
int powerLevelForEvent (const QString &eventTypeId) const
 Get the power level for message events of a given type. More...
 
int powerLevelForState (const QString &eventTypeId) const
 Get the power level for state events of a given type. More...
 
int powerLevelForUser (const QString &userId) const
 Get the power level for a given user. More...
 
template<EventClass EvT>
int powerLevelForEventType () const
 
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< RoomPowerLevelsEvent, PowerLevelsEventContent >
requires std::constructible_from< base_type, QString, ContentParamTs... > 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< RoomPowerLevelsEvent, PowerLevelsEventContent >
 KeylessStateEventBase (const QJsonObject &fullJson)
 

Detailed Description

Definition at line 38 of file roompowerlevelsevent.h.

Member Function Documentation

◆ ban()

int Quotient::RoomPowerLevelsEvent::ban ( ) const
inline

Definition at line 47 of file roompowerlevelsevent.h.

◆ events()

QHash<QString, int> Quotient::RoomPowerLevelsEvent::events ( ) const
inline

Definition at line 51 of file roompowerlevelsevent.h.

◆ eventsDefault()

int Quotient::RoomPowerLevelsEvent::eventsDefault ( ) const
inline

Definition at line 52 of file roompowerlevelsevent.h.

◆ invite()

int Quotient::RoomPowerLevelsEvent::invite ( ) const
inline

Definition at line 45 of file roompowerlevelsevent.h.

◆ KeylessStateEventBase() [1/2]

Quotient::KeylessStateEventBase< EventT, ContentT >::KeylessStateEventBase
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 ( typename...  ContentParamTs)
inlineexplicit

Definition at line 131 of file stateevent.h.

◆ kick()

int Quotient::RoomPowerLevelsEvent::kick ( ) const
inline

Definition at line 46 of file roompowerlevelsevent.h.

◆ powerLevelForEvent()

int Quotient::RoomPowerLevelsEvent::powerLevelForEvent ( const QString &  eventTypeId) const

Get the power level for message events of a given type.

Note
You normally should not compare power levels returned from this and other powerLevelFor*() functions directly; use Room::canSendEvents() instead

◆ powerLevelForEventType()

template<EventClass EvT>
int Quotient::RoomPowerLevelsEvent::powerLevelForEventType ( ) const
inline

Definition at line 83 of file roompowerlevelsevent.h.

◆ powerLevelForState()

int Quotient::RoomPowerLevelsEvent::powerLevelForState ( const QString &  eventTypeId) const

Get the power level for state events of a given type.

Note
You normally should not compare power levels returned from this and other powerLevelFor*() functions directly; use Room::canSetState() instead

◆ powerLevelForUser()

int Quotient::RoomPowerLevelsEvent::powerLevelForUser ( const QString &  userId) const

Get the power level for a given user.

Note
You normally should not directly use power levels returned by this and other powerLevelFor*() functions; use Room API instead
See also
Room::canSend, Room::canSendEvents, Room::canSetState, Room::effectivePowerLevel

◆ redact()

int Quotient::RoomPowerLevelsEvent::redact ( ) const
inline

Definition at line 49 of file roompowerlevelsevent.h.

◆ roomNotification()

int Quotient::RoomPowerLevelsEvent::roomNotification ( ) const
inline

Definition at line 58 of file roompowerlevelsevent.h.

◆ stateDefault()

int Quotient::RoomPowerLevelsEvent::stateDefault ( ) const
inline

Definition at line 53 of file roompowerlevelsevent.h.

◆ users()

QHash<QString, int> Quotient::RoomPowerLevelsEvent::users ( ) const
inline

Definition at line 55 of file roompowerlevelsevent.h.

◆ usersDefault()

int Quotient::RoomPowerLevelsEvent::usersDefault ( ) const
inline

Definition at line 56 of file roompowerlevelsevent.h.


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