49 bool hasEntry(
const QNetworkRequest &request );
51 QByteArray entry(
const QNetworkRequest &request );
53 void registerEntry(
const QNetworkRequest &request, QByteArray data );
63 bool setCacheDirectory(
const QString &path );
65 void setCacheSize( qint64 maxBytes );
68 QString
error()
const {
return mError; }
70 friend class TestQgsCopcProvider;
74 qint64 mMaxDataSize = 256 * 1024 * 1024;
76 QString rangeFileName(
const QNetworkRequest &request )
const;
78 QByteArray readFile(
const QString &fileName );
79 bool writeFile(
const QString &fileName, QByteArray data );
80 bool removeFile(
const QString &fileName );
84 QFileInfoList cacheEntries();