FileConn

The FileConn class provides a connection type for reading data from local files.

Publicly inherits Connection.

Public Methods

FileConn( const Url& url );
virtual boolopen( );

Public Slots

virtual voidreadable( );

Signals

virtual voiddata( const char* bytes, int length );
virtual voidendOfData( );
virtual voidstartOfData( QString mediaType, QString mediaSubtype, int totalSize );

Private Data Members

bool_firstRead;

Public Methods Documentation

FileConn ( const Url& url );

Create a new file connection.

virtual bool open ( );

Open the named file for reading.

Public Slots Documentation

virtual void readable ( );

Process notification from the Poller that the file is readable. Read some data and forward it with the data() signal.

Signals Documentation

virtual void data ( const char* bytes, int length );

Emitted as data is read from the file.

virtual void endOfData ( );

Emitted when the end of file is reached.

virtual void startOfData ( QString mediaType, QString mediaSubtype, int totalSize );

Emit a signal with the Internet media type and total size of the data stream.


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