Auth.h

Go to the documentation of this file.
00001 #ifndef __SERVER_AUTH_H__
00002 #define __SERVER_AUTH_H__
00003 
00004 #include "game/Ids.h"
00005 #include "utils/Logger.h"
00006 
00007 class Auth
00008 {
00009 public:
00010   Auth(const boost::shared_ptr<Logger> & logger,
00011        const boost::shared_ptr<pqxx::connection> & dbConn);
00012 
00013   AvatarId authenticate(const std::string & login,
00014                         const std::string & password,
00015                         const AvatarId & avatarId) const;
00016   
00017 private:
00018   boost::shared_ptr<Logger> m_logger;
00019   boost::shared_ptr<pqxx::connection> m_dbConn;
00020 };
00021 
00022 #endif

Generated on Fri May 29 22:09:31 2009 for adh by  doxygen 1.5.9