summaryrefslogtreecommitdiff
path: root/src/gui/char_server.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-04 16:54:35 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-02-04 16:54:35 +0000
commit2d12043f225263004b91e256e4b0d14c4842236e (patch)
tree6dda6785e9d8853badaaa7b22f87d5ac159626e5 /src/gui/char_server.h
parent9dc99e1888de6194c7ce555c33245e6bff586b3d (diff)
downloadmana-2d12043f225263004b91e256e4b0d14c4842236e.tar.gz
mana-2d12043f225263004b91e256e4b0d14c4842236e.tar.bz2
mana-2d12043f225263004b91e256e4b0d14c4842236e.tar.xz
mana-2d12043f225263004b91e256e4b0d14c4842236e.zip
Unify the various login dialogs to use LoginData.
Diffstat (limited to 'src/gui/char_server.h')
-rw-r--r--src/gui/char_server.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/src/gui/char_server.h b/src/gui/char_server.h
index ed6e4c14..b4112d75 100644
--- a/src/gui/char_server.h
+++ b/src/gui/char_server.h
@@ -31,18 +31,8 @@
#include "../guichanfwd.h"
-class SERVER_INFO;
-
-/**
- * The list model for the server list.
- */
-class ServerListModel : public gcn::ListModel {
- public:
- virtual ~ServerListModel() {};
-
- int getNumberOfElements();
- std::string getElementAt(int i);
-};
+class LoginData;
+class ServerListModel;
/**
* The server select dialog.
@@ -56,7 +46,7 @@ class ServerSelectDialog : public Window, public gcn::ActionListener {
*
* @see Window::Window
*/
- ServerSelectDialog();
+ ServerSelectDialog(LoginData *loginData);
/**
* Destructor.
@@ -68,12 +58,8 @@ class ServerSelectDialog : public Window, public gcn::ActionListener {
*/
void action(const std::string& eventId);
- /**
- * Returns the index of the selected server
- */
- SERVER_INFO* getServerInfo();
-
private:
+ LoginData *mLoginData;
ServerListModel *serverListModel;
gcn::ListBox *serverList;
gcn::Button *okButton;