diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 00:36:46 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-04 00:36:46 +0200 |
commit | eb22b66b0821e49ed550d30d20d9db5af535e6a3 (patch) | |
tree | a54ee9996bf235741f95945fd81be99a6e686eca /src/gui/charselectdialog.h | |
parent | 076bcc1f8361c705d7dbe9088b18cca7d7fe21de (diff) | |
download | mana-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.gz mana-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.bz2 mana-eb22b66b0821e49ed550d30d20d9db5af535e6a3.tar.xz mana-eb22b66b0821e49ed550d30d20d9db5af535e6a3.zip |
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.
Diffstat (limited to 'src/gui/charselectdialog.h')
-rw-r--r-- | src/gui/charselectdialog.h | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/gui/charselectdialog.h b/src/gui/charselectdialog.h index e1c8071e..0bb8e27f 100644 --- a/src/gui/charselectdialog.h +++ b/src/gui/charselectdialog.h @@ -36,6 +36,10 @@ class LocalPlayer; class LoginData; class PlayerBox; +namespace Net { +class CharHandler; +} + /** * Character selection dialog. * @@ -58,34 +62,29 @@ class CharSelectDialog : public Window, public gcn::ActionListener void chooseSelected(); - static void setNetworkOptions(bool allowUnregister, - bool allowChangeEmail); - private: + /** + * Communicate character deletion to the server. + */ + void attemptCharDelete(); + + /** + * Communicate character selection to the server. + */ + void attemptCharSelect(); + LockedArray<LocalPlayer*> *mCharInfo; gcn::Label *mAccountNameLabel; gcn::Button *mSwitchLoginButton; gcn::Button *mChangePasswordButton; - gcn::Button *mChangeEmailButton; - gcn::Button *mUnregisterButton; CharEntry *mCharEntries[MAX_CHARACTER_COUNT]; LoginData *mLoginData; - /** - * Communicate character deletion to the server. - */ - void attemptCharDelete(); - - /** - * Communicate character selection to the server. - */ - void attemptCharSelect(); - - static bool doAllowUnregister, doAllowChangeEmail; + Net::CharHandler *mCharHandler; }; #endif |