MCPcopy Create free account
hub / github.com/comaps/comaps / OnMapDownloadFinished

Method OnMapDownloadFinished

libs/storage/storage.cpp:1130–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1128}
1129
1130void 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/*
1152void Storage::GetOutdatedCountries(vector<Country const *> & countries) const

Callers

nothing calls this directly

Calls 3

ASSERTFunction · 0.85
GetRootIdFunction · 0.85
insertMethod · 0.45

Tested by

no test coverage detected