![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qnetworkdiskcache_p.h>
Public Member Functions | |
QCacheItem ()=default | |
~QCacheItem () | |
qint64 | size () const |
void | reset () |
void | writeHeader (QFileDevice *device) const |
void | writeCompressedData (QFileDevice *device) const |
bool | read (QFileDevice *device, bool readData) |
Returns false if the file is a cache file, but is an older version and should be removed otherwise true. | |
bool | canCompress () const |
We compress small text and JavaScript files. |
Public Attributes | |
QNetworkCacheMetaData | metaData |
QBuffer | data |
QSaveFile * | file = nullptr |
Definition at line 30 of file qnetworkdiskcache_p.h.
|
default |
|
inline |
Definition at line 34 of file qnetworkdiskcache_p.h.
bool QCacheItem::canCompress | ( | ) | const |
We compress small text and JavaScript files.
Definition at line 583 of file qnetworkdiskcache.cpp.
bool QCacheItem::read | ( | QFileDevice * | device, |
bool | readData ) |
Returns false
if the file is a cache file, but is an older version and should be removed otherwise true.
Definition at line 637 of file qnetworkdiskcache.cpp.
References CacheMagic, and CurrentCacheVersion.
|
inline |
Definition at line 45 of file qnetworkdiskcache_p.h.
|
inline |
Definition at line 42 of file qnetworkdiskcache_p.h.
void QCacheItem::writeCompressedData | ( | QFileDevice * | device | ) | const |
Definition at line 626 of file qnetworkdiskcache.cpp.
void QCacheItem::writeHeader | ( | QFileDevice * | device | ) | const |
Definition at line 614 of file qnetworkdiskcache.cpp.
References CacheMagic, and CurrentCacheVersion.
QBuffer QCacheItem::data |
Definition at line 40 of file qnetworkdiskcache_p.h.
QSaveFile* QCacheItem::file = nullptr |
Definition at line 41 of file qnetworkdiskcache_p.h.
QNetworkCacheMetaData QCacheItem::metaData |
Definition at line 39 of file qnetworkdiskcache_p.h.