52 #ifndef QIODEVICEDELEGATE_P_H 53 #define QIODEVICEDELEGATE_P_H 55 #include <QtCore/QTimer> 56 #include <QtNetwork/QNetworkReply> 73 virtual bool atEnd()
const;
79 virtual bool open(OpenMode mode);
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
#define QT_END_NAMESPACE
This macro expands to.
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
virtual qint64 readData(char *data, qint64 maxSize)
Reads up to maxSize bytes from the device into data, and returns the number of bytes read or -1 if an...
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
virtual qint64 pos() const
For random-access devices, this function returns the position that data is written to or read from...
QIODeviceDelegate(QIODevice *const source)
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void close()
Closes this device for reading.
The namespace for the internal API of QtXmlPatterns.
static const char * data(const QByteArray &arr)
QIODevice *const m_source
virtual bool waitForReadyRead(int msecs)
Blocks until new data is available for reading and the readyRead() signal has been emitted...
virtual bool seek(qint64 pos)
For random-access devices, this function sets the current position to pos, returning true on success...
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false...
virtual bool open(OpenMode mode)
Opens the device and sets its OpenMode to mode.
virtual qint64 bytesToWrite() const
For buffered devices, this function returns the number of bytes waiting to be written.
virtual bool reset()
Seeks to the start of input for random-access devices.
The QTimer class provides repetitive and single-shot timers.
virtual bool isSequential() const
virtual bool waitForBytesWritten(int msecs)
For buffered devices, this function waits until a payload of buffered written data has been written t...
The QIODevice class is the base interface class of all I/O devices in Qt.
virtual void abort()
Aborts the operation immediately and close down any network connections still open.