diff options
Diffstat (limited to 'src/tools/tqiodevice.cpp')
| -rw-r--r-- | src/tools/tqiodevice.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/src/tools/tqiodevice.cpp b/src/tools/tqiodevice.cpp index 014a18d46..06dedb383 100644 --- a/src/tools/tqiodevice.cpp +++ b/src/tools/tqiodevice.cpp @@ -134,7 +134,7 @@ \i CR/LF translation. For simplicity, applications often like to see just a single CR/LF style, and TQIODevice subclasses can - provide this. isTranslated() returns TRUE if this object + provide this. isTranslated() returns true if this object translates CR/LF to just LF. (This can often be set by the application in the call to open().) @@ -143,7 +143,7 @@ whether it can read from and write to a given device. (This can often be set by the application in the call to open().) - \i Finally, isOpen() returns TRUE if the device is open, i.e. + \i Finally, isOpen() returns true if the device is open, i.e. after an open() call. \endlist @@ -247,8 +247,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isDirectAccess() const - Returns TRUE if the I/O device is a direct access device; - otherwise returns FALSE, i.e. if the device is a sequential access + Returns true if the I/O device is a direct access device; + otherwise returns false, i.e. if the device is a sequential access device. \sa isSequentialAccess() @@ -257,8 +257,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isSequentialAccess() const - Returns TRUE if the device is a sequential access device; - otherwise returns FALSE, i.e. if the device is a direct access + Returns true if the device is a sequential access device; + otherwise returns false, i.e. if the device is a direct access device. Operations involving size() and at(int) are not valid on @@ -270,8 +270,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isCombinedAccess() const - Returns TRUE if the I/O device is a combined access (both direct - and sequential) device; otherwise returns FALSE. + Returns true if the I/O device is a combined access (both direct + and sequential) device; otherwise returns false. This access method is currently not in use. */ @@ -279,8 +279,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isBuffered() const - Returns TRUE if the I/O device is a buffered device; otherwise - returns FALSE, i.e. the device is a raw device. + Returns true if the I/O device is a buffered device; otherwise + returns false, i.e. the device is a raw device. \sa isRaw() */ @@ -288,8 +288,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isRaw() const - Returns TRUE if the device is a raw device; otherwise returns - FALSE, i.e. if the device is a buffered device. + Returns true if the device is a raw device; otherwise returns + false, i.e. if the device is a buffered device. \sa isBuffered() */ @@ -297,8 +297,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isSynchronous() const - Returns TRUE if the I/O device is a synchronous device; otherwise - returns FALSE, i.e. the device is an asynchronous device. + Returns true if the I/O device is a synchronous device; otherwise + returns false, i.e. the device is an asynchronous device. \sa isAsynchronous() */ @@ -306,8 +306,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isAsynchronous() const - Returns TRUE if the device is an asynchronous device; otherwise - returns FALSE, i.e. if the device is a synchronous device. + Returns true if the device is an asynchronous device; otherwise + returns false, i.e. if the device is a synchronous device. This mode is currently not in use. @@ -317,8 +317,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isTranslated() const - Returns TRUE if the I/O device translates carriage-return and - linefeed characters; otherwise returns FALSE. + Returns true if the I/O device translates carriage-return and + linefeed characters; otherwise returns false. A TQFile is translated if it is opened with the \c IO_Translate mode flag. @@ -327,8 +327,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isReadable() const - Returns TRUE if the I/O device was opened using \c IO_ReadOnly or - \c IO_ReadWrite mode; otherwise returns FALSE. + Returns true if the I/O device was opened using \c IO_ReadOnly or + \c IO_ReadWrite mode; otherwise returns false. \sa isWritable(), isReadWrite() */ @@ -336,8 +336,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isWritable() const - Returns TRUE if the I/O device was opened using \c IO_WriteOnly or - \c IO_ReadWrite mode; otherwise returns FALSE. + Returns true if the I/O device was opened using \c IO_WriteOnly or + \c IO_ReadWrite mode; otherwise returns false. \sa isReadable(), isReadWrite() */ @@ -345,8 +345,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isReadWrite() const - Returns TRUE if the I/O device was opened using \c IO_ReadWrite - mode; otherwise returns FALSE. + Returns true if the I/O device was opened using \c IO_ReadWrite + mode; otherwise returns false. \sa isReadable(), isWritable() */ @@ -354,8 +354,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isInactive() const - Returns TRUE if the I/O device state is 0, i.e. the device is not - open; otherwise returns FALSE. + Returns true if the I/O device state is 0, i.e. the device is not + open; otherwise returns false. \sa isOpen() */ @@ -363,8 +363,8 @@ TQIODevice::~TQIODevice() /*! \fn bool TQIODevice::isOpen() const - Returns TRUE if the I/O device has been opened; otherwise returns - FALSE. + Returns true if the I/O device has been opened; otherwise returns + false. \sa isInactive() */ @@ -376,7 +376,7 @@ TQIODevice::~TQIODevice() Returns the I/O device status. The I/O device status returns an error code. If open() returns - FALSE or readBlock() or writeBlock() return -1, this function can + false or readBlock() or writeBlock() return -1, this function can be called to find out the reason why the operation failed. \keyword IO_Ok @@ -482,8 +482,8 @@ void TQIODevice::setStatus( int s ) /*! \fn bool TQIODevice::open( int mode ) - Opens the I/O device using the specified \a mode. Returns TRUE if - the device was successfully opened; otherwise returns FALSE. + Opens the I/O device using the specified \a mode. Returns true if + the device was successfully opened; otherwise returns false. The mode parameter \a mode must be an OR'ed combination of the following flags. @@ -558,8 +558,8 @@ TQIODevice::Offset TQIODevice::at() const */ /*! Virtual function that sets the I/O device position to \a pos. - Returns TRUE if the position was successfully set, i.e. \a pos is - within range and the seek was successful; otherwise returns FALSE. + Returns true if the position was successfully set, i.e. \a pos is + within range and the seek was successful; otherwise returns false. \sa size() */ @@ -569,16 +569,16 @@ bool TQIODevice::at( Offset pos ) #if defined(QT_CHECK_RANGE) if ( pos > size() ) { tqWarning( "TQIODevice::at: Index %lu out of range", pos ); - return FALSE; + return false; } #endif ioIndex = pos; - return TRUE; + return true; } /*! - Virtual function that returns TRUE if the I/O device position is - at the end of the input; otherwise returns FALSE. + Virtual function that returns true if the I/O device position is + at the end of the input; otherwise returns false. */ bool TQIODevice::atEnd() const |
