The Connection class is the abstract base class for any type of data retrieval class. More...
Publicly inherits QObject.
Publicly inherited by FileConn, HttpConn.
Connection | ( const Url& url ); | |
void | guessFileType | ( QString& mediaType, QString& mediaSubtype ); |
virtual bool | open | ( ); |
virtual | ~Connection | ( ); |
virtual void | abort | ( ); |
virtual void | exception | ( ); |
virtual void | readable | ( ); |
virtual void | writable | ( ); |
virtual void | data | ( const char* bytes, int length ); |
virtual void | endOfData | ( ); |
virtual void | startOfData | ( QString mediaType, QString mediaSubtype, int totalSize ); |
virtual void | status | ( QString msg ); |
virtual void | urlChanged | ( const Url& url ); |
char | _bytes[]; |
int | _fd; |
int | _size; |
Url | _url; |
The Connection class is the abstract base class for any type of data retrieval class.
The Connection class provides the interface, and some common functionality, for all of the classes that retrieve data.Create a new connection.
Establish a new connection.
Abort the connection, if it is still active.
Close the current connection immediately.
Process an exception on the file descriptor.
Process notification from the Poller that there is data to be read from the file descriptor.
Process notification from the Poller that data can be written to the file descriptor.
This signal is emitted whenever any data is received. There can be many data signals emitted between the startOfData and endOfData signals.
This signal is emitted after all data has been received, and the connection is closed.
This signal is emitted after the connection has determined the Internet media type and subtype of the data stream. The total expected size of the data stream is also provided, but this may not always be known.
This signal is emitted by the connection to update the browser window with changes in the connection status. The types of status messages are data being recieved, the connection being opened, etc.
This signal is emitted when the URL that is being retrieved changes. The URL may change as the Connection follows HTTP redirects.