Mana
Loading...
Searching...
No Matches
logindata.h
Go to the documentation of this file.
1/*
2 * The Mana Client
3 * Copyright (C) 2004-2009 The Mana World Development Team
4 * Copyright (C) 2009-2012 The Mana Developers
5 *
6 * This file is part of The Mana Client.
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#pragma once
23
24#include "being.h"
25
26#include <string>
27
29{
30public:
31 LoginData() = default;
32
33 std::string username;
34 std::string password;
35 std::string randomSeed;
36 std::string newPassword;
37 std::string updateHost;
38
39 std::string email;
40 std::string captchaResponse;
41
43
44 bool remember;
47 unsigned short characterSlots = 3;
53 {
55 }
56
57 void clear()
58 {
59 username.clear();
60 password.clear();
61 randomSeed.clear();
62 newPassword.clear();
63 updateHost.clear();
64 email.clear();
65 captchaResponse.clear();
68 }
69};
Gender
Definition being.h:58
Gender gender
Definition logindata.h:42
std::string email
Definition logindata.h:39
std::string updateHost
Definition logindata.h:37
std::string randomSeed
Definition logindata.h:35
unsigned short characterSlots
The number of character slots.
Definition logindata.h:47
std::string username
Definition logindata.h:33
void clear()
Definition logindata.h:57
std::string password
Definition logindata.h:34
std::string newPassword
Definition logindata.h:36
std::string captchaResponse
Definition logindata.h:40
LoginData()=default
void resetCharacterSlots()
Initialize character slots to 3 for backwards compatibility.
Definition logindata.h:52
bool remember
Whether to store the username.
Definition logindata.h:44
bool registerLogin
Whether an account is being registered.
Definition logindata.h:45