Class sh::tools::ReadDataDevice

class sh::tools::ReadDataDevice : public QIODevice

A QIODevice implementation, acting as an abstract base class for other subclasses.

The provided interface is not as generic but easier than the original one for many easier tasks.

Subclassed by sh::scripting::api::ApiReadDataDevice

Public Functions

ReadDataDevice()
QByteArray getdata() = 0

This method returns the next available chunk of data. It may return empty arrays whenever temporarily no data is available. Returning a null array (with QByteArray::isNull()==true) marks the end of the stream. .

Private Members

QByteArray current
int currentlen = 0
int currentconsumed = 0