void setSingleShot(bool singleShot)
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
NetworkError error() const
Returns the error that was found during the processing of this request.
#define QT_END_NAMESPACE
This macro expands to.
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
void setOpenMode(OpenMode openMode)
Sets the OpenMode of the device to openMode.
virtual bool waitForReadyRead(int msecs)
Blocks until new data is available for reading and the readyRead() signal has been emitted...
virtual void close()
First emits aboutToClose(), then closes the device and sets its OpenMode to NotOpen.
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.
void readChannelFinished()
This signal is emitted when the input (reading) stream is closed in this device.
void aboutToClose()
This signal is emitted when the device is about to close.
virtual qint64 pos() const
For random-access devices, this function returns the position that data is written to or read from...
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)
void bytesWritten(qint64 bytes)
This signal is emitted every time a payload of data has been written to the device.
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
qint64 read(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, and returns the number of bytes read...
virtual qint64 bytesToWrite() const
For buffered devices, this function returns the number of bytes waiting to be written.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual void close()
Closes this device for reading.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
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 isSequential() const
Returns true if this device is sequential; otherwise returns false.
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...
void finished()
This signal is emitted when the reply has finished processing.
Contains functions used for formatting arguments, such as keywords and paths, in translated strings...
virtual bool open(OpenMode mode)
Opens the device and sets its OpenMode to mode.
OpenMode openMode() const
Returns the mode in which the device has been opened; i.e.
void setErrorString(const QString &errorString)
Sets the human readable description of the last device error that occurred to str.
virtual qint64 bytesAvailable() const
Returns the number of bytes that are available for reading.
virtual bool reset()
Seeks to the start of input for random-access devices.
virtual bool waitForBytesWritten(int msecs)
For buffered devices, this function waits until a payload of buffered written data has been written t...
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.
virtual bool canReadLine() const
Returns true if a complete line of data can be read from the device; otherwise returns false...
virtual bool isSequential() const
void readyRead()
This signal is emitted once every time new data is available for reading from the device...
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.
void start(int msec)
Starts or restarts the timer with a timeout interval of msec milliseconds.
virtual bool seek(qint64 pos)
For random-access devices, this function sets the current position to pos, returning true on success...
virtual void abort()
Aborts the operation immediately and close down any network connections still open.