diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-12 19:58:11 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-12 19:58:11 +0000 |
commit | 75b19e771c527e8444aae70543b2b617dae2e892 (patch) | |
tree | 7414fdd8d4a9bb9da3a79cd29a833c22f4380284 /src/gui/char_server.h | |
parent | 812e679c9befbfe98cc311723b8296df0384515e (diff) | |
download | mana-75b19e771c527e8444aae70543b2b617dae2e892.tar.gz mana-75b19e771c527e8444aae70543b2b617dae2e892.tar.bz2 mana-75b19e771c527e8444aae70543b2b617dae2e892.tar.xz mana-75b19e771c527e8444aae70543b2b617dae2e892.zip |
Ported server list dialog over to Guichan.
Diffstat (limited to 'src/gui/char_server.h')
-rw-r--r-- | src/gui/char_server.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/gui/char_server.h b/src/gui/char_server.h index 575518ce..521aa4c9 100644 --- a/src/gui/char_server.h +++ b/src/gui/char_server.h @@ -32,8 +32,21 @@ #include "../net/network.h" #include "gui.h" +// The action listener for the server select dialog +class ServerSelectListener : public gcn::ActionListener { + public: + void action(const std::string& eventId); +}; + +// The list model for the server list +class ServerListModel : public gcn::ListModel { + public: + int getNumberOfElements(); + std::string getElementAt(int i); +}; + void char_server(); -void server_char_server(); +void server_char_server(int serverIndex); char *server_list(int index, int *size); #endif |