|
EvEmu
0.8.4
11 September 2021
|
??? More...
#include "APIAccountManager.h"


Public Member Functions | |
| APIAccountManager (const PyServiceMgr &services) | |
| std::tr1::shared_ptr< std::string > | ProcessCall (const APICommandCall *pAPICommandCall) |
Public Member Functions inherited from APIServiceManager | |
| APIServiceManager (const PyServiceMgr &services) | |
| PyServiceMgr & | services () |
| std::tr1::shared_ptr< std::string > | BuildErrorXMLResponse (std::string errorCode, std::string errorMessage) |
Protected Member Functions | |
| std::tr1::shared_ptr< std::string > | _APIKeyRequest (const APICommandCall *pAPICommandCall) |
| std::tr1::shared_ptr< std::string > | _Characters (const APICommandCall *pAPICommandCall) |
| std::tr1::shared_ptr< std::string > | _AccountStatus (const APICommandCall *pAPICommandCall) |
| std::string | _GenerateAPIKey () |
Protected Member Functions inherited from APIServiceManager | |
| bool | _AuthenticateUserNamePassword (std::string userName, std::string password) |
| bool | _AuthenticateFullAPIQuery (std::string userID, std::string apiKey) |
| bool | _AuthenticateLimitedAPIQuery (std::string userID, std::string apiKey) |
| void | _BuildXMLHeader () |
| void | _CloseXMLHeader (uint32 cacheStyle) |
| void | _BuildXMLRowSet (std::string name, std::string key, const std::vector< std::string > *columns) |
| void | _CloseXMLRowSet () |
| void | _BuildXMLRow (const std::vector< std::string > *columns) |
| void | _BuildXMLTag (std::string name) |
| void | _BuildXMLTag (std::string name, const std::vector< std::pair< std::string, std::string > > *params) |
| void | _BuildXMLTag (std::string name, const std::vector< std::pair< std::string, std::string > > *params, std::string value) |
| void | _CloseXMLTag () |
| void | _BuildSingleXMLTag (std::string name, std::string param) |
| void | _BuildErrorXMLTag (std::string code, std::string param) |
| std::tr1::shared_ptr< std::string > | _GetXMLDocumentString () |
Protected Attributes | |
| APIAccountDB | m_accountDB |
Protected Attributes inherited from APIServiceManager | |
| APIServiceDB | m_db |
| PyServiceMgr | m_services |
| TiXmlDocument | _XmlDoc |
| TiXmlElement * | _pXmlDocOuterTag |
| std::string | _CurrentRowSetColumnString |
| std::stack< TiXmlElement * > * | _pXmlElementStack |
Static Protected Attributes | |
| static std::string | m_hexCharMap |
| APIAccountManager::APIAccountManager | ( | const PyServiceMgr & | services | ) |
Definition at line 32 of file APIAccountManager.cpp.
|
protected |
Definition at line 268 of file APIAccountManager.cpp.
References APIServiceManager::_BuildSingleXMLTag(), APIServiceManager::_BuildXMLHeader(), APIServiceManager::_BuildXMLTag(), APIServiceManager::_CloseXMLHeader(), APIServiceManager::_CloseXMLTag(), APIServiceManager::_GetXMLDocumentString(), APIServiceManager::BuildErrorXMLResponse(), APIServiceDB::GetAccountIdFromUserID(), APIAccountDB::GetAccountInfo(), m_accountDB, APIServiceManager::m_db, EVEAPI::CacheStyles::Short, and sLog.
Referenced by ProcessCall().


|
protected |
Definition at line 65 of file APIAccountManager.cpp.
References APIServiceManager::_AuthenticateUserNamePassword(), APIServiceManager::_BuildSingleXMLTag(), APIServiceManager::_BuildXMLHeader(), APIServiceManager::_CloseXMLHeader(), _GenerateAPIKey(), APIServiceManager::_GetXMLDocumentString(), APIServiceManager::BuildErrorXMLResponse(), APIServiceDB::GetAccountIdFromUsername(), APIServiceDB::GetApiAccountInfoUsingAccountID(), APIServiceDB::InsertNewUserIdApiKeyInfoToDatabase(), itoa(), EVEAPI::CacheStyles::Long, APIServiceManager::m_db, EVEAPI::Roles::Player, sLog, APIServiceDB::UpdateUserIdApiKeyDatabaseRow(), Win32Time_Day, Win32TimeNow(), and Win32TimeToString().
Referenced by ProcessCall().


|
protected |
Definition at line 203 of file APIAccountManager.cpp.
References APIServiceManager::_BuildXMLHeader(), APIServiceManager::_BuildXMLRow(), APIServiceManager::_BuildXMLRowSet(), APIServiceManager::_BuildXMLTag(), APIServiceManager::_CloseXMLHeader(), APIServiceManager::_CloseXMLRowSet(), APIServiceManager::_CloseXMLTag(), APIServiceManager::_GetXMLDocumentString(), APIServiceManager::BuildErrorXMLResponse(), APIServiceDB::GetAccountIdFromUserID(), APIAccountDB::GetCharactersList(), EVEAPI::CacheStyles::Long, m_accountDB, APIServiceManager::m_db, and sLog.
Referenced by ProcessCall().


|
protected |
Definition at line 309 of file APIAccountManager.cpp.
References key(), m_hexCharMap, and MakeRandomInt().
Referenced by _APIKeyRequest().


|
virtual |
Reimplemented from APIServiceManager.
Definition at line 37 of file APIAccountManager.cpp.
References _AccountStatus(), _APIKeyRequest(), _Characters(), APIServiceManager::BuildErrorXMLResponse(), and sLog.

|
protected |
Definition at line 61 of file APIAccountManager.h.
Referenced by _AccountStatus(), and _Characters().
|
staticprotected |
Definition at line 62 of file APIAccountManager.h.
Referenced by _GenerateAPIKey().