Tile downloader. More...
#include <tile_downloader.h>

Public Slots | |
| void | downloadFinished (QNetworkReply *reply) |
Public Member Functions | |
| void | loadTile (TileId const &tile_id) |
| Load a specific tile. More... | |
| TileDownloader (decltype(callback) callback) | |
Public Attributes | |
| detail::ErrorRateManager< std::string > | error_rates |
Private Attributes | |
| std::function< void(TileId, QImage)> | callback |
| QNetworkAccessManager * | manager |
Tile downloader.
This class encapsulates away all the Qt stuff regarding downloading.
Definition at line 38 of file tile_downloader.h.
|
inline |
Definition at line 47 of file tile_downloader.h.
|
inlineslot |
Definition at line 84 of file tile_downloader.h.
|
inline |
Load a specific tile.
Since QNetworkDiskCache is used, tiles will be loaded from the file system if they have been cached. Otherwise they get downloaded.
Definition at line 66 of file tile_downloader.h.
|
private |
Definition at line 42 of file tile_downloader.h.
| detail::ErrorRateManager<std::string> detail::TileDownloader::error_rates |
Definition at line 45 of file tile_downloader.h.
|
private |
Definition at line 41 of file tile_downloader.h.