SmartFoxServer 2X C++ API
|
The class manages the current User's Buddy List More...
#include <SFSBuddyManager.h>
Public Member Functions | |
bool | Inited () |
Checks if the current User's Buddy List is inited. More... | |
void | Inited (bool value) |
Checks if the current User's Buddy List is inited. More... | |
boost::shared_ptr< Buddy > | GetBuddyById (long int id) |
Find a Buddy from its User Id More... | |
bool | ContainsBuddy (string name) |
Checks if a Buddy is present in the current User's Buddy List More... | |
boost::shared_ptr< Buddy > | GetBuddyByName (string name) |
Find a Buddy from its name More... | |
boost::shared_ptr< Buddy > | GetBuddyByNickName (string nickName) |
Find a Buddy from its optional nick name More... | |
boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | OfflineBuddies () |
Get a list of all online Buddies in the User's Buddy list More... | |
boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | OnlineBuddies () |
Get a list of all offline Buddies in the User's Buddy list More... | |
boost::shared_ptr< vector< boost::shared_ptr< Buddy > > > | BuddyList () |
Get the User's buddy list. It could be null if the Buddy List was not initialized More... | |
boost::shared_ptr< BuddyVariable > | GetMyVariable (string varName) |
Get current Users' BuddyVariable by name More... | |
boost::shared_ptr< BuddyVariable > | GetMyVariable (boost::shared_ptr< string > varName) |
Get current Users' BuddyVariable by name More... | |
boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > | MyVariables () |
Get all current User's Buddy Variables More... | |
void | MyVariables (boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > value) |
Get all current User's Buddy Variables More... | |
bool | MyOnlineState () |
Get the current User's Online State More... | |
void | MyOnlineState (bool value) |
Get the current User's Online State More... | |
boost::shared_ptr< string > | MyNickName () |
Get the current User's optional nickname More... | |
void | MyNickName (string value) |
Get the current User's optional nickname More... | |
boost::shared_ptr< string > | MyState () |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...) More... | |
void | MyState (string value) |
Get the current User's optional custom state (e.g. "Available"; "Busy", "Be right back"...) More... | |
boost::shared_ptr< vector< string > > | BuddyStates () |
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... | |
void | BuddyStates (boost::shared_ptr< vector< string > > value) |
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 |
Get the User's buddy list. It could be null if the Buddy List was not initialized
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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.
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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.
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
|
virtual |
id | the user id |
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Find a Buddy from its name
name | the Buddy name |
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Find a Buddy from its optional nick name
nickName | Athe nickname |
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get current Users' BuddyVariable by name
varName | the variable name |
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get current Users' BuddyVariable by name
varName | the variable name |
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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.
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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.
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
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
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get all current User's Buddy Variables
This operation is valid only if the User's BuddyList has already been initialized
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get all current User's Buddy Variables
This operation is valid only if the User's BuddyList has already been initialized
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get a list of all online Buddies in the User's Buddy list
Implements Sfs2X::Entities::Managers::IBuddyManager.
|
virtual |
Get a list of all offline Buddies in the User's Buddy list
Implements Sfs2X::Entities::Managers::IBuddyManager.