ManaPlus
Public Member Functions | Protected Member Functions | Protected Attributes
Net::LoginHandler Class Referenceabstract

#include <loginhandler.h>

Inheritance diagram for Net::LoginHandler:
Ea::LoginHandler EAthena::LoginHandler TmwAthena::LoginHandler

Public Member Functions

void setServer (const ServerInfo &server)
 
const ServerInfogetServer () const
 
virtual void connect () const =0
 
virtual bool isConnected () const =0
 
virtual void disconnect () const =0
 
virtual bool isRegistrationEnabled () const =0
 
virtual void getRegistrationDetails () const =0
 
virtual unsigned int getMinUserNameLength () const
 
virtual unsigned int getMaxUserNameLength () const
 
virtual unsigned int getMinPasswordLength () const
 
virtual unsigned int getMaxPasswordLength () const
 
virtual void loginAccount (LoginData *const loginData) const =0
 
virtual void logout () const =0
 
virtual void changeEmail (const std::string &email) const =0
 
virtual void changePassword (const std::string &oldPassword, const std::string &newPassword) const =0
 
virtual void chooseServer (unsigned int server, const bool persistentIp) const =0
 
virtual void registerAccount (const LoginData *const loginData) const =0
 
virtual void unregisterAccount (const std::string &username, const std::string &password) const =0
 
virtual const WorldsgetWorlds () const =0
 
virtual void clearWorlds () const =0
 
virtual void loginOrRegister (LoginData *const data) 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
 
virtual ~LoginHandler ()
 

Protected Member Functions

 LoginHandler ()
 

Protected Attributes

ServerInfo mServer
 

Detailed Description

Definition at line 38 of file loginhandler.h.

Constructor & Destructor Documentation

◆ ~LoginHandler()

virtual Net::LoginHandler::~LoginHandler ( )
inlinevirtual

Reimplemented in TmwAthena::LoginHandler, EAthena::LoginHandler, and Ea::LoginHandler.

Definition at line 107 of file loginhandler.h.

108  { }

◆ LoginHandler()

Net::LoginHandler::LoginHandler ( )
inlineprotected

Definition at line 111 of file loginhandler.h.

111  :
112  mServer()
113  {
114  }
ServerInfo mServer
Definition: loginhandler.h:116

Member Function Documentation

◆ changeEmail()

virtual void Net::LoginHandler::changeEmail ( const std::string &  email) const
pure virtual

Implemented in Ea::LoginHandler.

◆ changePassword()

virtual void Net::LoginHandler::changePassword ( const std::string &  oldPassword,
const std::string &  newPassword 
) const
pure virtual

◆ chooseServer()

virtual void Net::LoginHandler::chooseServer ( unsigned int  server,
const bool  persistentIp 
) const
pure virtual

Implemented in Ea::LoginHandler.

Referenced by WorldSelectDialog::action().

◆ clearWorlds()

virtual void Net::LoginHandler::clearWorlds ( ) const
pure virtual

◆ connect()

virtual void Net::LoginHandler::connect ( ) const
pure virtual

◆ disconnect()

virtual void Net::LoginHandler::disconnect ( ) const
pure virtual

◆ getMaxPasswordLength()

virtual unsigned int Net::LoginHandler::getMaxPasswordLength ( ) const
inlinevirtual

◆ getMaxUserNameLength()

virtual unsigned int Net::LoginHandler::getMaxUserNameLength ( ) const
inlinevirtual

Definition at line 62 of file loginhandler.h.

63  { return 25; }

Referenced by RegisterDialog::action().

◆ getMinPasswordLength()

virtual unsigned int Net::LoginHandler::getMinPasswordLength ( ) const
inlinevirtual

Definition at line 65 of file loginhandler.h.

66  { return 4; }

Referenced by ChangeEmailDialog::action(), ChangePasswordDialog::action(), and RegisterDialog::action().

◆ getMinUserNameLength()

virtual unsigned int Net::LoginHandler::getMinUserNameLength ( ) const
inlinevirtual

Definition at line 59 of file loginhandler.h.

60  { return 4; }

Referenced by RegisterDialog::action().

◆ getRegistrationDetails()

virtual void Net::LoginHandler::getRegistrationDetails ( ) const
pure virtual

Implemented in Ea::LoginHandler.

◆ getServer()

const ServerInfo& Net::LoginHandler::getServer ( ) const
inline

Definition at line 46 of file loginhandler.h.

47  { return mServer; }

References mServer.

Referenced by EAthena::LoginHandler::disconnect(), and TmwAthena::LoginHandler::disconnect().

◆ getWorlds()

virtual const Worlds& Net::LoginHandler::getWorlds ( ) const
pure virtual

Implemented in Ea::LoginHandler.

Referenced by Client::stateWorldSelect1().

◆ isConnected()

virtual bool Net::LoginHandler::isConnected ( ) const
pure virtual

◆ isRegistrationEnabled()

virtual bool Net::LoginHandler::isRegistrationEnabled ( ) const
pure virtual

Implemented in Ea::LoginHandler.

Referenced by LoginDialog::action(), and LoginDialog::postInit().

◆ loginAccount()

virtual void Net::LoginHandler::loginAccount ( LoginData *const  loginData) const
pure virtual

Implemented in Ea::LoginHandler.

◆ loginOrRegister()

virtual void Net::LoginHandler::loginOrRegister ( LoginData *const  data) const
pure virtual

Implemented in Ea::LoginHandler.

◆ logout()

virtual void Net::LoginHandler::logout ( ) const
pure virtual

Implemented in Ea::LoginHandler.

◆ ping()

virtual void Net::LoginHandler::ping ( ) const
pure virtual

◆ registerAccount()

virtual void Net::LoginHandler::registerAccount ( const LoginData *const  loginData) const
pure virtual

Implemented in Ea::LoginHandler.

◆ sendMobileCode()

virtual void Net::LoginHandler::sendMobileCode ( const BeingId  accountId,
const std::string &  code 
) const
pure virtual

◆ sendOtpCode()

virtual void Net::LoginHandler::sendOtpCode ( const std::string &  code) const
pure virtual

◆ sendVersion()

virtual void Net::LoginHandler::sendVersion ( ) const
pure virtual

◆ setServer()

void Net::LoginHandler::setServer ( const ServerInfo server)
inline

Definition at line 43 of file loginhandler.h.

44  { mServer = server; }

References mServer.

Referenced by Net::connectToServer().

◆ unregisterAccount()

virtual void Net::LoginHandler::unregisterAccount ( const std::string &  username,
const std::string &  password 
) const
pure virtual

Implemented in Ea::LoginHandler.

◆ updatePacketVersion()

virtual void Net::LoginHandler::updatePacketVersion ( ) const
pure virtual

Field Documentation

◆ mServer

ServerInfo Net::LoginHandler::mServer
protected

The documentation for this class was generated from the following file: