diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-27 12:10:00 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-27 13:41:29 -0700 |
commit | b39f22e6b6bbea745be5bbac700040001af86baa (patch) | |
tree | 5d9e2aaa4f1b63c7e39c0883aa5e0540b33a59b6 /include/mbgl/storage | |
parent | a706a2a48d6ca2076c9c81a0cb0c088ae50d1496 (diff) | |
download | qtlocation-mapboxgl-b39f22e6b6bbea745be5bbac700040001af86baa.tar.gz |
[core] Refactor getRegionCompletedStatus; add completedTileCount; add tests
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/offline.hpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/mbgl/storage/offline.hpp b/include/mbgl/storage/offline.hpp index 2c6ca05eec..fc0bf7f01e 100644 --- a/include/mbgl/storage/offline.hpp +++ b/include/mbgl/storage/offline.hpp @@ -93,12 +93,20 @@ public: uint64_t completedResourceCount = 0; /** - * The cumulative size, in bytes, of all resources (inclusive of tiles) that have been fully downloaded. + * The cumulative size, in bytes, of all resources (inclusive of tiles) that have + * been fully downloaded. */ uint64_t completedResourceSize = 0; - + + /** + * The number of tiles that are known to be required for this region. This is a + * subset of `completedResourceCount`. + */ + uint64_t completedTileCount = 0; + /** * The cumulative size, in bytes, of all tiles that have been fully downloaded. + * This is a subset of `completedResourceSize`. */ uint64_t completedTileSize = 0; |