18 #ifndef QGSNETWORKDISKCACHE_H 19 #define QGSNETWORKDISKCACHE_H 21 #include <QNetworkDiskCache> 61 bool remove(
const QUrl &url )
override;
77 void clear()
override;
81 virtual qint64
expire()
override;
94 static ExpirableNetworkDiskCache smDiskCache;
95 static QMutex smDiskCacheMutex;
100 #endif // QGSNETWORKDISKCACHE_H
qint64 cacheSize() const override
void setCacheDirectory(const QString &cacheDir)
void updateMetaData(const QNetworkCacheMetaData &metaData) override
QNetworkDiskCache(QObject *parent)
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
network access manager for QGIS
void setMaximumCacheSize(qint64 size)
Wrapper implementation of QNetworkDiskCache with all methods guarded by a mutex soly for internal use...