Files
comaps/storage/background_downloading/downloader_adapter_ios.h
Konstantin Pastbin e3e4a1985a Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run:
  git remote add om-historic [om-historic.git repo url]
  git fetch --tags om-historic
  git replace squashed-history historic-commits
2025-05-08 21:10:51 +07:00

29 lines
808 B
C++

#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