ManaPlus
Public Member Functions | Data Fields
LoginData Class Reference

#include <logindata.h>

Public Member Functions

 LoginData ()
 
void clear ()
 
void clearUpdateHost ()
 
void resetCharacterSlots ()
 

Data Fields

std::string username
 
std::string password
 
std::string newPassword
 
std::string updateHost
 
StringVect updateHosts
 
std::string lastLogin
 
UpdateTypeT updateType
 
std::string email
 
std::string captchaResponse
 
std::string registerUrl
 
GenderT gender
 
int packetVersion
 
bool remember
 
bool registerLogin
 
uint16_t characterSlots
 

Detailed Description

Definition at line 35 of file logindata.h.

Constructor & Destructor Documentation

◆ LoginData()

LoginData::LoginData ( )
inline

Definition at line 38 of file logindata.h.

38  :
39  username(),
40  password(),
41  newPassword(),
42  updateHost(),
43  updateHosts(),
44  lastLogin(),
46  email(),
48  registerUrl(),
50  packetVersion(0),
51  remember(false),
52  registerLogin(false),
54  {
55  }
GenderT gender
Definition: logindata.h:71
std::string registerUrl
Definition: logindata.h:69
std::string email
Definition: logindata.h:67
std::string updateHost
Definition: logindata.h:62
std::string lastLogin
Definition: logindata.h:64
StringVect updateHosts
Definition: logindata.h:63
int packetVersion
Definition: logindata.h:73
std::string username
Definition: logindata.h:59
std::string password
Definition: logindata.h:60
uint16_t characterSlots
Definition: logindata.h:77
std::string newPassword
Definition: logindata.h:61
UpdateTypeT updateType
Definition: logindata.h:65
std::string captchaResponse
Definition: logindata.h:68
bool remember
Definition: logindata.h:74
bool registerLogin
Definition: logindata.h:75
@ UNSPECIFIED
Definition: gender.h:33

Member Function Documentation

◆ clear()

void LoginData::clear ( )
inline

Definition at line 79 of file logindata.h.

80  {
81  username.clear();
82  password.clear();
83  newPassword.clear();
84  updateHost.clear();
85  updateHosts.clear();
87  email.clear();
88  captchaResponse.clear();
89  registerUrl.clear();
91  packetVersion = 0;
92  lastLogin.clear();
94  }
void resetCharacterSlots()
Definition: logindata.h:105

References captchaResponse, email, gender, lastLogin, newPassword, UpdateType::Normal, packetVersion, password, registerUrl, resetCharacterSlots(), Gender::UNSPECIFIED, updateHost, updateHosts, updateType, and username.

◆ clearUpdateHost()

void LoginData::clearUpdateHost ( )
inline

Definition at line 96 of file logindata.h.

97  {
98  updateHost.clear();
99  updateHosts.clear();
100  }

References updateHost, and updateHosts.

Referenced by Client::unloadData().

◆ resetCharacterSlots()

void LoginData::resetCharacterSlots ( )
inline

Initialize character slots to 3 for TmwAthena compatibility

Definition at line 105 of file logindata.h.

106  {
107  characterSlots = 9; // Default value, used for TmwAthena.
108  }

References characterSlots.

Referenced by clear(), and Ea::LoginHandler::loginAccount().

Field Documentation

◆ captchaResponse

std::string LoginData::captchaResponse

Definition at line 68 of file logindata.h.

Referenced by clear().

◆ characterSlots

uint16_t LoginData::characterSlots

◆ email

std::string LoginData::email

◆ gender

GenderT LoginData::gender

Definition at line 71 of file logindata.h.

Referenced by RegisterDialog::action(), clear(), and Ea::LoginHandler::registerAccount().

◆ lastLogin

std::string LoginData::lastLogin

◆ newPassword

std::string LoginData::newPassword

Definition at line 61 of file logindata.h.

Referenced by ChangePasswordDialog::action(), and clear().

◆ packetVersion

int LoginData::packetVersion

Definition at line 73 of file logindata.h.

Referenced by clear(), and Client::stateConnectServer1().

◆ password

std::string LoginData::password

◆ registerLogin

bool LoginData::registerLogin

Definition at line 75 of file logindata.h.

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

◆ registerUrl

std::string LoginData::registerUrl

◆ remember

bool LoginData::remember

Definition at line 74 of file logindata.h.

Referenced by LoginDialog::prepareUpdate(), and Client::stateConnectServer1().

◆ updateHost

std::string LoginData::updateHost

◆ updateHosts

StringVect LoginData::updateHosts

◆ updateType

UpdateTypeT LoginData::updateType

Definition at line 65 of file logindata.h.

Referenced by clear(), LoginDialog::LoginDialog(), and LoginDialog::prepareUpdate().

◆ username

std::string LoginData::username

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