| 2184 | /// @} |
| 2185 | |
| 2186 | void Storage::GetQueuedChildren(CountryId const & parent, CountriesVec & queuedChildren) const |
| 2187 | { |
| 2188 | CountryTree::Node const * const node = m_countries.FindFirst(parent); |
| 2189 | if (!node) |
| 2190 | { |
| 2191 | ASSERT(false, ()); |
| 2192 | return; |
| 2193 | } |
| 2194 | |
| 2195 | queuedChildren.clear(); |
| 2196 | node->ForEachChild([&queuedChildren, this](CountryTree::Node const & child) |
| 2197 | { |
| 2198 | NodeStatus status = GetNodeStatus(child).status; |
| 2199 | ASSERT_NOT_EQUAL(status, NodeStatus::Undefined, ()); |
| 2200 | if (status == NodeStatus::Downloading || status == NodeStatus::InQueue) |
| 2201 | queuedChildren.push_back(child.Value().Name()); |
| 2202 | }); |
| 2203 | } |
| 2204 | |
| 2205 | void Storage::GetGroupNodePathToRoot(CountryId const & groupNode, CountriesVec & path) const |
| 2206 | { |