The FileConn class provides a connection type for reading data from local files.
Publicly inherits Connection.
FileConn | ( const Url& url ); | |
virtual bool | open | ( ); |
virtual void | readable | ( ); |
virtual void | data | ( const char* bytes, int length ); |
virtual void | endOfData | ( ); |
virtual void | startOfData | ( QString mediaType, QString mediaSubtype, int totalSize ); |
bool | _firstRead; |
Create a new file connection.
Open the named file for reading.
Process notification from the Poller that the file is readable. Read some data and forward it with the data() signal.
Emitted as data is read from the file.
Emitted when the end of file is reached.
Emit a signal with the Internet media type and total size of the data stream.