11 #ifndef __IUserManager__ 12 #define __IUserManager__ 24 #pragma warning(disable:4786) // STL library: disable warning 4786; this warning is generated due to a Microsoft bug 31 #include "../../SmartFox.h" 33 #include <boost/shared_ptr.hpp> 35 using namespace Sfs2X;
57 virtual bool ContainsUserName(
string userName) = 0;
68 virtual bool ContainsUserId(
long int userId) = 0;
79 virtual bool ContainsUser(boost::shared_ptr<User> user) = 0;
90 virtual boost::shared_ptr<User> GetUserByName(
string userName) = 0;
101 virtual boost::shared_ptr<User> GetUserById(
long int userId) = 0;
103 virtual void AddUser(boost::shared_ptr<User> user) = 0;
105 virtual void RemoveUser(boost::shared_ptr<User> user) = 0;
107 virtual void RemoveUserById(
long int id) = 0;
112 virtual long int UserCount() = 0;
120 virtual boost::shared_ptr<vector<boost::shared_ptr<User> > > GetUserList() = 0;
122 virtual boost::shared_ptr<SmartFox> SmartFoxClient() = 0;
124 virtual void ClearAll() = 0;
126 virtual void Dispose() = 0;
The User Manager interface
Definition: IUserManager.h:45
Definition: SmartFox.cpp:24