| 788 | } |
| 789 | |
| 790 | void 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 | |
| 801 | void Storage::RestoreDownloadQueue() |
| 802 | { |
nothing calls this directly
no test coverage detected