diff options
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r-- | src/gui/serverdialog.h | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index bf0a43d6..611f65e9 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -81,26 +81,6 @@ class ServersListModel : public gcn::ListModel }; /** - * Server Type List Model - */ -class TypeListModel : public gcn::ListModel -{ - public: - TypeListModel() {} - - /** - * Used to get number of line in the list - */ - int getNumberOfElements() { return 2; } - - /** - * Used to get an element from the list - */ - std::string getElementAt(int elementIndex); -}; - - -/** * The server choice dialog. * * \ingroup Interface @@ -135,6 +115,9 @@ class ServerDialog : public Window, friend class ServersListModel; MutexLocker lock() { return MutexLocker(&mMutex); } + friend class CustomServerDialog; + void saveCustomServers(const ServerInfo ¤tServer = ServerInfo()); + private: /** * Called to load a list of available server from an online xml file. @@ -143,15 +126,10 @@ class ServerDialog : public Window, void loadServers(); void loadCustomServers(); - void saveCustomServers(const ServerInfo ¤tServer = ServerInfo()); static int downloadUpdate(void *ptr, DownloadStatus status, size_t total, size_t remaining); - void setFieldsReadOnly(bool readOnly); - - TextField *mServerNameField; - TextField *mPortField; Label *mDescription; Button *mQuitButton; Button *mConnectButton; @@ -161,9 +139,6 @@ class ServerDialog : public Window, ListBox *mServersList; ServersListModel *mServersListModel; - DropDown *mTypeField; - TypeListModel *mTypeListModel; - const std::string &mDir; enum ServerDialogDownloadStatus |