The Request class provides one-stop-shopping for data retrieval. More...
Publicly inherits QObject.
Request | ( QString url, Canvas* canvas=??? ); | |
Request | ( const Url& url, Canvas* canvas=??? ); | |
bool | open | ( ); |
~Request | ( ); |
void | abort | ( ); |
void | fwdData | ( const char* bytes, int length ); |
void | fwdEndOfData | ( ); |
void | fwdStartOfData | ( QString mediaType, QString mediaSubtype, int totalSize ); |
void | fwdStatus | ( QString msg ); |
void | fwdUrlChanged | ( const Url& url ); |
virtual void | timerEvent | ( QTimerEvent* e ); |
void | data | ( const char* bytes, int length ); |
void | done | ( Request* req ); |
void | endOfData | ( ); |
void | startOfData | ( Request* req, QString mediaType, QString mediaSubtype, int totalSize ); |
void | status | ( QString msg ); |
void | urlChanged | ( const Url& url ); |
Canvas* | _canvas; |
int | _totalRead; |
int | _totalSize; |
Url | _url; |
The Request class provides one-stop-shopping for data retrieval.
Any object that needs to download data from a URL in a non-blocking way can use a request. The request uses the Cache for efficiency.Create a request for the given URL, after parsing it.
Create a request for the given URL.
Open a new connection.
Destroy the request and abort any open connection.
Abort the current connection, and delete the Request. This action is deferred (using startTimer(0)) in order to give the caller a chance to clean up first.
Forward the data signals from the connection.
Forward the endOfData signal from the connection.
Forward the startOfData signal from the connection.
Forward the status signal from the connection.
Forward the urlChanged signal from the connection.
Process a delayed abort request. Abort the open connection, and die.
This signal is used to forward the data signals from the connection.
This signal is emitted just before the Request deletes itself.
This signal is used to forward the endOfData signal from the connection.
This signal is used to forward the startOfData signal from the connection.
This signal is emitted whenever the connection has something interesting to put in the status line of the browser.
This signal is emitted when the Request is informed that the URL for its connection has changed.