Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions

Obsolete Members for QIODevice

The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

QIODevice class reference

Public Types

Public Functions


Member Type Documentation

typedef QIODevice::Offset

Use Q_LONGLONG instead.

typedef QIODevice::Status

Use OpenMode instead, or see the documentation for specific devices.


Member Function Documentation

Offset QIODevice::at () const

Use pos() instead.

bool QIODevice::at ( Offset offset )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use seek() instead.

int QIODevice::flags () const

Use openMode() instead.

int QIODevice::getch ()

Use getChar() instead.

bool QIODevice::isAsynchronous () const

This function is no longer available.

bool QIODevice::isBuffered () const

Use openMode() instead.

bool QIODevice::isCombinedAccess () const

Use openMode() instead.

bool QIODevice::isDirectAccess () const

Use !isSequential() instead.

bool QIODevice::isInactive () const

Use isOpen(), isReadable(), or isWritable() instead.

bool QIODevice::isRaw () const

Use openMode() instead.

bool QIODevice::isSequentialAccess () const

Use isSequential() instead.

bool QIODevice::isSynchronous () const

This function is no longer available.

bool QIODevice::isTranslated () const

Use openMode() instead.

int QIODevice::mode () const

Use openMode() instead.

int QIODevice::putch ( int c )

Use putChar() instead.

Q_LONG QIODevice::readBlock ( char * data, Q_ULONG maxlen )

Use read() instead.

void QIODevice::resetStatus ()

QIODevice no longer provides the resetStatus() function. For device specific error handling, please refer to the individual device documentation.

See also qt_cast<>().

int QIODevice::state () const

Use isOpen() instead.

Status QIODevice::status () const

QIODevice no longer provides the status() function. For device specific error handling, please refer to the individual device documentation.

See also qt_cast<>().

int QIODevice::ungetch ( int c )

Use ungetChar() instead.

Q_LONG QIODevice::writeBlock ( const char * data, Q_ULONG len )

Use write() instead.

Q_LONG QIODevice::writeBlock ( const QByteArray & data )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Use write() instead.


Copyright © 2004 Trolltech Trademarks
Qt 4.0.0-b1