SmartFoxServer 2X C++ API
|
#include <Buddy.h>
Public Member Functions | |
virtual long int | Id ()=0 |
The id of the Buddy More... | |
virtual void | Id (long int value)=0 |
The id of the Buddy More... | |
virtual boost::shared_ptr< string > | Name ()=0 |
The name of the Buddy More... | |
virtual bool | IsBlocked ()=0 |
Return true if the Buddy is blocked in the current Users' BuddyList More... | |
virtual void | IsBlocked (bool value)=0 |
Return true if the Buddy is blocked in the current Users' BuddyList More... | |
virtual bool | IsOnline ()=0 |
Return true if the User is online in the BuddyList system More... | |
virtual bool | IsTemp ()=0 |
Return true if the Buddy is temporary (not persistent) More... | |
virtual boost::shared_ptr< string > | State ()=0 |
The current Buddy custom state (e.g. "Available", "Busy", etc...) More... | |
virtual boost::shared_ptr< string > | NickName ()=0 |
An optional Buddy nickname More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > | Variables ()=0 |
Obtain a list of BuddyVariables. More... | |
virtual boost::shared_ptr< BuddyVariable > | GetVariable (string varName)=0 |
Get the BuddyVariable with the provided name. More... | |
virtual bool | ContainsVariable (string varName)=0 |
Return true if a BuddyVariable with the provided name exists More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > | GetOfflineVariables ()=0 |
Return a list of offline Buddy Variables More... | |
virtual boost::shared_ptr< vector< boost::shared_ptr< BuddyVariable > > > | GetOnlineVariables ()=0 |
Return a list of non-persistent Buddy Variables More... | |
|
pure virtual |
Return true if a BuddyVariable with the provided name exists
varName | A string |
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return a list of offline Buddy Variables
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return a list of non-persistent Buddy Variables
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Get the BuddyVariable with the provided name.
Null is returned if not BuddyVariable exists with that name
varName | A string |
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
The id of the Buddy
The id corresponds to the current id of the User in the system
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
The id of the Buddy
The id corresponds to the current id of the User in the system
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return true if the Buddy is blocked in the current Users' BuddyList
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return true if the Buddy is blocked in the current Users' BuddyList
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return true if the User is online in the BuddyList system
The value is stored in a reserved Buddy Variable
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Return true if the Buddy is temporary (not persistent)
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
The name of the Buddy
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
An optional Buddy nickname
The value is stored in a reserved Buddy Variable
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
The current Buddy custom state (e.g. "Available", "Busy", etc...)
The value is stored in a reserved Buddy Variable
Implemented in Sfs2X::Entities::SFSBuddy.
|
pure virtual |
Obtain a list of BuddyVariables.
Please note that by convention any variable whose name starts with the dollar sign ($) will be regarded as persistent and stored locally by the server.
These variables are also referred to as "offline variables" because they are available to other Users even when the Buddy is offline.
Implemented in Sfs2X::Entities::SFSBuddy.