16 #ifndef QGSTILECACHE_H    17 #define QGSTILECACHE_H    19 #include "qgis_core.h"    45     static void insertTile( 
const QUrl &url, 
const QImage &image );
    51     static bool tile( 
const QUrl &url, QImage &image );
    54     static int totalCost() { QMutexLocker locker( &sTileCacheMutex ); 
return sTileCache.totalCost(); }
    56     static int maxCost() { QMutexLocker locker( &sTileCacheMutex ); 
return sTileCache.maxCost(); }
    60     static QCache<QUrl, QImage> sTileCache;
    62     static QMutex sTileCacheMutex;
    65 #endif // QGSTILECACHE_H static int maxCost()
how many tiles can be stored in the in-memory cache 
 
A simple tile cache implementation. 
 
static int totalCost()
how many tiles are stored in the in-memory cache