diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 00:36:46 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 00:36:46 +0200 |
commit | eb22b66b0821e49ed550d30d20d9db5af535e6a3 (patch) | |
tree | a54ee9996bf235741f95945fd81be99a6e686eca /src/net/loginhandler.h | |
parent | 076bcc1f8361c705d7dbe9088b18cca7d7fe21de (diff) | |
download | mana-client-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.gz mana-client-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.bz2 mana-client-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.xz mana-client-eb22b66b0821e49ed550d30d20d9db5af535e6a3.zip |
Replaced setNetworkOptions with LoginHandler::supportedOptionalActions
Better to ask when needed that rely on static booleans to be set from
somewhere. Also tried to fix the layouting a bit, but it's still not
perfect.
Diffstat (limited to 'src/net/loginhandler.h')
-rw-r--r-- | src/net/loginhandler.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net/loginhandler.h b/src/net/loginhandler.h index 26dfb53b..5274bbea 100644 --- a/src/net/loginhandler.h +++ b/src/net/loginhandler.h @@ -35,6 +35,11 @@ namespace Net { class LoginHandler { public: + enum OptionalAction { + Unregister = 0x1, + ChangeEmail = 0x2 + }; + virtual void setServer(const ServerInfo &server) { mServer = server; } @@ -47,6 +52,8 @@ class LoginHandler virtual void disconnect() = 0; + virtual int supportedOptionalActions() const = 0; + virtual void loginAccount(LoginData *loginData) = 0; virtual void changeEmail(const std::string &email) = 0; |