Qt:Документация 4.3.2/qiodevice-qt3

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] Qt 3 Support Members for QIODevice

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.



[править] Открытые типы

[править] Открытые функции

  • 8 открытых функций унаследованных от QObject

[править] Описание типов членов

[править]
typedef QIODevice::Offset

Use qint64 instead.

[править]
typedef QIODevice::Status

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


[править] Описание функций-членов

[править]
Offset QIODevice::at () const

Use pos() instead.

[править]
bool QIODevice::at ( Offset offset )

This is an overloaded member function, provided for convenience.

Use seek(offset) instead.

[править]
int QIODevice::flags () const

Use openMode() instead.

[править]
int QIODevice::getch ()

Use getChar() instead.

[править]
bool QIODevice::isAsynchronous () const

This functionality is no longer available. This function always returns true.

[править]
bool QIODevice::isBuffered () const

Use !( openMode() & QIODevice::Unbuffered) 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 functionality is no longer available. This function always returns false.

[править]
bool QIODevice::isTranslated () const

Use openMode() instead.

[править]
int QIODevice::mode () const

Use openMode() instead.

[править]
int QIODevice::putch ( int ch )

Use putChar(ch) instead.

[править]
qint64 QIODevice::readBlock ( char * data, quint64 size )

Use read(data, size) instead.

[править]
void QIODevice::resetStatus ()

For device specific error handling, please refer to the individual device documentation.

See also qobject_cast().

[править]
int QIODevice::state () const

Use isOpen() instead.

[править]
Status QIODevice::status () const

For device specific error handling, please refer to the individual device documentation.

See also qobject_cast().

[править]
int QIODevice::ungetch ( int ch )

Use ungetChar(ch) instead.

[править]
qint64 QIODevice::writeBlock ( const char * data, quint64 size )

Use write(data, size) instead.

[править]
qint64 QIODevice::writeBlock ( const QByteArray & data )

This is an overloaded member function, provided for convenience.

Use write(data) instead.


Copyright © 2007 Trolltech Trademarks
Qt 4.3.2