PythonQt.QtNetwork.QAbstractNetworkCache · declarations 001
Back to PythonQt.QtNetwork.QAbstractNetworkCache
cacheSize
cacheSize() -> int
X.cacheSize() -> int
Supplemental documentation: Qt 5 reference:
[pure virtual] qint64 QAbstractNetworkCache::cacheSize() const
Returns the current size taken up by the cache. Depending upon the cache implementation this might be disk or memory size.
In the base class this is a pure virtual function.
See also clear().
Upstream PySide2 reference signatures (binding differences may apply):
cacheSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#cacheSize
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
[pure virtual slot] void QAbstractNetworkCache::clear()
Removes all items from the cache. Unless there was failures clearing the cache cacheSize() should return 0 after a call to clear.
In the base class this is a pure virtual function.
See also cacheSize() and remove().
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#clear
data
data(url: Any) -> Any
X.data(url) -> PythonQt.QtCore.QIODevice
Supplemental documentation: Qt 5 reference:
[pure virtual] QIODevice *QAbstractNetworkCache::data(const QUrl \&url)
Returns the data associated with url.
It is up to the application that requests the data to delete the QIODevice when done with it.
If there is no cache for url, the url is invalid, or if there is an internal cache
error nullptr is returned.
In the base class this is a pure virtual function.
See also metaData() and prepare().
Upstream PySide2 reference signatures (binding differences may apply):
data(self, url: PySide2.QtCore.QUrl) -> PySide2.QtCore.QIODevice
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#data
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QAbstractNetworkCache.destroyed; argument details are not documented.
insert
insert(device: Any) -> None
X.insert(device)
Supplemental documentation: Qt 5 reference:
[pure virtual] void QAbstractNetworkCache::insert(QIODevice *device)
Inserts the data in device and the prepared meta data into the cache. After this function is called the data and meta data should be retrievable using data() and metaData().
To cancel a prepared inserted call remove() on the metadata's url.
In the base class this is a pure virtual function.
See also prepare() and remove().
Upstream PySide2 reference signatures (binding differences may apply):
insert(self, device: PySide2.QtCore.QIODevice) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#insert
metaData
metaData(url: Any) -> Any
X.metaData(url) -> PythonQt.QtNetwork.QNetworkCacheMetaData
Supplemental documentation: Qt 5 reference:
[pure virtual] QNetworkCacheMetaData QAbstractNetworkCache::metaData(const QUrl \&url)
Returns the meta data for the url url.
If the url is valid and the cache contains the data for url, a valid QNetworkCacheMetaData is returned.
In the base class this is a pure virtual function.
See also updateMetaData() and data().
Upstream PySide2 reference signatures (binding differences may apply):
metaData(self, url: PySide2.QtCore.QUrl) -> PySide2.QtNetwork.QNetworkCacheMetaData
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#metaData
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QAbstractNetworkCache.objectNameChanged; argument details are not documented.
prepare
prepare(metaData: Any) -> Any
X.prepare(metaData) -> PythonQt.QtCore.QIODevice
Supplemental documentation: Qt 5 reference:
[pure virtual] QIODevice *QAbstractNetworkCache::prepare(const QNetworkCacheMetaData \&metaData)
Returns the device that should be populated with the data for the cache item metaData.
When all of the data has been written
insert() should
be called. If
metaData is
invalid or the url in the metadata is invalid nullptr is returned.
The cache owns the device and will take care of deleting it when it is inserted or removed.
To cancel a prepared inserted call remove() on the metadata's url.
In the base class this is a pure virtual function.
See also remove(), updateMetaData(), and insert().
Upstream PySide2 reference signatures (binding differences may apply):
prepare(self, metaData: PySide2.QtNetwork.QNetworkCacheMetaData) -> PySide2.QtCore.QIODevice
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#prepare
remove
remove(url: Any) -> bool
X.remove(url) -> bool
Supplemental documentation: Qt 5 reference:
[pure virtual] bool QAbstractNetworkCache::remove(const QUrl \&url)
Removes the cache entry for url, returning true if success otherwise false.
In the base class this is a pure virtual function.
See also clear() and prepare().
Upstream PySide2 reference signatures (binding differences may apply):
remove(self, url: PySide2.QtCore.QUrl) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#remove
updateMetaData
updateMetaData(metaData: Any) -> None
X.updateMetaData(metaData)
Supplemental documentation: Qt 5 reference:
[pure virtual] void QAbstractNetworkCache::updateMetaData(const QNetworkCacheMetaData \&metaData)
Updates the cache meta date for the metaData's url to metaData
If the cache does not contains a cache item for the url then no action is taken.
In the base class this is a pure virtual function.
See also metaData() and prepare().
Upstream PySide2 reference signatures (binding differences may apply):
updateMetaData(self, metaData: PySide2.QtNetwork.QNetworkCacheMetaData) -> None
Source: https://doc.qt.io/archives/qt-5.15/qabstractnetworkcache.html#updateMetaData