QAbstractNetworkCache Class
The QAbstractNetworkCache class provides the interface for cache implementations. More...
Header: | #include <QAbstractNetworkCache> |
qmake: | QT += network |
Since: | Qt 4.5 |
Inherits: | QObject |
Inherited By: |
Public Functions
virtual | ~QAbstractNetworkCache() |
virtual qint64 | cacheSize() const = 0 |
virtual QIODevice * | data(const QUrl &url) = 0 |
virtual void | insert(QIODevice *device) = 0 |
virtual QNetworkCacheMetaData | metaData(const QUrl &url) = 0 |
virtual QIODevice * | prepare(const QNetworkCacheMetaData &metaData) = 0 |
virtual bool | remove(const QUrl &url) = 0 |
virtual void | updateMetaData(const QNetworkCacheMetaData &metaData) = 0 |
- 31 public functions inherited from QObject
Public Slots
virtual void | clear() = 0 |
- 1 public slot inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Protected Functions
QAbstractNetworkCache(QObject *parent = nullptr) |
- 9 protected functions inherited from QObject
Additional Inherited Members
Detailed Description
The QAbstractNetworkCache class provides the interface for cache implementations.
QAbstractNetworkCache is the base class for every standard cache that is used by QNetworkAccessManager. QAbstractNetworkCache is an abstract class and cannot be instantiated.
See also QNetworkDiskCache.
Member Function Documentation
[protected]
QAbstractNetworkCache::QAbstractNetworkCache(QObject *parent = nullptr)
Constructs an abstract network cache with the given parent.
[virtual]
QAbstractNetworkCache::~QAbstractNetworkCache()
Destroys the cache.
Any operations that have not been inserted are discarded.
See also insert().