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:
authorExMix <rahuba.youri@mapswithme.com>2014-10-08 11:35:08 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:29:37 +0300
commit943dc568bcaaba64ad1048d9e7b3142cfe162484 (patch)
tree6ec308ca243b1312d4e648f2cf25101b26d579b5 /map/country_tree.cpp
parent521aa6b3874e4128524550c499be0f0a7ef63f1f (diff)
[core] new methods for downloader interfaces
Diffstat (limited to 'map/country_tree.cpp')
-rw-r--r--map/country_tree.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/map/country_tree.cpp b/map/country_tree.cpp
index 31ec7e11f1..1bba7ec69b 100644
--- a/map/country_tree.cpp
+++ b/map/country_tree.cpp
@@ -54,13 +54,11 @@ CountryTree::~CountryTree()
ActiveMapsLayout & CountryTree::GetActiveMapLayout()
{
- m_layout.Init();
return m_layout;
}
ActiveMapsLayout const & CountryTree::GetActiveMapLayout() const
{
- m_layout.Init();
return m_layout;
}
@@ -131,10 +129,14 @@ bool CountryTree::GetLeafGuideInfo(int position, guides::GuideInfo & info) const
return GetActiveMapLayout().GetGuideInfo(GetChild(position), info);
}
-LocalAndRemoteSizeT const CountryTree::GetLeafSize(int position) const
+LocalAndRemoteSizeT const CountryTree::GetDownloadableLeafSize(int position) const
{
- //TODO for UVR
- return LocalAndRemoteSizeT(0, 0);
+ return GetActiveMapLayout().GetDownloadableCountrySize(GetChild(position));
+}
+
+LocalAndRemoteSizeT const CountryTree::GetLeafSize(int position, TMapOptions const & options) const
+{
+ return GetActiveMapLayout().GetCountrySize(GetChild(position), options);
}
bool CountryTree::IsCountryRoot() const