MoleQueue 0.9.0
Loading...
Searching...
No Matches
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

◆ addDevice()

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.

◆ size()

qint64 size ( ) const
Returns
The combine size of all the QIODevices this composite represents.

◆ readData()

qint64 readData ( char * data,
qint64 maxSize )
protected

Override superclass with composite read.

◆ writeData()

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: