00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef LOGINDATA_H
00023 #define LOGINDATA_H
00024
00025 #include <string>
00026
00027 #include "being.h"
00028
00029 struct LoginData
00030 {
00031 std::string username;
00032 std::string password;
00033 std::string newPassword;
00034 std::string hostname;
00035 std::string updateHost;
00036 #ifdef TMWSERV_SUPPORT
00037 std::string email;
00038 std::string newEmail;
00039 #endif
00040 short port;
00041
00042 #ifdef EATHENA_SUPPORT
00043 int account_ID;
00044 int session_ID1;
00045 int session_ID2;
00046 Gender sex;
00047 #endif
00048
00049 bool remember;
00050 bool registerLogin;
00052 void clear()
00053 {
00054 username.clear();
00055 password.clear();
00056 newPassword.clear();
00057 hostname.clear();
00058 updateHost.clear();
00059 #ifdef TMWSERV_SUPPORT
00060 email.clear();
00061 newEmail.clear();
00062 #endif
00063 port = 0;
00064
00065 #ifdef EATHENA_SUPPORT
00066 account_ID = 0;
00067 session_ID1 = 0;
00068 session_ID2 = 0;
00069 sex = GENDER_UNSPECIFIED;
00070 #endif
00071 }
00072 };
00073
00074 #endif // LOGINDATA_H