GCC Code Coverage Report
Directory: src/ Exec Total Coverage
File: src/net/eathena/loginhandler.h Lines: 0 2 0.0 %
Date: 2017-11-29 Branches: 0 0 0.0 %

Line Branch Exec Source
1
/*
2
 *  The ManaPlus Client
3
 *  Copyright (C) 2004-2009  The Mana World Development Team
4
 *  Copyright (C) 2009-2010  The Mana Developers
5
 *  Copyright (C) 2011-2017  The ManaPlus Developers
6
 *
7
 *  This file is part of The ManaPlus Client.
8
 *
9
 *  This program is free software; you can redistribute it and/or modify
10
 *  it under the terms of the GNU General Public License as published by
11
 *  the Free Software Foundation; either version 2 of the License, or
12
 *  any later version.
13
 *
14
 *  This program is distributed in the hope that it will be useful,
15
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 *  GNU General Public License for more details.
18
 *
19
 *  You should have received a copy of the GNU General Public License
20
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
21
 */
22
23
#ifndef NET_EATHENA_LOGINHANDLER_H
24
#define NET_EATHENA_LOGINHANDLER_H
25
26
#include "net/ea/loginhandler.h"
27
28
namespace EAthena
29
{
30
31
class LoginHandler final : public Ea::LoginHandler
32
{
33
    public:
34
        LoginHandler();
35
36
        A_DELETE_COPY(LoginHandler)
37
38
        ~LoginHandler();
39
40
        void connect() const override final;
41
42
        bool isConnected() const override final A_WARN_UNUSED;
43
44
        void disconnect() const override final;
45
46
        unsigned int getMaxPasswordLength() const override final A_WARN_UNUSED
47
        { return 24; }
48
49
        void changePassword(const std::string &restrict oldPassword,
50
                            const std::string &restrict newPassword)
51
                            const override final;
52
53
        void sendVersion() const override final;
54
55
        ServerInfo *getCharServer() const override final A_WARN_UNUSED;
56
57
        void ping() const override final;
58
59
        void updatePacketVersion() const override final;
60
61
    private:
62
        void sendLoginRegister(const std::string &restrict username,
63
                               const std::string &restrict password,
64
                               const std::string &restrict email)
65
                               const override final;
66
};
67
68
}  // namespace EAthena
69
70
#endif  // NET_EATHENA_LOGINHANDLER_H