diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-17 21:31:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-17 21:31:08 +0300 |
commit | 4cd44430deb5a7efc030839a133fe8510327fc24 (patch) | |
tree | 79558ea0608257be85840cfb8289c20080fdc70b /src/gui/serverdialog.h | |
parent | 2e84ac20fcf6ec69b40e19c4c6c428db04b70d85 (diff) | |
download | ManaVerse-4cd44430deb5a7efc030839a133fe8510327fc24.tar.gz ManaVerse-4cd44430deb5a7efc030839a133fe8510327fc24.tar.bz2 ManaVerse-4cd44430deb5a7efc030839a133fe8510327fc24.tar.xz ManaVerse-4cd44430deb5a7efc030839a133fe8510327fc24.zip |
Update servers list once a day.
Diffstat (limited to 'src/gui/serverdialog.h')
-rw-r--r-- | src/gui/serverdialog.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |