From 4cd44430deb5a7efc030839a133fe8510327fc24 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Feb 2012 21:31:08 +0300 Subject: Update servers list once a day. --- src/gui/serverdialog.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui/serverdialog.h') diff --git a/src/gui/serverdialog.h b/src/gui/serverdialog.h index c23fb8776..61620364c 100644 --- a/src/gui/serverdialog.h +++ b/src/gui/serverdialog.h @@ -138,12 +138,16 @@ class ServerDialog : public Window, * Called to load a list of available server from an online xml file. */ void downloadServerList(); + void loadServers(bool addNew = true); void loadCustomServers(); + void saveCustomServers(const ServerInfo ¤tServer = ServerInfo(), int index = -1); + bool needUpdateServers(); + static int downloadUpdate(void *ptr, DownloadStatus status, size_t total, size_t remaining); -- cgit v1.2.3-60-g2f50