21 QgsNetworkDiskCache::ExpirableNetworkDiskCache QgsNetworkDiskCache::smDiskCache;
22 QMutex QgsNetworkDiskCache::smDiskCacheMutex;
24 QgsNetworkDiskCache::QgsNetworkDiskCache(
QObject *parent )
36 return smDiskCache.cacheDirectory();
42 smDiskCache.setCacheDirectory( cacheDir );
48 return smDiskCache.maximumCacheSize();
54 smDiskCache.setMaximumCacheSize( size );
60 return smDiskCache.cacheSize();
66 return smDiskCache.metaData( url );
72 smDiskCache.updateMetaData( metaData );
78 return smDiskCache.data( url );
84 return smDiskCache.remove( url );
90 return smDiskCache.prepare( metaData );
96 smDiskCache.insert( device );
102 return smDiskCache.fileMetaData( fileName );
108 return smDiskCache.runExpire();
114 return smDiskCache.clear();
bool remove(const QUrl &url) override
qint64 cacheSize() const override
void setCacheDirectory(const QString &cacheDir)
void updateMetaData(const QNetworkCacheMetaData &metaData) override
void insert(QIODevice *device) override
QString cacheDirectory() const
QNetworkCacheMetaData fileMetaData(const QString &fileName) const
virtual qint64 expire() override
QNetworkCacheMetaData metaData(const QUrl &url) override
qint64 maximumCacheSize() const
QIODevice * data(const QUrl &url) override
QIODevice * prepare(const QNetworkCacheMetaData &metaData) override
void setMaximumCacheSize(qint64 size)