AzeorthCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AccountMgr.h File Reference
#include "Define.h"
#include <string>

Go to the source code of this file.

Namespaces

namespace  AccountMgr
 

Macros

#define MAX_ACCOUNT_STR   20
 
#define MAX_PASS_STR   16
 

Enumerations

enum  AccountOpResult {
  AOR_OK ,
  AOR_NAME_TOO_LONG ,
  AOR_PASS_TOO_LONG ,
  AOR_NAME_ALREADY_EXIST ,
  AOR_NAME_NOT_EXIST ,
  AOR_DB_INTERNAL_ERROR
}
 

Functions

AccountOpResult AccountMgr::CreateAccount (std::string username, std::string password)
 
AccountOpResult AccountMgr::DeleteAccount (uint32 accountId)
 
AccountOpResult AccountMgr::ChangeUsername (uint32 accountId, std::string newUsername, std::string newPassword)
 
AccountOpResult AccountMgr::ChangePassword (uint32 accountId, std::string newPassword)
 
bool AccountMgr::CheckPassword (uint32 accountId, std::string password)
 
uint32 AccountMgr::GetId (std::string const &username)
 
uint32 AccountMgr::GetSecurity (uint32 accountId)
 
uint32 AccountMgr::GetSecurity (uint32 accountId, int32 realmId)
 
bool AccountMgr::GetName (uint32 accountId, std::string &name)
 
uint32 AccountMgr::GetCharactersCount (uint32 accountId)
 
bool AccountMgr::IsPlayerAccount (uint32 gmlevel)
 
bool AccountMgr::IsGMAccount (uint32 gmlevel)
 
bool AccountMgr::IsAdminAccount (uint32 gmlevel)
 
bool AccountMgr::IsConsoleAccount (uint32 gmlevel)
 

Macro Definition Documentation

◆ MAX_ACCOUNT_STR

#define MAX_ACCOUNT_STR   20

◆ MAX_PASS_STR

#define MAX_PASS_STR   16

Enumeration Type Documentation

◆ AccountOpResult

Enumerator
AOR_OK 
AOR_NAME_TOO_LONG 
AOR_PASS_TOO_LONG 
AOR_NAME_ALREADY_EXIST 
AOR_NAME_NOT_EXIST 
AOR_DB_INTERNAL_ERROR 
25{
26 AOR_OK,
32};
@ AOR_NAME_NOT_EXIST
Definition: AccountMgr.h:30
@ AOR_DB_INTERNAL_ERROR
Definition: AccountMgr.h:31
@ AOR_OK
Definition: AccountMgr.h:26
@ AOR_NAME_ALREADY_EXIST
Definition: AccountMgr.h:29
@ AOR_NAME_TOO_LONG
Definition: AccountMgr.h:27
@ AOR_PASS_TOO_LONG
Definition: AccountMgr.h:28