45 #include <QtCore/qiodevice.h> 46 #include <QtCore/qbytearray.h> 78 inline void setData(
const char *data,
int len);
81 bool open(OpenMode openMode);
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
#define QT_END_NAMESPACE
This macro expands to.
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
void setData(const QByteArray &data)
Sets the contents of the internal buffer to be data.
virtual qint64 writeData(const char *data, qint64 len)=0
Writes up to maxSize bytes from data to the device.
The QByteArray class provides an array of bytes.
virtual qint64 pos() const
For random-access devices, this function returns the position that data is written to or read from...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
long ASN1_INTEGER_get ASN1_INTEGER * a
The QBuffer class provides a QIODevice interface for a QByteArray.
The QObject class is the base class of all Qt objects.
virtual void connectNotify(const char *signal)
This virtual function is called when something has been connected to signal in this object...
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
static const char * data(const QByteArray &arr)
virtual qint64 readData(char *data, qint64 maxlen)=0
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
virtual void disconnectNotify(const char *signal)
This virtual function is called when something has been disconnected from signal in this object...
virtual bool open(OpenMode mode)
Opens the device and sets its OpenMode to mode.
#define Q_DECLARE_PRIVATE(Class)
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false...
The QIODevice class is the base interface class of all I/O devices in Qt.
virtual bool seek(qint64 pos)
For random-access devices, this function sets the current position to pos, returning true on success...