Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

qint64 QIODeviceDelegate::pos (  ) const [virtual]

For random-access devices, this function returns the position that data is written to or read from. For sequential devices or closed devices, where there is no concept of a "current position", 0 is returned.

The current read/write position of the device is maintained internally by QIODevice, so reimplementing this function is not necessary. When subclassing QIODevice, use QIODevice::seek() to notify QIODevice about changes in the device position.

See also:
isSequential(), seek()

Reimplemented from QIODevice.

Definition at line 130 of file qiodevicedelegate.cpp.

References QIODevice::pos().

    return m_source->pos();

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index