QIODeviceSource -
#include <qasyncio.h>
Inherits QDataSource.
Public Members
QIODeviceSource ( QIODevice *, int bufsize=4096 )
~QIODeviceSource ()
virtual int readyToSend ()
virtual void sendTo ( QDataSink * sink, int n )
virtual bool rewindable () const
virtual void enableRewind ( bool on )
virtual void rewind ()
DESCRIPTION
The QIODeviceSource class is a QDataSource that draws data
from a QIODevice
This class encapsulates retrieving data from a QIODevice
(such as a QFile).
MEMBER FUNCTION DOCUMENTATION
QIODeviceSource::QIODeviceSource ( QIODevice * device, int
buffer_size=4096 )
Constructs a QIODeviceSource from a pointer to an
QIODevice. The QIODevice must be dynamically allocated,
becomes owned by the QIODeviceSource, and will be deleted
when the QIODeviceSource destructs. buffer_size determines
the size of buffering to use between asynchronous
operations. The higher buffer_size, the more efficient but
the less interleaved the operation will be with other
processing.
QIODeviceSource::~QIODeviceSource ()
Destructs the QIODeviceSource, deleting the QIODevice from
which it was constructed.
void QIODeviceSource::enableRewind ( bool on ) [virtual]
Enables rewinding. No special action is taken.
Reimplemented from QDataSource.
int QIODeviceSource::readyToSend () [virtual]
Ready until end-of-file.
Reimplemented from QDataSource.
void QIODeviceSource::rewind () [virtual]
Calls reset() on the QIODevice.
Reimplemented from QDataSource.
All QIODeviceSource's are rewindable.
Reimplemented from QDataSource.
void QIODeviceSource::sendTo ( QDataSink * sink, int n )
[virtual]
Reads and sends a block of data.
Reimplemented from QDataSource.
SEE ALSO
http://doc.trolltech.com/qiodevicesource.html
http://www.trolltech.com/faq/tech.html
COPYRIGHT
Copyright 1992-2001 Trolltech AS,
http://www.trolltech.com. See the license file included
in the distribution for a complete license statement.
AUTHOR
Generated automatically from the source code.
BUGS
If you find a bug in Qt, please report it as described in
http://doc.trolltech.com/bughowto.html. Good bug reports
make our job much simpler. Thank you.
In case of content or formattting problems with this
manual page, please report them to qt-bugs@trolltech.com.
Please include the name of the manual page
(qiodevicesource.3qt) and the Qt version (2.3.1).
Man(1) output converted with
man2html