QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
QgsNetworkDiskCache Class Reference

Wrapper implementation of QNetworkDiskCache with all methods guarded by a mutex soly for internal use of QgsNetworkAccessManagers. More...

#include <qgsnetworkdiskcache.h>

Inheritance diagram for QgsNetworkDiskCache:
Inheritance graph
[legend]

Public Slots

void clear () override
 

Public Member Functions

QString cacheDirectory () const
 
qint64 cacheSize () const override
 
QIODevice * data (const QUrl &url) override
 
QNetworkCacheMetaData fileMetaData (const QString &fileName) const
 
void insert (QIODevice *device) override
 
qint64 maximumCacheSize () const
 
QNetworkCacheMetaData metaData (const QUrl &url) override
 
QIODevice * prepare (const QNetworkCacheMetaData &metaData) override
 
bool remove (const QUrl &url) override
 
void setCacheDirectory (const QString &cacheDir)
 
void setMaximumCacheSize (qint64 size)
 
void updateMetaData (const QNetworkCacheMetaData &metaData) override
 

Static Public Member Functions

static qint64 smartCacheSize (const QString &path)
 Returns a smart cache size, in bytes, based on available free space.
 

Protected Member Functions

qint64 expire () override
 

Friends

class QgsNetworkAccessManager
 

Detailed Description

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.

Member Function Documentation

◆ cacheDirectory()

QString QgsNetworkDiskCache::cacheDirectory ( ) const
See also
QNetworkDiskCache::cacheDirectory

Definition at line 35 of file qgsnetworkdiskcache.cpp.

◆ cacheSize()

qint64 QgsNetworkDiskCache::cacheSize ( ) const
override
See also
QNetworkDiskCache::cacheSize()

Definition at line 66 of file qgsnetworkdiskcache.cpp.

◆ clear

void QgsNetworkDiskCache::clear ( )
overrideslot
See also
QNetworkDiskCache::clear()

Definition at line 120 of file qgsnetworkdiskcache.cpp.

◆ data()

QIODevice * QgsNetworkDiskCache::data ( const QUrl &  url)
override
See also
QNetworkDiskCache::data()

Definition at line 84 of file qgsnetworkdiskcache.cpp.

◆ expire()

qint64 QgsNetworkDiskCache::expire ( )
overrideprotected
See also
QNetworkDiskCache::expire()

Definition at line 114 of file qgsnetworkdiskcache.cpp.

◆ fileMetaData()

QNetworkCacheMetaData QgsNetworkDiskCache::fileMetaData ( const QString &  fileName) const
See also
QNetworkDiskCache::fileMetaData()

Definition at line 108 of file qgsnetworkdiskcache.cpp.

◆ insert()

void QgsNetworkDiskCache::insert ( QIODevice *  device)
override
See also
QNetworkDiskCache::insert()

Definition at line 102 of file qgsnetworkdiskcache.cpp.

◆ maximumCacheSize()

qint64 QgsNetworkDiskCache::maximumCacheSize ( ) const
See also
QNetworkDiskCache::maximumCacheSize()

Definition at line 47 of file qgsnetworkdiskcache.cpp.

◆ metaData()

QNetworkCacheMetaData QgsNetworkDiskCache::metaData ( const QUrl &  url)
override
See also
QNetworkDiskCache::metaData()

Definition at line 72 of file qgsnetworkdiskcache.cpp.

◆ prepare()

QIODevice * QgsNetworkDiskCache::prepare ( const QNetworkCacheMetaData &  metaData)
override
See also
QNetworkDiskCache::prepare()

Definition at line 96 of file qgsnetworkdiskcache.cpp.

◆ remove()

bool QgsNetworkDiskCache::remove ( const QUrl &  url)
override
See also
QNetworkDiskCache::remove()

Definition at line 90 of file qgsnetworkdiskcache.cpp.

◆ setCacheDirectory()

void QgsNetworkDiskCache::setCacheDirectory ( const QString &  cacheDir)
See also
QNetworkDiskCache::setCacheDirectory

Definition at line 41 of file qgsnetworkdiskcache.cpp.

◆ setMaximumCacheSize()

void QgsNetworkDiskCache::setMaximumCacheSize ( qint64  size)
See also
QNetworkDiskCache::setMaximumCacheSize()

Definition at line 53 of file qgsnetworkdiskcache.cpp.

◆ 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
See also
QNetworkDiskCache::updateMetaData()

Definition at line 78 of file qgsnetworkdiskcache.cpp.

Friends And Related Symbol Documentation

◆ QgsNetworkAccessManager

friend class QgsNetworkAccessManager
friend

Definition at line 112 of file qgsnetworkdiskcache.h.


The documentation for this class was generated from the following files: