From eb22b66b0821e49ed550d30d20d9db5af535e6a3 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 4 Oct 2009 00:36:46 +0200 Subject: 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. --- src/net/loginhandler.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/net/loginhandler.h') 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; -- cgit v1.2.3-70-g09d2