diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-20 13:18:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-20 13:18:47 +0300 |
commit | 0369cb5dc2e5dae4acdb0753c3b309ef874c96ae (patch) | |
tree | ad49bd867bc44ad953c49b43df9c4e2c2705aa34 /src/gui/windows/serverdialog.cpp | |
parent | 0ad3a821e42471a052027419336df2132613e9f3 (diff) | |
download | manaplus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.gz manaplus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.bz2 manaplus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.xz manaplus-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.zip |
Move downloadstatus into separate file.
Diffstat (limited to 'src/gui/windows/serverdialog.cpp')
-rw-r--r-- | src/gui/windows/serverdialog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/serverdialog.cpp b/src/gui/windows/serverdialog.cpp index cc0a4f184..a56c79a3b 100644 --- a/src/gui/windows/serverdialog.cpp +++ b/src/gui/windows/serverdialog.cpp @@ -680,10 +680,10 @@ void ServerDialog::saveCustomServers(const ServerInfo ¤tServer, config.setValue("MostUsedServerName" + toString(savedServerCount), ""); } -int ServerDialog::downloadUpdate(void *ptr, DownloadStatus status, +int ServerDialog::downloadUpdate(void *ptr, DownloadStatus::Type status, size_t total, size_t remaining) { - if (!ptr || status == DOWNLOAD_STATUS_CANCELLED) + if (!ptr || status == DownloadStatus::CANCELLED) return -1; ServerDialog *const sd = reinterpret_cast<ServerDialog*>(ptr); @@ -692,7 +692,7 @@ int ServerDialog::downloadUpdate(void *ptr, DownloadStatus status, if (!sd->mDownload) return -1; - if (status == DOWNLOAD_STATUS_COMPLETE) + if (status == DownloadStatus::COMPLETE) { finished = true; } |