| 2006 | } |
| 2007 | |
| 2008 | void Storage::GetNodeStatuses(CountryId const & countryId, NodeStatuses & nodeStatuses) const |
| 2009 | { |
| 2010 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 2011 | |
| 2012 | CountryTree::Node const * const node = m_countries.FindFirst(countryId); |
| 2013 | CHECK(node, (countryId)); |
| 2014 | |
| 2015 | StatusAndError statusAndErr = GetNodeStatus(*node); |
| 2016 | nodeStatuses.m_status = statusAndErr.status; |
| 2017 | nodeStatuses.m_error = statusAndErr.error; |
| 2018 | nodeStatuses.m_groupNode = (node->ChildrenCount() != 0); |
| 2019 | } |
| 2020 | |
| 2021 | void Storage::SetCallbackForClickOnDownloadMap(DownloadFn & downloadFn) |
| 2022 | { |