QtNetwork/qabstractnetworkcache.h Source File
Go to the documentation of this file.
42 #ifndef QABSTRACTNETWORKCACHE_H
43 #define QABSTRACTNETWORKCACHE_H
59 template<class T> class
QList;
61 class QNetworkCacheMetaDataPrivate;
70 QNetworkCacheMetaData();
71 QNetworkCacheMetaData(
const QNetworkCacheMetaData &other);
72 ~QNetworkCacheMetaData();
74 QNetworkCacheMetaData &operator=(
const QNetworkCacheMetaData &other);
75 bool operator==(
const QNetworkCacheMetaData &other)
const;
76 inline bool operator!=(
const QNetworkCacheMetaData &other)
const
77 {
return !(*
this == other); }
82 void setUrl(
const QUrl &url);
84 RawHeaderList rawHeaders()
const;
85 void setRawHeaders(
const RawHeaderList &headers);
87 QDateTime lastModified()
const;
88 void setLastModified(
const QDateTime &dateTime);
90 QDateTime expirationDate()
const;
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);
100 friend class QNetworkCacheMetaDataPrivate;
108 class QAbstractNetworkCachePrivate;
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;
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
Q_NETWORK_EXPORT QDataStream & operator>>(QDataStream &, QNetworkCacheMetaData &)
Q_NETWORK_EXPORT QDataStream & operator<<(QDataStream &, const QNetworkCacheMetaData &)