diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 12:12:07 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 13:27:28 +0900 |
commit | 4cbe1a5fe9b0ae17e89425c3127db2af9b328320 (patch) | |
tree | 70e88c522a412d4502fcf439907304abe2990bdc /lib/room.h | |
parent | 28a0d70164e2596d306521cd18d25c0e8c0b5336 (diff) | |
download | libquotient-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |