QDataSink(3qt)

NAME
QDataSink - Asynchronous consumer of data

#include <qasyncio.h>

Inherits QAsyncIO.

  Public Members
virtual int readyToReceive ()
virtual void receive ( const uchar *, int count )
virtual void eof ()
void maybeReady ()

DESCRIPTION
The QDataSink class is an asynchronous consumer of data.

A data sink is an object which receives data from some source in an asynchronous manner. This means that at some time not determined by the data sink, blocks of data are given to it from processing. The data sink is able to limit the maximum size of such blocks which it is currently able to process.

See also QAsyncIO, QDataSource and QDataPump.

MEMBER FUNCTION DOCUMENTATION

void QDataSink::eof () [virtual]
This function will be called when no more data is available for processing.

void QDataSink::maybeReady ()
This should be called whenever readyToReceive() might have become non-zero. It is merely calls QAsyncIO::ready() if readyToReceive() is non-zero.

int QDataSink::readyToReceive () [virtual]
The data sink should return a value indicating how much data it is ready to consume. This may be 0.

void QDataSink::receive ( const uchar *, int count ) [virtual]
This function is called to provide data for the data sink. The count will be no more than the amount indicated by the most recent call to readyToReceive(). The sink must use all the provided data.

SEE ALSO
http://doc.trolltech.com/qdatasink.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 (qdatasink.3qt) and the Qt version (2.3.1).