libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
banning.h
Go to the documentation of this file.
1
// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
2
3
#
pragma
once
4
5
#
include
<
Quotient
/
jobs
/
basejob
.
h
>
6
7
namespace
Quotient
{
8
9
//! \brief Ban a user in the room.
10
//!
11
//! Ban a user in the room. If the user is currently in the room, also kick them.
12
//!
13
//! When a user is banned from a room, they may not join it or be invited to it until they are
14
//! unbanned.
15
//!
16
//! The caller must have the required power level in order to perform this operation.
17
class
QUOTIENT_API
BanJob
:
public
BaseJob
{
18
public
:
19
//! \param roomId
20
//! The room identifier (not alias) from which the user should be banned.
21
//!
22
//! \param userId
23
//! The fully qualified user ID of the user being banned.
24
//!
25
//! \param reason
26
//! The reason the user has been banned. This will be supplied as the `reason` on the target's
27
//! updated [`m.room.member`](/client-server-api/#mroommember) event.
28
explicit
BanJob
(
const
QString
&
roomId
,
const
QString
&
userId
,
const
QString
&
reason
= {});
29
};
30
31
//! \brief Unban a user from the room.
32
//!
33
//! Unban a user from the room. This allows them to be invited to the room,
34
//! and join if they would otherwise be allowed to join according to its join rules.
35
//!
36
//! The caller must have the required power level in order to perform this operation.
37
class
QUOTIENT_API
UnbanJob
:
public
BaseJob
{
38
public
:
39
//! \param roomId
40
//! The room identifier (not alias) from which the user should be unbanned.
41
//!
42
//! \param userId
43
//! The fully qualified user ID of the user being unbanned.
44
//!
45
//! \param reason
46
//! Optional reason to be included as the `reason` on the subsequent
47
//! membership event.
48
explicit
UnbanJob
(
const
QString
&
roomId
,
const
QString
&
userId
,
const
QString
&
reason
= {});
49
};
50
51
}
// namespace Quotient
Quotient::BanJob
Ban a user in the room.
Definition
banning.h:17
Quotient::UnbanJob
Unban a user from the room.
Definition
banning.h:37
Quotient
Definition
accountregistry.h:13
QUOTIENT_API
#define QUOTIENT_API
Definition
quotient_export.h:22
Quotient
csapi
banning.h
Generated by
1.9.8