diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-06 02:15:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-06 02:15:54 +0300 |
commit | d70cdbc7ab543988d16712a5981a54bd853620cc (patch) | |
tree | 46ecb257860ad2c12c3818abcb7c4a6c87d175ff /src/net/loginhandler.h | |
parent | 0d3b6da53db29cdf0ee2648fb9b0a02dd1d82dc8 (diff) | |
download | ManaVerse-d70cdbc7ab543988d16712a5981a54bd853620cc.tar.gz ManaVerse-d70cdbc7ab543988d16712a5981a54bd853620cc.tar.bz2 ManaVerse-d70cdbc7ab543988d16712a5981a54bd853620cc.tar.xz ManaVerse-d70cdbc7ab543988d16712a5981a54bd853620cc.zip |
improve loginhandler class.
Diffstat (limited to 'src/net/loginhandler.h')
-rw-r--r-- | src/net/loginhandler.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h index 49d9d20b8..fbac1ee79 100644 --- a/src/net/loginhandler.h +++ b/src/net/loginhandler.h @@ -57,7 +57,7 @@ class LoginHandler virtual void connect() = 0; - virtual bool isConnected() A_WARN_UNUSED = 0; + virtual bool isConnected() const A_WARN_UNUSED = 0; virtual void disconnect() = 0; @@ -66,9 +66,9 @@ class LoginHandler */ virtual int supportedOptionalActions() const A_WARN_UNUSED = 0; - virtual bool isRegistrationEnabled() A_WARN_UNUSED = 0; + virtual bool isRegistrationEnabled() const A_WARN_UNUSED = 0; - virtual void getRegistrationDetails() = 0; + virtual void getRegistrationDetails() const = 0; virtual unsigned int getMinUserNameLength() const A_WARN_UNUSED { return 4; } @@ -82,22 +82,22 @@ class LoginHandler virtual unsigned int getMaxPasswordLength() const A_WARN_UNUSED { return 255; } - virtual void loginAccount(LoginData *loginData) = 0; + virtual void loginAccount(LoginData *const loginData) const = 0; - virtual void logout() = 0; + virtual void logout() const = 0; - virtual void changeEmail(const std::string &email) = 0; + virtual void changeEmail(const std::string &email) const = 0; virtual void changePassword(const std::string &username, const std::string &oldPassword, - const std::string &newPassword) = 0; + const std::string &newPassword) const = 0; - virtual void chooseServer(unsigned int server) = 0; + virtual void chooseServer(unsigned int server) const = 0; - virtual void registerAccount(LoginData *loginData) = 0; + virtual void registerAccount(LoginData *const loginData) const = 0; virtual void unregisterAccount(const std::string &username, - const std::string &password) = 0; + const std::string &password) const = 0; virtual Worlds getWorlds() const A_WARN_UNUSED = 0; |