diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 01:08:06 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-09-13 01:08:06 +0000 |
commit | 6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce (patch) | |
tree | 1a846219c3fdf6b3a0b2f17f15c4da4fec406845 /src/gui/login.h | |
parent | 07b3632e605488221f34bff48f298b394af7083a (diff) | |
download | mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.gz mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.bz2 mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.tar.xz mana-6a8f1f5914721d1e8b8f9688b1d6ab71c0ed9bce.zip |
Unified the loops for the various dialogs that are shown before the actual game starts.
Diffstat (limited to 'src/gui/login.h')
-rw-r--r-- | src/gui/login.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/login.h b/src/gui/login.h index 1322a1c3..ce983b8a 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -30,6 +30,8 @@ #include "window.h" #include "../guichanfwd.h" +struct SDL_KeyboardEvent; + /** * The login dialog. * @@ -75,7 +77,10 @@ class LoginDialog : public Window, public gcn::ActionListener { */ class WrongPasswordNoticeListener : public gcn::ActionListener { public: + void setLoginDialog(LoginDialog *loginDialog); void action(const std::string &eventId); + private: + LoginDialog *mLoginDialog; }; /** @@ -83,14 +88,17 @@ class WrongPasswordNoticeListener : public gcn::ActionListener { */ class WrongUsernameNoticeListener : public gcn::ActionListener { public: + void setLoginDialog(LoginDialog *loginDialog); void action(const std::string &eventId); + private: + LoginDialog *mLoginDialog; }; /** - * Display login dialog + * Handle input */ -void login(); +void loginInputHandler(SDL_KeyboardEvent *keyEvent); /** * Attempt to login to login server |