QNetworkCacheMetaData Class ReferenceThe QNetworkCacheMetaData class provides cache information. More... #include <QNetworkCacheMetaData> This class was introduced in Qt 4.5. Public Types
Public Functions
Related Non-Members
Detailed DescriptionThe QNetworkCacheMetaData class provides cache information. QNetworkCacheMetaData provides information about a cache file including the url, when it was last modified, when the cache file was created, headers for file and if the file should be saved onto a disk. See also QAbstractNetworkCache. Member Type Documentationtypedef QNetworkCacheMetaData::AttributesMapSynonym for QHash<QNetworkRequest::Attribute, QVariant> typedef QNetworkCacheMetaData::RawHeaderSynonym for QPair<QByteArray, QByteArray> typedef QNetworkCacheMetaData::RawHeaderListMember Function DocumentationQNetworkCacheMetaData::QNetworkCacheMetaData ()Constructs an invalid network cache meta data. See also isValid(). QNetworkCacheMetaData::QNetworkCacheMetaData ( const QNetworkCacheMetaData & other )Constructs a copy of the other QNetworkCacheMetaData. QNetworkCacheMetaData::~QNetworkCacheMetaData ()Destroys the network cache meta data. AttributesMap QNetworkCacheMetaData::attributes () constReturns all the attributes stored with this cache item. This function was introduced in Qt 4.6. See also setAttributes() and QNetworkRequest::Attribute. QDateTime QNetworkCacheMetaData::expirationDate () constReturns the date and time when the meta data expires. See also setExpirationDate(). bool QNetworkCacheMetaData::isValid () constReturns true if this network cache meta data has attributes that have been set otherwise false. QDateTime QNetworkCacheMetaData::lastModified () constReturns the date and time when the meta data was last modified. See also setLastModified(). RawHeaderList QNetworkCacheMetaData::rawHeaders () constReturns a list of all raw headers that are set in this meta data. The list is in the same order that the headers were set. See also setRawHeaders(). bool QNetworkCacheMetaData::saveToDisk () constReturns is this cache should be allowed to be stored on disk. Some cache implementations can keep these cache items in memory for performance reasons, but for security reasons they should not be written to disk. Specifically with http, documents marked with Pragma: no-cache, or have a Cache-control set to no-store or no-cache or any https document that doesn't have "Cache-control: public" set will set the saveToDisk to false. See also setSaveToDisk(). void QNetworkCacheMetaData::setAttributes ( const AttributesMap & attributes )Sets all attributes of this cache item to be the map attributes. This function was introduced in Qt 4.6. See also attributes() and QNetworkRequest::setAttribute(). void QNetworkCacheMetaData::setExpirationDate ( const QDateTime & dateTime )Sets the date and time when the meta data expires to dateTime. See also expirationDate(). void QNetworkCacheMetaData::setLastModified ( const QDateTime & dateTime )Sets the date and time when the meta data was last modified to dateTime. See also lastModified(). void QNetworkCacheMetaData::setRawHeaders ( const RawHeaderList & list )Sets the raw headers to list. See also rawHeaders(). void QNetworkCacheMetaData::setSaveToDisk ( bool allow )Sets whether this network cache meta data and associated content should be allowed to be stored on disk to allow. See also saveToDisk(). void QNetworkCacheMetaData::setUrl ( const QUrl & url )Sets the URL this network cache meta data to to be url. The password and fragment are removed from the url. See also url(). QUrl QNetworkCacheMetaData::url () constReturns the URL this network cache meta data is referring to. See also setUrl(). bool QNetworkCacheMetaData::operator!= ( const QNetworkCacheMetaData & other ) constReturns true if this meta data is not equal to the other meta data; otherwise returns false. See also operator==(). QNetworkCacheMetaData & QNetworkCacheMetaData::operator= ( const QNetworkCacheMetaData & other )Makes a copy of the other QNetworkCacheMetaData and returns a reference to the copy. bool QNetworkCacheMetaData::operator== ( const QNetworkCacheMetaData & other ) constReturns true if this meta data is equal to the other meta data; otherwise returns false. See also operator!=(). Related Non-MembersQDataStream & operator<< ( QDataStream & out, const QNetworkCacheMetaData & metaData )Writes metaData to the out stream. This function was introduced in Qt 4.5. See also Serializing Qt Data Types. QDataStream & operator>> ( QDataStream & in, QNetworkCacheMetaData & metaData )Reads a QNetworkCacheMetaData from the stream in into metaData. This function was introduced in Qt 4.5. See also Serializing Qt Data Types. X
|
Попытка перевода Qt документации. Если есть желание присоединиться, или если есть замечания или пожелания, то заходите на форум: Перевод Qt документации на русский язык... Люди внесшие вклад в перевод: Команда переводчиков |