42 #ifndef QNETWORKDISKCACHE_P_H 43 #define QNETWORKDISKCACHE_P_H 56 #include "private/qabstractnetworkcache_p.h" 62 #ifndef QT_NO_NETWORKDISKCACHE 83 {
return file ? file->
size() : data.
size(); }
103 , maximumCacheSize(1024 * 1024 * 50)
104 , currentCacheSize(-1)
109 QString tmpCacheFileName()
const;
112 void prepareLayout();
127 #endif // QT_NO_NETWORKDISKCACHE 129 #endif // QNETWORKDISKCACHE_P_H
#define QT_END_NAMESPACE
This macro expands to.
The QTemporaryFile class is an I/O device that operates on temporary files.
void close()
Reimplemented Function
The QNetworkDiskCache class provides a very basic disk cache.
qint64 size() const
Reimplemented Function
The QBuffer class provides a QIODevice interface for a QByteArray.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
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 tr...
#define QT_BEGIN_NAMESPACE
This macro expands to.
void writeCompressedData(QFile *device) const
QNetworkCacheMetaData metaData
QNetworkDiskCachePrivate()
qint64 size() const
Returns the size of the file.
bool canCompress() const
We compress small text and JavaScript files.
#define Q_DECLARE_PUBLIC(Class)
The QFile class provides an interface for reading from and writing to files.
QHash< QIODevice *, QCacheItem * > inserting
void writeHeader(QFile *device) const