| 1128 | } |
| 1129 | |
| 1130 | void Storage::OnMapDownloadFinished(CountryId const & countryId, DownloadStatus status, MapFileType type) |
| 1131 | { |
| 1132 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 1133 | ASSERT(m_didDownload != nullptr, ("Storage::Init wasn't called")); |
| 1134 | |
| 1135 | if (status != DownloadStatus::Completed) |
| 1136 | { |
| 1137 | if (status == DownloadStatus::FileNotFound && type == MapFileType::Diff) |
| 1138 | { |
| 1139 | AbortDiffScheme(); |
| 1140 | NotifyStatusChanged(GetRootId()); |
| 1141 | } |
| 1142 | |
| 1143 | OnMapDownloadFailed(countryId); |
| 1144 | return; |
| 1145 | } |
| 1146 | |
| 1147 | m_justDownloaded.insert(countryId); |
| 1148 | RegisterDownloadedFiles(countryId, type); |
| 1149 | } |
| 1150 | |
| 1151 | /* |
| 1152 | void Storage::GetOutdatedCountries(vector<Country const *> & countries) const |