aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 12:12:07 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-04 13:27:28 +0900
commit4cbe1a5fe9b0ae17e89425c3127db2af9b328320 (patch)
tree70e88c522a412d4502fcf439907304abe2990bdc /lib/room.h
parent28a0d70164e2596d306521cd18d25c0e8c0b5336 (diff)
downloadlibquotient-4cbe1a5fe9b0ae17e89425c3127db2af9b328320.tar.gz
libquotient-4cbe1a5fe9b0ae17e89425c3127db2af9b328320.zip
Preempt job/setroomstatejob.* with jobs/generated/room_state.*
The template part (not exposed in the auto-generated class) goes to Room::Private::requestSetState(). Also, Room::setMemberState() to interface with User class.
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 7b4b3578..0d629e20 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -32,10 +32,12 @@
namespace QMatrixClient
{
class Event;
+ class RoomMemberEvent;
class Connection;
class User;
class MemberSorter;
class LeaveRoomJob;
+ class SetRoomStateWithKeyJob;
class RedactEventJob;
class TimelineItem
@@ -344,6 +346,8 @@ namespace QMatrixClient
void inviteToRoom(const QString& memberId);
LeaveRoomJob* leaveRoom();
+ SetRoomStateWithKeyJob* setMemberState(
+ const QString& memberId, const RoomMemberEvent& event) const;
void kickMember(const QString& memberId, const QString& reason = {});
void ban(const QString& userId, const QString& reason = {});
void unban(const QString& userId);