diff options
Diffstat (limited to 'src/gui/register.h')
-rw-r--r-- | src/gui/register.h | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/gui/register.h b/src/gui/register.h index 25a867bd..34892ec0 100644 --- a/src/gui/register.h +++ b/src/gui/register.h @@ -26,12 +26,14 @@ #include <iosfwd> #include <guichan/actionlistener.hpp> -#include <SDL_events.h> #include "window.h" -#include "login.h" #include "../guichanfwd.h" +class LoginData; +class OkDialog; +class WrongDataNoticeListener; + /** * The login dialog. * @@ -44,18 +46,13 @@ class RegisterDialog : public Window, public gcn::ActionListener { * * @see Window::Window */ - RegisterDialog(); + RegisterDialog(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; @@ -72,19 +69,11 @@ class RegisterDialog : public Window, public gcn::ActionListener { gcn::Button *cancelButton; gcn::RadioButton *maleButton; gcn::RadioButton *femaleButton; - int mStatus; - void attemptRegistration(const std::string& user, - const std::string& pass); - void checkRegistration(); - WrongDataNoticeListener *wrongDataNoticeListener; OkDialog *wrongRegisterNotice; -}; -/** - * Handle input - */ -void registerInputHandler(SDL_KeyboardEvent *keyEvent); + LoginData *mLoginData; +}; #endif |