QGIS API Documentation  3.0.2-Girona (307d082)
Public Slots | 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
 

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 48 of file qgsnetworkdiskcache.h.

Member Function Documentation

◆ cacheDirectory()

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

Definition at line 31 of file qgsnetworkdiskcache.cpp.

◆ cacheSize()

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

Definition at line 55 of file qgsnetworkdiskcache.cpp.

◆ clear

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

Definition at line 109 of file qgsnetworkdiskcache.cpp.

◆ data()

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

Definition at line 73 of file qgsnetworkdiskcache.cpp.

◆ expire()

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

Definition at line 103 of file qgsnetworkdiskcache.cpp.

◆ fileMetaData()

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

Definition at line 97 of file qgsnetworkdiskcache.cpp.

◆ insert()

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

Definition at line 91 of file qgsnetworkdiskcache.cpp.

◆ maximumCacheSize()

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

Definition at line 43 of file qgsnetworkdiskcache.cpp.

◆ metaData()

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

Definition at line 61 of file qgsnetworkdiskcache.cpp.

◆ prepare()

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

Definition at line 85 of file qgsnetworkdiskcache.cpp.

◆ remove()

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

Definition at line 79 of file qgsnetworkdiskcache.cpp.

◆ setCacheDirectory()

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

Definition at line 37 of file qgsnetworkdiskcache.cpp.

◆ setMaximumCacheSize()

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

Definition at line 49 of file qgsnetworkdiskcache.cpp.

◆ updateMetaData()

void QgsNetworkDiskCache::updateMetaData ( const QNetworkCacheMetaData &  metaData)
override
See also
QNetworkDiskCache::updateMetaData()

Definition at line 67 of file qgsnetworkdiskcache.cpp.

Friends And Related Function Documentation

◆ QgsNetworkAccessManager

friend class QgsNetworkAccessManager
friend

Definition at line 104 of file qgsnetworkdiskcache.h.


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