4#ifndef QNETWORKDISKCACHE_P_H
5#define QNETWORKDISKCACHE_P_H
18#include <QtNetwork/private/qtnetworkglobal_p.h>
19#include "private/qabstractnetworkcache_p.h"
IOBluetoothDevice * device
\inmodule QtCore \reentrant
void writeCompressedData(QFileDevice *device) const
bool canCompress() const
We compress small text and JavaScript files.
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 tr...
QNetworkCacheMetaData metaData
void writeHeader(QFileDevice *device) const
qint64 size() const override
Returns the size of the file.
QNetworkDiskCachePrivate()
bool removeFile(const QString &file)
Put all of the misc file removing into one function to be extra safe.
QString cacheFileName(const QUrl &url) const
Generates fully qualified path of cached resource from a URL.
static QString uniqueFileName(const QUrl &url)
Given a URL, generates a unique enough filename (and subdirectory)
void prepareLayout()
Create subdirectories and other housekeeping on the filesystem.
QHash< QIODevice *, QCacheItem * > inserting
static quint32 crc32(const char *data, uint len)
void storeItem(QCacheItem *item)
The QNetworkDiskCache class provides a very basic disk cache.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QT_REQUIRE_CONFIG(feature)
QUrl url("example.com")
[constructor-url-reference]