PythonQt.QtNetwork.QNetworkDiskCache · declarations 001
Back to PythonQt.QtNetwork.QNetworkDiskCache
cacheDirectory
cacheDirectory() -> str
X.cacheDirectory() -> str
Supplemental documentation: Qt 5 reference:
QString QNetworkDiskCache::cacheDirectory() const
Returns the location where cached files will be stored.
See also setCacheDirectory().
Upstream PySide2 reference signatures (binding differences may apply):
cacheDirectory(self) -> str
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#cacheDirectory
cacheSize
cacheSize() -> int
X.cacheSize() -> int
Supplemental documentation: Qt 5 reference:
[override virtual] qint64 QNetworkDiskCache::cacheSize() const
Reimplements: QAbstractNetworkCache::cacheSize() const.
Upstream PySide2 reference signatures (binding differences may apply):
cacheSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#cacheSize
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
[override virtual slot] void QNetworkDiskCache::clear()
Reimplements: QAbstractNetworkCache::clear().
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#clear
data
data(url: Any) -> Any
X.data(url) -> PythonQt.QtCore.QIODevice
Supplemental documentation: Qt 5 reference:
[override virtual] QIODevice *QNetworkDiskCache::data(const QUrl \&url)
Reimplements: QAbstractNetworkCache::data(const QUrl \&url).
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/qnetworkdiskcache.html#data
destroyed
destroyed(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkDiskCache.destroyed; argument details are not documented.
expire
expire() -> int
X.expire() -> int
Supplemental documentation: Qt 5 reference:
[virtual protected] qint64 QNetworkDiskCache::expire()
Cleans the cache so that its size is under the maximum cache size. Returns the current size of the cache.
When the current size of the cache is greater than the maximumCacheSize() older cache files are removed until the total size is less then 90% of maximumCacheSize() starting with the oldest ones first using the file creation date to determine how old a cache file is.
Subclasses can reimplement this function to change the order that cache files are removed taking into account information in the application knows about that QNetworkDiskCache does not, for example the number of times a cache is accessed.
Note: cacheSize() calls expire if the current cache size is unknown.
See also maximumCacheSize() and fileMetaData().
Upstream PySide2 reference signatures (binding differences may apply):
expire(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#expire
fileMetaData
fileMetaData(fileName: str) -> Any
X.fileMetaData(fileName) -> PythonQt.QtNetwork.QNetworkCacheMetaData
Supplemental documentation: Qt 5 reference:
QNetworkCacheMetaData QNetworkDiskCache::fileMetaData(const QString \&fileName) const
Returns the QNetworkCacheMetaData for the cache file fileName.
If fileName is not a cache file QNetworkCacheMetaData will be invalid.
Upstream PySide2 reference signatures (binding differences may apply):
fileMetaData(self, fileName: str) -> PySide2.QtNetwork.QNetworkCacheMetaData
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#fileMetaData
insert
insert(device: Any) -> None
X.insert(device)
Supplemental documentation: Qt 5 reference:
[override virtual] void QNetworkDiskCache::insert(QIODevice *device)
Reimplements: QAbstractNetworkCache::insert(QIODevice *device).
Upstream PySide2 reference signatures (binding differences may apply):
insert(self, device: PySide2.QtCore.QIODevice) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#insert
maximumCacheSize
maximumCacheSize() -> int
X.maximumCacheSize() -> int
Supplemental documentation: Qt 5 reference:
qint64 QNetworkDiskCache::maximumCacheSize() const
Returns the current maximum size for the disk cache.
See also setMaximumCacheSize().
Upstream PySide2 reference signatures (binding differences may apply):
maximumCacheSize(self) -> int
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#maximumCacheSize
metaData
metaData(url: Any) -> Any
X.metaData(url) -> PythonQt.QtNetwork.QNetworkCacheMetaData
Supplemental documentation: Qt 5 reference:
[override virtual] QNetworkCacheMetaData QNetworkDiskCache::metaData(const QUrl \&url)
Reimplements: QAbstractNetworkCache::metaData(const QUrl \&url).
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/qnetworkdiskcache.html#metaData
objectNameChanged
objectNameChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtNetwork.QNetworkDiskCache.objectNameChanged; argument details are not documented.
prepare
prepare(metaData: Any) -> Any
X.prepare(metaData) -> PythonQt.QtCore.QIODevice
Supplemental documentation: Qt 5 reference:
[override virtual] QIODevice *QNetworkDiskCache::prepare(const QNetworkCacheMetaData \&metaData)
Reimplements: QAbstractNetworkCache::prepare(const QNetworkCacheMetaData \&metaData).
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/qnetworkdiskcache.html#prepare
remove
remove(url: Any) -> bool
X.remove(url) -> bool
Supplemental documentation: Qt 5 reference:
[override virtual] bool QNetworkDiskCache::remove(const QUrl \&url)
Reimplements: QAbstractNetworkCache::remove(const QUrl \&url).
Upstream PySide2 reference signatures (binding differences may apply):
remove(self, url: PySide2.QtCore.QUrl) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#remove
setCacheDirectory
setCacheDirectory(cacheDir: str) -> None
X.setCacheDirectory(cacheDir)
Supplemental documentation: Qt 5 reference:
void QNetworkDiskCache::setCacheDirectory(const QString \&cacheDir)
Sets the directory where cached files will be stored to cacheDir
QNetworkDiskCache will create this directory if it does not exists.
Prepared cache items will be stored in the new cache directory when they are inserted.
See also cacheDirectory() and QDesktopServices::CacheLocation.
Upstream PySide2 reference signatures (binding differences may apply):
setCacheDirectory(self, cacheDir: str) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#setCacheDirectory
setMaximumCacheSize
setMaximumCacheSize(size: int) -> None
X.setMaximumCacheSize(size)
Supplemental documentation: Qt 5 reference:
void QNetworkDiskCache::setMaximumCacheSize(qint64 size)
Sets the maximum size of the disk cache to be size.
If the new size is smaller then the current cache size then the cache will call expire().
See also maximumCacheSize().
Upstream PySide2 reference signatures (binding differences may apply):
setMaximumCacheSize(self, size: int) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#setMaximumCacheSize
updateMetaData
updateMetaData(metaData: Any) -> None
X.updateMetaData(metaData)
Supplemental documentation: Qt 5 reference:
[override virtual] void QNetworkDiskCache::updateMetaData(const QNetworkCacheMetaData \&metaData)
Reimplements: QAbstractNetworkCache::updateMetaData(const QNetworkCacheMetaData \&metaData).
Upstream PySide2 reference signatures (binding differences may apply):
updateMetaData(self, metaData: PySide2.QtNetwork.QNetworkCacheMetaData) -> None
Source: https://doc.qt.io/archives/qt-5.15/qnetworkdiskcache.html#updateMetaData