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

Method SaveDownloadQueue

libs/storage/storage.cpp:790–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790void Storage::SaveDownloadQueue()
791{
792 CHECK_THREAD_CHECKER(m_threadChecker, ());
793
794 ostringstream ss;
795 m_downloader->GetQueue().ForEachCountry([&ss](QueuedCountry const & country)
796 { ss << (ss.str().empty() ? "" : ";") << country.GetCountryId(); });
797
798 settings::Set(kDownloadQueueKey, ss.str());
799}
800
801void Storage::RestoreDownloadQueue()
802{

Callers

nothing calls this directly

Calls 5

GetCountryIdMethod · 0.80
SetFunction · 0.50
ForEachCountryMethod · 0.45
GetQueueMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected