summaryrefslogtreecommitdiff
path: root/src/gui/register.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 13:31:13 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-22 13:31:13 +0000
commitbd56bf8afdab16383ed8ad08412a8c807f84af85 (patch)
tree0e963ada63bcbe3c50dd77986aaa15b9ba49816a /src/gui/register.h
parent5359640b6f271af31f6423df9d661433eff89a3e (diff)
downloadmana-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/register.h')
-rw-r--r--src/gui/register.h25
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