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

qint64 QIODeviceDelegate::size (  )  const [virtual]

For open random-access devices, this function returns the size of the device. For open sequential devices, bytesAvailable() is returned.

If the device is closed, the size returned will not reflect the actual size of the device.

See also:
isSequential(), pos()

Reimplemented from QIODevice.

Definition at line 147 of file qiodevicedelegate.cpp.

References QIODevice::size().

{
    return m_source->size();
}


Generated by  Doxygen 1.6.0   Back to index