42 #ifndef QABSTRACTNETWORKCACHE_H 43 #define QABSTRACTNETWORKCACHE_H 45 #include <QtCore/qobject.h> 46 #include <QtCore/qshareddata.h> 47 #include <QtCore/qpair.h> 48 #include <QtNetwork/qnetworkrequest.h> 59 template<
class T>
class QList;
77 {
return !(*
this == other); }
82 void setUrl(
const QUrl &url);
84 RawHeaderList rawHeaders()
const;
85 void setRawHeaders(
const RawHeaderList &headers);
88 void setLastModified(
const QDateTime &dateTime);
91 void setExpirationDate(
const QDateTime &dateTime);
93 bool saveToDisk()
const;
94 void setSaveToDisk(
bool allow);
96 AttributesMap attributes()
const;
97 void setAttributes(
const AttributesMap &attributes);
119 virtual bool remove(
const QUrl &url) = 0;
120 virtual qint64 cacheSize()
const = 0;
123 virtual void insert(
QIODevice *device) = 0;
126 virtual void clear() = 0;
#define QT_END_NAMESPACE
This macro expands to.
static void clear(QVariant::Private *d)
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QUrl class provides a convenient interface for working with URLs.
The QObject class is the base class of all Qt objects.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
The QDateTime class provides date and time functions.
#define Q_DECLARE_PRIVATE(Class)
The QDataStream class provides serialization of binary data to a QIODevice.
The QIODevice class is the base interface class of all I/O devices in Qt.
bool operator==(QBool b1, bool b2)
Q_NETWORK_EXPORT QDataStream & operator>>(QDataStream &, QNetworkCacheMetaData &)
The QList class is a template class that provides lists.
The QAbstractNetworkCache class provides the interface for cache implementations. ...
Q_NETWORK_EXPORT QDataStream & operator<<(QDataStream &, const QNetworkCacheMetaData &)