Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-05-26 01:58:30 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:39:13 +0300
commite1a36441a165bae2aa0c0325cc6ecb2f0fd085fa (patch)
tree60a18c06066c1f6e69e7d08bf60dbd4e798b0bdf /platform/chunks_download_strategy.hpp
parent08ff3dda479bccefaf95d08be36751989ff3f5e2 (diff)
[downloader] Add comments, minor changes.
Diffstat (limited to 'platform/chunks_download_strategy.hpp')
-rw-r--r--platform/chunks_download_strategy.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/chunks_download_strategy.hpp b/platform/chunks_download_strategy.hpp
index 2084c0e611..07a7fbefad 100644
--- a/platform/chunks_download_strategy.hpp
+++ b/platform/chunks_download_strategy.hpp
@@ -54,13 +54,17 @@ private:
public:
ChunksDownloadStrategy(vector<string> const & urls);
+ /// Init chunks vector for fileSize.
void InitChunks(int64_t fileSize, int64_t chunkSize, ChunkStatusT status = CHUNK_FREE);
+
+ /// Used in unit tests only!
void AddChunk(RangeT const & range, ChunkStatusT status);
void SaveChunks(string const & fName);
/// @return Already downloaded size.
int64_t LoadOrInitChunks(string const & fName, int64_t fileSize, int64_t chunkSize);
+ /// Should be called for every completed chunk (no matter successful or not).
void ChunkFinished(bool success, RangeT const & range);
enum ResultT