libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::OsmTileDownloader Class Reference

#include <OsmTileDownloader.h>

+ Inheritance diagram for osmscout::OsmTileDownloader:

Public Slots

void download (uint32_t zoomLevel, uint32_t x, uint32_t y)
 
void onlineTileProviderChanged (const OnlineTileProvider &provider)
 

Signals

void downloaded (uint32_t zoomLevel, uint32_t x, uint32_t y, QImage image, QByteArray downloadedData)
 
void failed (uint32_t zoomLevel, uint32_t x, uint32_t y, bool zoomLevelOutOfRange)
 

Public Member Functions

 OsmTileDownloader (QString diskCacheDir, const OnlineTileProvider &provider)
 
 ~OsmTileDownloader () override
 

Constructor & Destructor Documentation

◆ OsmTileDownloader()

osmscout::OsmTileDownloader::OsmTileDownloader ( QString  diskCacheDir,
const OnlineTileProvider &  provider 
)

http://wiki.openstreetmap.org/wiki/Tile_usage_policy

  • Valid User-Agent identifying application. Faking another app's User-Agent WILL get you blocked.
  • If known, a valid HTTP Referer.
  • DO NOT send no-cache headers. ("Cache-Control: no-cache", "Pragma: no-cache" etc.)
  • Cache Tile downloads locally according to HTTP Expiry Header, alternatively a minimum of 7 days.
  • Maximum of 2 download threads. (Unmodified web browsers' download thread limits are acceptable.)

◆ ~OsmTileDownloader()

osmscout::OsmTileDownloader::~OsmTileDownloader ( )
override

Member Function Documentation

◆ download

void osmscout::OsmTileDownloader::download ( uint32_t  zoomLevel,
uint32_t  x,
uint32_t  y 
)
slot

◆ downloaded

void osmscout::OsmTileDownloader::downloaded ( uint32_t  zoomLevel,
uint32_t  x,
uint32_t  y,
QImage  image,
QByteArray  downloadedData 
)
signal

◆ failed

void osmscout::OsmTileDownloader::failed ( uint32_t  zoomLevel,
uint32_t  x,
uint32_t  y,
bool  zoomLevelOutOfRange 
)
signal

◆ onlineTileProviderChanged

void osmscout::OsmTileDownloader::onlineTileProviderChanged ( const OnlineTileProvider &  provider)
slot

The documentation for this class was generated from the following files: