From cb6899fa0d8488e7e380179cb2d4bde763667d71 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 3 May 2014 15:37:32 +0300 Subject: Add support for mirrors in download. --- src/net/download.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net/download.h') diff --git a/src/net/download.h b/src/net/download.h index d9a88f8a5..2201aaff2 100644 --- a/src/net/download.h +++ b/src/net/download.h @@ -24,6 +24,7 @@ #define NET_DOWNLOAD_H #include +#include #include "localconsts.h" @@ -87,6 +88,9 @@ class Download final */ void cancel(); + void addMirror(const std::string &str) + { mUrlQueue.push(str); } + const char *getError() const A_WARN_UNUSED; void setIgnoreError(const bool n) @@ -126,6 +130,7 @@ class Download final unsigned checkAdler: 1; } mOptions; std::string mFileName; + std::queue mUrlQueue; WriteFunction mWriteFunction; unsigned long mAdler; DownloadUpdate mUpdateFunction; -- cgit v1.2.3-70-g09d2