4#ifndef QABSTRACTNETWORKCACHE_H
5#define QABSTRACTNETWORKCACHE_H
7#include <QtNetwork/qtnetworkglobal.h>
8#include <QtCore/qobject.h>
9#include <QtCore/qshareddata.h>
10#include <QtCore/qpair.h>
11#include <QtNetwork/qnetworkrequest.h>
41 {
return !(*
this ==
other); }
48 RawHeaderList rawHeaders()
const;
49 void setRawHeaders(
const RawHeaderList &headers);
57 bool saveToDisk()
const;
58 void setSaveToDisk(
bool allow);
60 AttributesMap attributes()
const;
61 void setAttributes(
const AttributesMap &attributes);
IOBluetoothDevice * device
The QAbstractNetworkCache class provides the interface for cache implementations.
virtual void insert(QIODevice *device)=0
Inserts the data in device and the prepared meta data into the cache.
virtual QIODevice * data(const QUrl &url)=0
Returns the data associated with url.
virtual void updateMetaData(const QNetworkCacheMetaData &metaData)=0
Updates the cache meta date for the metaData's url to metaData.
virtual QNetworkCacheMetaData metaData(const QUrl &url)=0
Returns the meta data for the url url.
virtual QIODevice * prepare(const QNetworkCacheMetaData &metaData)=0
Returns the device that should be populated with the data for the cache item metaData.
virtual qint64 cacheSize() const =0
Returns the current size taken up by the cache.
virtual void clear()=0
Removes all items from the cache.
virtual bool remove(const QUrl &url)=0
Removes the cache entry for url, returning true if success otherwise false.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
Combined button and popup list for selecting options.
std::pair< T1, T2 > QPair
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
request setUrl(QUrl("http://qt-project.org"))
QUrl url("example.com")
[constructor-url-reference]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent