Go to the documentation of this file.
30 #ifndef TILE_MAP_IMAGE_CACHE_H_
31 #define TILE_MAP_IMAGE_CACHE_H_
36 #include <boost/cstdint.hpp>
37 #include <boost/shared_ptr.hpp>
43 #include <QNetworkReply>
57 Image(
const QString& uri,
size_t uri_hash, uint64_t priority = 0);
73 if (
priority_ < std::numeric_limits<uint64_t>::max())
105 explicit ImageCache(
const QString& cache_dir,
size_t size = 4096);
108 ImagePtr GetImage(
size_t uri_hash,
const QString& uri, int32_t priority = 0);
164 #endif // TILE_MAP_IMAGE_CACHE_H_
static const int MAXIMUM_FAILURES
QMutex unprocessed_mutex_
void SetLoading(bool loading)
QMap< QString, size_t > uri_to_hash_map_
CacheThread(ImageCache *parent)
void ProcessRequest(QString uri)
QSemaphore network_request_semaphore_
boost::shared_ptr< QImage > GetImage()
Image(const QString &uri, size_t uri_hash, uint64_t priority=0)
boost::shared_ptr< ImageCache > ImageCachePtr
ImageCache * image_cache_
QMap< size_t, ImagePtr > unprocessed_
static const int MAXIMUM_NETWORK_REQUESTS
static const int MAXIMUM_SEQUENTIAL_REQUESTS
boost::shared_ptr< QImage > image_
ImageCache(const QString &cache_dir, size_t size=4096)
void SetPriority(uint64_t priority)
QNetworkAccessManager network_manager_
void ProcessReply(QNetworkReply *reply)
QCache< size_t, ImagePtr > cache_
boost::shared_ptr< Image > ImagePtr
void RequestImage(QString)
ImagePtr GetImage(size_t uri_hash, const QString &uri, int32_t priority=0)
uint64_t Priority() const
CacheThread * cache_thread_
tile_map
Author(s): Marc Alban
autogenerated on Sun Sep 8 2024 02:27:24