ManaPlus
|
#include <loginhandler.h>
Public Member Functions | |
~LoginHandler () | |
bool | isRegistrationEnabled () const |
void | getRegistrationDetails () const |
unsigned int | getMaxPasswordLength () const |
void | loginAccount (LoginData *const loginData) const |
void | chooseServer (const unsigned int server, const bool persistentIp) const |
void | registerAccount (const LoginData *const loginData) const |
const Worlds & | getWorlds () const A_CONST |
void | clearWorlds () const |
virtual ServerInfo * | getCharServer () const =0 |
const Token & | getToken () const A_CONST |
void | logout () const |
void | changeEmail (const std::string &email) const |
void | unregisterAccount (const std::string &username, const std::string &password) const |
void | loginOrRegister (LoginData *const data) const |
Public Member Functions inherited from Net::LoginHandler | |
void | setServer (const ServerInfo &server) |
const ServerInfo & | getServer () const |
virtual void | connect () const =0 |
virtual bool | isConnected () const =0 |
virtual void | disconnect () const =0 |
virtual unsigned int | getMinUserNameLength () const |
virtual unsigned int | getMaxUserNameLength () const |
virtual unsigned int | getMinPasswordLength () const |
virtual void | changePassword (const std::string &oldPassword, const std::string &newPassword) const =0 |
virtual void | sendVersion () const =0 |
virtual void | ping () const =0 |
virtual void | updatePacketVersion () const =0 |
virtual void | sendMobileCode (const BeingId accountId, const std::string &code) const =0 |
virtual void | sendOtpCode (const std::string &code) const =0 |
Protected Member Functions | |
LoginHandler () | |
virtual void | sendLoginRegister (const std::string &username, const std::string &password, const std::string &email) const =0 |
Protected Member Functions inherited from Net::LoginHandler | |
LoginHandler () | |
Additional Inherited Members | |
Protected Attributes inherited from Net::LoginHandler | |
ServerInfo | mServer |
Definition at line 36 of file loginhandler.h.
|
virtual |
Reimplemented from Net::LoginHandler.
Reimplemented in TmwAthena::LoginHandler, and EAthena::LoginHandler.
Definition at line 53 of file loginhandler.cpp.
References delete_all(), and Ea::LoginRecv::mWorlds.
|
protected |
Definition at line 43 of file loginhandler.cpp.
References Token::clear(), Ea::LoginRecv::mRegistrationEnabled, Ea::LoginRecv::mToken, Ea::LoginRecv::mUpdateHost, Ea::LoginRecv::mVersionResponse, and Ea::LoginRecv::mWorlds.
|
virtual |
|
virtual |
Implements Net::LoginHandler.
Definition at line 78 of file loginhandler.cpp.
References ServerInfo::althostname, CAST_SIZE, EAthena::charServer, client, config, Configuration::getBoolValue(), getCharServer(), ServerInfo::hostname, ipToString(), Net::LoginHandler::mServer, Ea::LoginRecv::mWorlds, ServerInfo::port, Settings::serverName, Client::setState(), settings, EmoteDB::size(), and State::UPDATE.
|
virtual |
Implements Net::LoginHandler.
Definition at line 133 of file loginhandler.cpp.
References delete_all(), and Ea::LoginRecv::mWorlds.
|
pure virtual |
Implemented in TmwAthena::LoginHandler, and EAthena::LoginHandler.
Referenced by chooseServer().
|
inlinevirtual |
Reimplemented from Net::LoginHandler.
Reimplemented in TmwAthena::LoginHandler, and EAthena::LoginHandler.
Definition at line 47 of file loginhandler.h.
|
virtual |
Implements Net::LoginHandler.
Definition at line 63 of file loginhandler.cpp.
References client, State::REGISTER, and Client::setState().
const Token & Ea::LoginHandler::getToken | ( | ) | const |
Definition at line 187 of file loginhandler.cpp.
References Ea::LoginRecv::mToken.
|
virtual |
Implements Net::LoginHandler.
Definition at line 128 of file loginhandler.cpp.
References Ea::LoginRecv::mWorlds.
|
virtual |
Implements Net::LoginHandler.
Definition at line 58 of file loginhandler.cpp.
References Ea::LoginRecv::mRegistrationEnabled.
|
virtual |
Implements Net::LoginHandler.
Definition at line 69 of file loginhandler.cpp.
References LoginData::password, LoginData::resetCharacterSlots(), sendLoginRegister(), and LoginData::username.
Referenced by loginOrRegister().
|
virtual |
Implements Net::LoginHandler.
Definition at line 139 of file loginhandler.cpp.
References data, Logger::log(), logger, loginAccount(), registerAccount(), serverConfig, and Configuration::setValue().
|
virtual |
|
virtual |
Implements Net::LoginHandler.
Definition at line 106 of file loginhandler.cpp.
References LoginData::email, Gender::FEMALE, LoginData::gender, Gender::MALE, LoginData::password, sendLoginRegister(), Gender::UNSPECIFIED, and LoginData::username.
Referenced by loginOrRegister().
|
protectedpure virtual |
Implemented in TmwAthena::LoginHandler, and EAthena::LoginHandler.
Referenced by loginAccount(), and registerAccount().
|
virtual |