Easemob Windows SDK
emchatroommanager_listener.h
1 /************************************************************
2  * * EaseMob CONFIDENTIAL
3  * __________________
4  * Copyright (C) 2015 EaseMob Technologies. All rights reserved.
5  *
6  * NOTICE: All information contained herein is, and remains
7  * the property of EaseMob Technologies.
8  * Dissemination of this information or reproduction of this material
9  * is strictly forbidden unless prior written permission is obtained
10  * from EaseMob Technologies.
11  */
12 
13 #ifndef __easemob__emchatroommanager_listener__
14 #define __easemob__emchatroommanager_listener__
15 
16 #include "emchatroom.h"
17 
18 #include <string>
19 
20 namespace easemob {
21 
22 class EASEMOB_API EMChatroomManagerListener
23 {
24 public:
32  virtual void onLeaveChatroom(const EMChatroomPtr chatroom, EMChatroom::EMChatroomLeaveReason reason) {}
33 
41  virtual void onMemberJoinedChatroom(const EMChatroomPtr chatroom, const std::string &member) {};
42 
50  virtual void onMemberLeftChatroom(const EMChatroomPtr chatroom, const std::string &member) {};
51 
52 };
53 
54 }
55 
56 #endif /* defined(__easemob__emchatroommanager_listener__) */
virtual void onMemberJoinedChatroom(const EMChatroomPtr chatroom, const std::string &member)
Callback user when a user join the chatroom.
Definition: emchatroommanager_listener.h:41
virtual void onMemberLeftChatroom(const EMChatroomPtr chatroom, const std::string &member)
Callback user when a user leave the chatroom.
Definition: emchatroommanager_listener.h:50
Definition: emchatroommanager_listener.h:22
virtual void onLeaveChatroom(const EMChatroomPtr chatroom, EMChatroom::EMChatroomLeaveReason reason)
Callback user when user is kicked out from a chatroom or the chatroom is destroyed.
Definition: emchatroommanager_listener.h:32
Definition: emattributevalue.h:28