Wrapper implementation of QNetworkDiskCache with all methods guarded by a mutex soly for internal use of QgsNetworkAccessManagers.
More...
#include <qgsnetworkdiskcache.h>
|
static qint64 | smartCacheSize (const QString &path) |
| Returns a smart cache size, in bytes, based on available free space.
|
|
Wrapper implementation of QNetworkDiskCache with all methods guarded by a mutex soly for internal use of QgsNetworkAccessManagers.
- Note
- not available in Python bindings
Definition at line 50 of file qgsnetworkdiskcache.h.
◆ cacheDirectory()
QString QgsNetworkDiskCache::cacheDirectory |
( |
| ) |
const |
◆ cacheSize()
qint64 QgsNetworkDiskCache::cacheSize |
( |
| ) |
const |
|
override |
◆ clear
void QgsNetworkDiskCache::clear |
( |
| ) |
|
|
overrideslot |
◆ data()
QIODevice * QgsNetworkDiskCache::data |
( |
const QUrl & |
url | ) |
|
|
override |
◆ expire()
qint64 QgsNetworkDiskCache::expire |
( |
| ) |
|
|
overrideprotected |
◆ fileMetaData()
QNetworkCacheMetaData QgsNetworkDiskCache::fileMetaData |
( |
const QString & |
fileName | ) |
const |
◆ insert()
void QgsNetworkDiskCache::insert |
( |
QIODevice * |
device | ) |
|
|
override |
◆ maximumCacheSize()
qint64 QgsNetworkDiskCache::maximumCacheSize |
( |
| ) |
const |
◆ metaData()
QNetworkCacheMetaData QgsNetworkDiskCache::metaData |
( |
const QUrl & |
url | ) |
|
|
override |
◆ prepare()
QIODevice * QgsNetworkDiskCache::prepare |
( |
const QNetworkCacheMetaData & |
metaData | ) |
|
|
override |
◆ remove()
bool QgsNetworkDiskCache::remove |
( |
const QUrl & |
url | ) |
|
|
override |
◆ setCacheDirectory()
void QgsNetworkDiskCache::setCacheDirectory |
( |
const QString & |
cacheDir | ) |
|
◆ setMaximumCacheSize()
void QgsNetworkDiskCache::setMaximumCacheSize |
( |
qint64 |
size | ) |
|
◆ smartCacheSize()
qint64 QgsNetworkDiskCache::smartCacheSize |
( |
const QString & |
path | ) |
|
|
static |
Returns a smart cache size, in bytes, based on available free space.
- Since
- QGIS 3.40
Definition at line 126 of file qgsnetworkdiskcache.cpp.
◆ updateMetaData()
void QgsNetworkDiskCache::updateMetaData |
( |
const QNetworkCacheMetaData & |
metaData | ) |
|
|
override |
◆ QgsNetworkAccessManager
The documentation for this class was generated from the following files: