Home · Modules · All Classes · All Namespaces |
The IODevice class represents a buffer with independent read-write. More...
#include <TelepathyQt/io-device.h>
Inherits QIODevice.
Public Member Functions | |
IODevice (QObject *parent=0) | |
~IODevice () | |
bool | isSequential () const |
qint64 | bytesAvailable () const |
Protected Member Functions | |
qint64 | readData (char *data, qint64 maxSize) |
qint64 | writeData (const char *data, qint64 maxSize) |
The IODevice class represents a buffer with independent read-write.
QBuffer has one position pointer, so when we write data, the position pointer points to the end of the buffer and no bytes can be read.
This class is interesting for all CMs that use a library that accepts a QIODevice for file transfers.
Note: This class belongs to the service library.
|
explicit |
Tp::IODevice::~IODevice | ( | ) |
bool Tp::IODevice::isSequential | ( | ) | const |
Returns the number of bytes that are available for reading.
qint64 Tp::IODevice::bytesAvailable | ( | ) | const |
|
protected |
|
protected |
Writes the data to the buffer.
Writes up to maxSize bytes from data to the buffer. If maxSize is not a zero, emits readyRead() and bytesWritten() signals.
data | The data to write. |
maxSize | The number for bytes to write. |
TelepathyQt 0.9.8 | Generated by 1.8.15 |