summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r--src/gui/serverdialog.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h
index 3d7dca9d..673ee97c 100644
--- a/src/gui/serverdialog.h
+++ b/src/gui/serverdialog.h
@@ -66,15 +66,9 @@ class ServersListModel : public gcn::ListModel
/**
* Used to get the corresponding Server struct
*/
- ServerInfo getServer(int elementIndex) const
+ const ServerInfo &getServer(int elementIndex) const
{ return mServers->at(elementIndex); }
- /**
- * Removes the entry.
- */
- void remove(int elementIndex)
- { mServers->erase(mServers->begin() + elementIndex); }
-
private:
ServerInfos *mServers;
ServerDialog *mParent;
@@ -149,6 +143,10 @@ class ServerDialog : public Window,
*/
void downloadServerList();
void loadServers();
+
+ void loadCustomServers();
+ void saveCustomServers(const ServerInfo &currentServer = ServerInfo());
+
static int downloadUpdate(void *ptr, DownloadStatus status,
size_t total, size_t remaining);