diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
commit | bd56bf8afdab16383ed8ad08412a8c807f84af85 (patch) | |
tree | 0e963ada63bcbe3c50dd77986aaa15b9ba49816a /src/gui/login.h | |
parent | 5359640b6f271af31f6423df9d661433eff89a3e (diff) | |
download | mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.gz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.bz2 mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.xz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.zip |
Merged NETWORK branch (includes BEING_OVERHAUL).
Diffstat (limited to 'src/gui/login.h')
-rw-r--r-- | src/gui/login.h | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/src/gui/login.h b/src/gui/login.h index cc6ace3d..669752c5 100644 --- a/src/gui/login.h +++ b/src/gui/login.h @@ -26,13 +26,11 @@ #include <iosfwd> #include <guichan/actionlistener.hpp> -#include <SDL_events.h> -#include "ok_dialog.h" #include "window.h" #include "../guichanfwd.h" -class LoginDialog; +class LoginData; /** * Listener used for handling wrong data. @@ -57,23 +55,13 @@ class LoginDialog : public Window, public gcn::ActionListener { * * @see Window::Window */ - LoginDialog(); - - /** - * Destructor - */ - ~LoginDialog(); + LoginDialog(LoginData *loginData); /** * Called when receiving actions from the widgets. */ void action(const std::string& eventId); - /** - * Updates dialog logic. - */ - void logic(); - // Made them public to have the possibility to request focus // from external functions. gcn::TextField *userField; @@ -88,17 +76,10 @@ class LoginDialog : public Window, public gcn::ActionListener { gcn::Button *okButton; gcn::Button *cancelButton; gcn::Button *registerButton; - int mStatus; - - void attemptLogin(const std::string& user, const std::string& pass); - void checkLogin(); WrongDataNoticeListener *wrongDataNoticeListener; -}; -/** - * Handle input - */ -void loginInputHandler(SDL_KeyboardEvent *keyEvent); + LoginData *mLoginData; +}; #endif |