Easemob Windows SDK
emcontactlistener.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 // emcontactlistener.h
14 // easemob
15 //
16 // Created by linan on 15/7/9.
17 //
18 //
19 
20 #ifndef easemob_emcontactlistener_h
21 #define easemob_emcontactlistener_h
22 
23 #include <memory>
24 #include <list>
25 #include "emdefines.h"
26 
27 namespace easemob {
31  class EASEMOB_API EMContactListener {
32  public:
38  virtual void onContactAdded(const std::string &username) = 0;
39 
45  virtual void onContactDeleted(const std::string &username) = 0;
46 
53  virtual void onContactInvited(const std::string &username, std::string &reason) = 0;
54 
60  virtual void onContactAgreed(const std::string &username) = 0;
61 
67  virtual void onContactRefused(const std::string &username) = 0;
68  };
69 }
70 
71 #endif
Definition: emattributevalue.h:28
Definition: emcontactlistener.h:31