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/net/download.h | |
parent | 0ad3a821e42471a052027419336df2132613e9f3 (diff) | |
download | manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.gz manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.bz2 manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.tar.xz manaverse-0369cb5dc2e5dae4acdb0753c3b309ef874c96ae.zip |
Move downloadstatus into separate file.
Diffstat (limited to 'src/net/download.h')
-rw-r--r-- | src/net/download.h | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/net/download.h b/src/net/download.h index bc12a8f7c..0d2997b22 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -19,26 +19,17 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ - #ifndef NET_DOWNLOAD_H #define NET_DOWNLOAD_H +#include "net/downloadstatus.h" + #include <string> #include <queue> #include "localconsts.h" -enum DownloadStatus -{ - DOWNLOAD_STATUS_CANCELLED = -3, - DOWNLOAD_STATUS_THREAD_ERROR = -2, - DOWNLOAD_STATUS_ERROR = -1, - DOWNLOAD_STATUS_STARTING = 0, - DOWNLOAD_STATUS_IDLE, - DOWNLOAD_STATUS_COMPLETE -}; - -typedef int (*DownloadUpdate)(void *ptr, DownloadStatus status, +typedef int (*DownloadUpdate)(void *ptr, DownloadStatus::Type status, size_t total, size_t remaining); // Matches what CURL expects |