The QIODevice class is the base class of IO devices. (details) (complete member list)
#include <qiodev.h>
Inherited by QBuffer and QFile.
An IO device represents a medium that one can read bytes from and write bytes to. The QIODevice class itself is not capable of reading or writing any data, but it has virtual functions for doing so. These functions are implemented by the subclasses QFile, QBuffer etc.
There are two types of IO devices; direct access or sequential
access devices.
Files can normally be accessed directly, except stdin
etc., which must be
processed sequentially. Buffers are always direct access devices.
The access mode of an IO device can be either raw or buffered. QFile objects can be creating using one of these. Raw access mode is more low level, while buffered access use smart buffering techniques. The raw access mode is best when IO is block-operated using 4kB block size or greater. Buffered access works better when reading small portions of data at a time.
An IO device operation can be executed in either synchronous or asynchronous mode. The IO devices currently supported by Qt only execute synchronously.
See also: QDataStream, QTextStream, QTSManip.
Constructs an IO device.
Destroys an IO device.
Returns the current IO device flags setting.
Flags consists of mode flags and state flags.
Returns bits OR'ed together that specify the current operation mode.
These are the flags that were given to the open() function.
The flags are: IO_ReadOnly,
IO_WriteOnly,
IO_ReadWrite,
IO_Append,
IO_Translate,
IO_Truncate.
Reads a line of text, maximum maxlen bytes.
This virtual function can be reimplemented by subclasses.
Returns bits OR'ed together that specify the current state.
The flags are: IO_Open.
Subclasses may define more flags.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: