Qt 4.8
|
#include <qnetworkdiskcache_p.h>
Public Functions | |
bool | canCompress () const |
We compress small text and JavaScript files. More... | |
QCacheItem () | |
bool | read (QFile *device, bool readData) |
Returns false if the file is a cache file, but is an older version and should be removed otherwise true. More... | |
void | reset () |
qint64 | size () const |
void | writeCompressedData (QFile *device) const |
void | writeHeader (QFile *device) const |
~QCacheItem () | |
Public Variables | |
QBuffer | data |
QTemporaryFile * | file |
QNetworkCacheMetaData | metaData |
Definition at line 68 of file qnetworkdiskcache_p.h.
|
inline |
Definition at line 71 of file qnetworkdiskcache_p.h.
|
inline |
Definition at line 74 of file qnetworkdiskcache_p.h.
bool QCacheItem::canCompress | ( | ) | const |
We compress small text and JavaScript files.
Definition at line 638 of file qnetworkdiskcache.cpp.
Referenced by QNetworkDiskCache::prepare(), and reset().
bool QCacheItem::read | ( | QFile * | 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 694 of file qnetworkdiskcache.cpp.
Referenced by reset().
|
inline |
Definition at line 85 of file qnetworkdiskcache_p.h.
Referenced by ~QCacheItem().
|
inline |
Definition at line 82 of file qnetworkdiskcache_p.h.
Referenced by QNetworkDiskCachePrivate::storeItem().
void QCacheItem::writeCompressedData | ( | QFile * | device | ) | const |
Definition at line 683 of file qnetworkdiskcache.cpp.
Referenced by reset(), and QNetworkDiskCachePrivate::storeItem().
void QCacheItem::writeHeader | ( | QFile * | device | ) | const |
Definition at line 672 of file qnetworkdiskcache.cpp.
Referenced by QNetworkDiskCache::prepare(), reset(), and QNetworkDiskCachePrivate::storeItem().
QBuffer QCacheItem::data |
Definition at line 80 of file qnetworkdiskcache_p.h.
Referenced by QNetworkDiskCache::prepare(), QNetworkDiskCachePrivate::QNetworkDiskCachePrivate(), and QNetworkDiskCachePrivate::storeItem().
QTemporaryFile* QCacheItem::file |
Definition at line 81 of file qnetworkdiskcache_p.h.
Referenced by QNetworkDiskCache::prepare(), QNetworkDiskCachePrivate::QNetworkDiskCachePrivate(), reset(), and QNetworkDiskCachePrivate::storeItem().
QNetworkCacheMetaData QCacheItem::metaData |
Definition at line 79 of file qnetworkdiskcache_p.h.
Referenced by QNetworkDiskCache::prepare(), QNetworkDiskCache::remove(), and QNetworkDiskCachePrivate::storeItem().