QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Classes | 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

 ~QgsNetworkDiskCache ()
 
QString cacheDirectory () const
 
qint64 cacheSize () const override
 
QIODevicedata (const QUrl &url) override
 
QNetworkCacheMetaData fileMetaData (const QString &fileName) const
 
void insert (QIODevice *device) override
 
qint64 maximumCacheSize () const
 
QNetworkCacheMetaData metaData (const QUrl &url) override
 
QIODeviceprepare (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
 
- Public Member Functions inherited from QNetworkDiskCache
 QNetworkDiskCache (QObject *parent)
 
 ~QNetworkDiskCache ()
 
QString cacheDirectory () const
 
virtual void clear ()
 
qint64 maximumCacheSize () const
 
void setCacheDirectory (const QString &cacheDir)
 
void setMaximumCacheSize (qint64 size)
 
- Public Member Functions inherited from QAbstractNetworkCache
virtual ~QAbstractNetworkCache ()
 
virtual qint64 cacheSize () const=0
 
virtual void clear ()=0
 
virtual QIODevicedata (const QUrl &url)=0
 
virtual void insert (QIODevice *device)=0
 
virtual QIODeviceprepare (const QNetworkCacheMetaData &metaData)=0
 
virtual bool remove (const QUrl &url)=0
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual ~QObject ()
 
bool blockSignals (bool block)
 
QObjectchild (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArraydynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObjectparent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThreadthread () const
 

Protected Member Functions

virtual qint64 expire () override
 
- Protected Member Functions inherited from QAbstractNetworkCache
 QAbstractNetworkCache (QObject *parent)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObjectsender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Friends

class QgsNetworkAccessManager
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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

Constructor & Destructor Documentation

◆ ~QgsNetworkDiskCache()

QgsNetworkDiskCache::~QgsNetworkDiskCache ( )

Definition at line 29 of file qgsnetworkdiskcache.cpp.

Member Function Documentation

◆ cacheDirectory()

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

Definition at line 33 of file qgsnetworkdiskcache.cpp.

◆ cacheSize()

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

Reimplemented from QNetworkDiskCache.

Definition at line 57 of file qgsnetworkdiskcache.cpp.

◆ clear

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

Definition at line 111 of file qgsnetworkdiskcache.cpp.

◆ data()

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

Reimplemented from QNetworkDiskCache.

Definition at line 75 of file qgsnetworkdiskcache.cpp.

◆ expire()

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

Reimplemented from QNetworkDiskCache.

Definition at line 105 of file qgsnetworkdiskcache.cpp.

◆ fileMetaData()

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

Definition at line 99 of file qgsnetworkdiskcache.cpp.

◆ insert()

void QgsNetworkDiskCache::insert ( QIODevice device)
overridevirtual
See also
QNetworkDiskCache::insert()

Reimplemented from QNetworkDiskCache.

Definition at line 93 of file qgsnetworkdiskcache.cpp.

◆ maximumCacheSize()

qint64 QgsNetworkDiskCache::maximumCacheSize ( ) const

◆ metaData()

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

Reimplemented from QNetworkDiskCache.

Definition at line 63 of file qgsnetworkdiskcache.cpp.

◆ prepare()

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

Reimplemented from QNetworkDiskCache.

Definition at line 87 of file qgsnetworkdiskcache.cpp.

◆ remove()

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

Reimplemented from QNetworkDiskCache.

Definition at line 81 of file qgsnetworkdiskcache.cpp.

◆ setCacheDirectory()

void QgsNetworkDiskCache::setCacheDirectory ( const QString cacheDir)

◆ setMaximumCacheSize()

void QgsNetworkDiskCache::setMaximumCacheSize ( qint64  size)

◆ updateMetaData()

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

Reimplemented from QNetworkDiskCache.

Definition at line 69 of file qgsnetworkdiskcache.cpp.

Friends And Related Function Documentation

◆ QgsNetworkAccessManager

friend class QgsNetworkAccessManager
friend

Definition at line 97 of file qgsnetworkdiskcache.h.


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