SmartFoxServer 2X C++ API
|
The BuddyList Manager interface More...
#include <IBuddyManager.h>
Public Member Functions | |
virtual bool | Inited ()=0 |
Checks if the current User's Buddy List is inited. More... | |
virtual void | Inited (bool value)=0 |
Checks if the current User's Buddy List is inited. More... | |
virtual bool | ContainsBuddy (string name)=0 |
Checks if a Buddy is present in the current User's Buddy List More... | |
virtual boost::shared_ptr< Buddy > | GetBuddyById (long int id)=0 |
Find a Buddy from its User Id More... | |
virtual boost::shared_ptr< Buddy > | GetBuddyByName (string name)=0 |
Find a Buddy from its name More... | |
virtual boost::shared_ptr< Buddy > | GetBuddyByNickName (string nickName)=0 |
Find a Buddy from its optional nick name More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | OfflineBuddies ()=0 |
Get a list of all online Buddies in the User's Buddy list More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | OnlineBuddies ()=0 |
Get a list of all offline Buddies in the User's Buddy list More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | BuddyList ()=0 |
Get the User's buddy list. It could be null if the Buddy List was not initialized More... | |
virtual boost::shared_ptr< vector< string > > | BuddyStates ()=0 |
Get a list of Strings representing the custom Buddy states that the application can use. The custom states are sent upon initialization of the Buddy List and are configured on the server side. More... | |
virtual void | BuddyStates (boost::shared_ptr< vector< string > > value)=0 |
Get a list of Strings representing the custom Buddy states that the application can use. The custom states are sent upon initialization of the Buddy List and are configured on the server side. More... | |
virtual boost::shared_ptr< BuddyVariable > | GetMyVariable (boost::shared_ptr< string > varName)=0 |
Get current Users' BuddyVariable by name More... | |
virtual boost::shared_ptr< BuddyVariable > | GetMyVariable (string varName)=0 |
Get current Users' BuddyVariable by name More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > | MyVariables ()=0 |
Get all current User's Buddy Variables More... | |
virtual void | MyVariables (boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > value)=0 |
Get all current User's Buddy Variables More... | |
virtual bool | MyOnlineState ()=0 |
Get the current User's Online State More... | |
virtual void | MyOnlineState (bool value)=0 |
Get the current User's Online State More... | |
virtual boost::shared_ptr< string > | MyNickName ()=0 |
Get the current User's optional nickname More... | |
virtual void | MyNickName (string value)=0 |
Get the current User's optional nickname More... | |
virtual boost::shared_ptr< string > | MyState ()=0 |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...) More... | |
virtual void | MyState (string value)=0 |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...) More... | |
The BuddyList Manager interface
|
pure virtual |
Get the User's buddy list. It could be null if the Buddy List was not initialized
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get a list of Strings representing the custom Buddy states that the application can use. The custom states are sent upon initialization of the Buddy List and are configured on the server side.
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get a list of Strings representing the custom Buddy states that the application can use. The custom states are sent upon initialization of the Buddy List and are configured on the server side.
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
|
pure virtual |
id | the user id |
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Find a Buddy from its name
name | the Buddy name |
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Find a Buddy from its optional nick name
nickName | Athe nickname |
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get current Users' BuddyVariable by name
varName | the variable name |
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get current Users' BuddyVariable by name
varName | the variable name |
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Checks if the current User's Buddy List is inited.
If not you should send an InitBuddyListRequest to the server in order to retrieve your persistent Buddy List data.
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Checks if the current User's Buddy List is inited.
If not you should send an InitBuddyListRequest to the server in order to retrieve your persistent Buddy List data.
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's optional nickname
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Returns the Users' nickname or null if the nickname was never set
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's optional nickname
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Returns the Users' nickname or null if the nickname was never set
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's Online State
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Returns true if the User is online, false otherwise
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's Online State
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Returns true if the User is online, false otherwise
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...)
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...)
This operation is valid only if the User's BuddyList has already been initialized
The value is handled by a reserved Buddy Variable
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get all current User's Buddy Variables
This operation is valid only if the User's BuddyList has already been initialized
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get all current User's Buddy Variables
This operation is valid only if the User's BuddyList has already been initialized
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get a list of all online Buddies in the User's Buddy list
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.
|
pure virtual |
Get a list of all offline Buddies in the User's Buddy list
Implemented in Sfs2X::Entities::Managers::SFSBuddyManager.