Easemob Windows SDK
Public Member Functions | List of all members
easemob::EMContactListener Class Referenceabstract
Collaboration diagram for easemob::EMContactListener:
Collaboration graph

Public Member Functions

virtual void onContactAdded (const std::string &username)=0
 callback function called when contact added. More...
 
virtual void onContactDeleted (const std::string &username)=0
 called when contact deleted More...
 
virtual void onContactInvited (const std::string &username, std::string &reason)=0
 called when user be invited by contact to be friend. More...
 
virtual void onContactAgreed (const std::string &username)=0
 called when user invite contact to be friend, and contact has accepted the invitation. More...
 
virtual void onContactRefused (const std::string &username)=0
 called when user invite contact to be friend, and contact has declined the invitation. More...
 

Member Function Documentation

§ onContactAdded()

virtual void easemob::EMContactListener::onContactAdded ( const std::string &  username)
pure virtual

callback function called when contact added.

Parameters
usernamenewly added contact name.

§ onContactAgreed()

virtual void easemob::EMContactListener::onContactAgreed ( const std::string &  username)
pure virtual

called when user invite contact to be friend, and contact has accepted the invitation.

Parameters
usernamecontact whom accept invitation.

§ onContactDeleted()

virtual void easemob::EMContactListener::onContactDeleted ( const std::string &  username)
pure virtual

called when contact deleted

Parameters
usernamesnewly deleted contact name list.

§ onContactInvited()

virtual void easemob::EMContactListener::onContactInvited ( const std::string &  username,
std::string &  reason 
)
pure virtual

called when user be invited by contact to be friend.

Parameters
usernamecontact when invited.
messagecontact sent, telling invitation reason.

§ onContactRefused()

virtual void easemob::EMContactListener::onContactRefused ( const std::string &  username)
pure virtual

called when user invite contact to be friend, and contact has declined the invitation.

Parameters
usernamecontact whom refused the invitation.

The documentation for this class was generated from the following file: