6 #include "common/downloader.h"
9 class TileLoader
: public QObject
20 TileLoader(const QString
&dir
, QObject
*parent
= 0);
22 void setUrl(const QString
&url
, UrlType type
) {_url
= url
; _urlType
= type
;}
23 void setHeaders(const QList
<HTTPHeader
> &headers
) {_headers
= headers
;}
24 void setScaledSize(int size
);
26 void loadTilesAsync(QVector
<FetchTile
> &list
);
27 void loadTilesSync(QVector
<FetchTile
> &list
);
34 QUrl
tileUrl(const FetchTile
&tile
) const;
35 QString
tileFile(const FetchTile
&tile
) const;
37 Downloader
*_downloader
;
41 QList
<HTTPHeader
> _headers
;
45 #endif // TILELOADER_H