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

- typedef Offset `(obsolete)`
- typedef Status `(obsolete)`

### Public Functions

- Offset at () const `(obsolete)`
- bool at ( Offset offset ) `(obsolete)`
- int flags () const `(obsolete)`
- int getch () `(obsolete)`
- bool isAsynchronous () const `(obsolete)`
- bool isBuffered () const `(obsolete)`
- bool isCombinedAccess () const `(obsolete)`
- bool isDirectAccess () const `(obsolete)`
- bool isInactive () const `(obsolete)`
- bool isRaw () const `(obsolete)`
- bool isSequentialAccess () const `(obsolete)`
- bool isSynchronous () const `(obsolete)`
- bool isTranslated () const `(obsolete)`
- int mode () const `(obsolete)`
- int putch ( int c ) `(obsolete)`
- Q_LONG readBlock ( char * data, Q_ULONG maxlen ) `(obsolete)`
- void resetStatus () `(obsolete)`
- int state () const `(obsolete)`
- Status status () const `(obsolete)`
- int ungetch ( int c ) `(obsolete)`
- Q_LONG writeBlock ( const char * data, Q_ULONG len ) `(obsolete)`
- Q_LONG writeBlock ( const QByteArray & data ) `(obsolete)`

## 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.