57 QString cacheDirectory()
const;
60 void setCacheDirectory(
const QString &cacheDir );
63 qint64 maximumCacheSize()
const;
66 void setMaximumCacheSize( qint64 size );
69 QNetworkCacheMetaData metaData(
const QUrl &url )
override;
72 void updateMetaData(
const QNetworkCacheMetaData &metaData )
override;
75 QIODevice *data(
const QUrl &url )
override;
78 bool remove(
const QUrl &url )
override;
81 qint64 cacheSize()
const override;
84 QIODevice *prepare(
const QNetworkCacheMetaData &metaData )
override;
87 void insert( QIODevice *device )
override;
90 QNetworkCacheMetaData fileMetaData(
const QString &fileName )
const;
96 static qint64 smartCacheSize(
const QString &path );
100 void clear()
override;
104 qint64 expire()
override;
109 static ExpirableNetworkDiskCache sDiskCache;
110 static QMutex sDiskCacheMutex;