CacheData

The CacheData class stores all information associated with an active or completed URL request.

Private Methods

CacheData( const Url& _url );

Private Data Members

boolcomplete;
Connection*conn;
QByteArraydata;
QStringmediaSubtype;
QStringmediaType;
intrefcount;
inttotalSize;
Urlurl;

Private Methods Documentation

CacheData ( const Url& _url );

Create a new CacheData for the given URL.

Private Data Members Documentation

bool complete;

TRUE if the data has been received in its entirety.

Connection* conn;

The open connection that is retrieving the data.

QByteArray data;

The actual data.

QString mediaSubtype;

The data's Internet media subtype.

QString mediaType;

The data's Internet media type.

int refcount;

The number of Requests that are connected to this CacheData. This is not used once the data is complete. If this count goes to zero while retrieving data, the connection is aborted and the CacheData is deleted.

int totalSize;

The total size, as reported when the connection was opened.

Url url;

The URL that the data was retrieved from.


Return to Index.
Automatically generated on Aug 11 23:32