MoleQueue  0.8.0
 All Classes Functions Variables Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | List of all members
CompositeIODevice Class Reference

#include <compositeiodevice.h>

Inheritance diagram for CompositeIODevice:

Public Member Functions

 CompositeIODevice (QObject *parentObject=0)
 
bool addDevice (QIODevice *device)
 
qint64 size () const
 

Protected Member Functions

qint64 readData (char *data, qint64 maxSize)
 
qint64 writeData (const char *data, qint64 maxSize)
 

Detailed Description

The CompositeIODevice class is facade that allows several QIODevices into a single QIODevice.

<molequeue/queue/uit/compositeiodevice.h>

Member Function Documentation

bool addDevice ( QIODevice *  device)

Add a QIODevice to the device. The QIODevice being added must be open in read mode.

Parameters
deviceThe QIODevice to add.
qint64 size ( ) const
Returns
The combine size of all the QIODevices this composite represents.
qint64 readData ( char *  data,
qint64  maxSize 
)
protected

Override superclass with composite read.

qint64 writeData ( const char *  data,
qint64  maxSize 
)
protected

Override superclass, write is not supported.


The documentation for this class was generated from the following file: