diff --git a/map/country_tree.cpp b/map/country_tree.cpp index 5f05e34707..6f0a626c20 100644 --- a/map/country_tree.cpp +++ b/map/country_tree.cpp @@ -191,6 +191,13 @@ void CountryTree::RetryDownloading(int childPosition) GetActiveMapLayout().RetryDownloading(GetChild(childPosition)); } +void CountryTree::DownloadAllCountry(MapOptions const & options) +{ + size_t const childCount = GetChildCount(); + for (size_t i = 0; i < childCount; ++i) + DownloadCountry(i, options); +} + void CountryTree::CancelDownloading(int childPosition) { GetStorage().DeleteFromDownloader(GetChild(childPosition)); diff --git a/map/country_tree.hpp b/map/country_tree.hpp index f8e3e28142..9c4201e280 100644 --- a/map/country_tree.hpp +++ b/map/country_tree.hpp @@ -67,6 +67,7 @@ public: void DownloadCountry(int childPosition, MapOptions const & options); void DeleteCountry(int childPosition, MapOptions const & options); void RetryDownloading(int childPosition); + void DownloadAllCountry(MapOptions const & options); ///@} void CancelDownloading(int childPosition);