Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

View file

@ -0,0 +1,28 @@
#pragma once
#include "storage/background_downloading/downloader_queue.hpp"
#include "storage/map_files_downloader_with_ping.hpp"
namespace storage
{
class BackgroundDownloaderAdapter : public MapFilesDownloaderWithPing
{
public:
// MapFilesDownloader overrides:
void Remove(CountryId const & countryId) override;
void Clear() override;
QueueInterface const & GetQueue() const override;
private:
// MapFilesDownloaderWithServerList overrides:
void Download(QueuedCountry && queuedCountry) override;
// Trying to download mwm from different servers recursively.
void DownloadFromLastUrl(CountryId const & countryId, std::string const & downloadPath,
std::vector<std::string> && urls);
BackgroundDownloaderQueue<uint64_t> m_queue;
};
} // namespace storage