From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/tqiodevice.html | 70 ++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 35 deletions(-) (limited to 'doc/html/tqiodevice.html') diff --git a/doc/html/tqiodevice.html b/doc/html/tqiodevice.html index de139b46e..f97d6dcb5 100644 --- a/doc/html/tqiodevice.html +++ b/doc/html/tqiodevice.html @@ -150,14 +150,14 @@ after you ask to read it. isSynchronous() and
  • 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().)

  • Permissions. Some files cannot be written. For example, isReadable(), isWritable() and isReadWrite() tell the application whether it can read from and write to a given device. (This can often be set by the application in the call to open().) -

  • Finally, isOpen() returns TRUE if the device is open, i.e. +

  • Finally, isOpen() returns true if the device is open, i.e. after an open() call.

    TQIODevice provides numerous pure virtual functions that you need @@ -220,15 +220,15 @@ device.

    bool TQIODevice::at ( Offset pos ) [virtual]

    Virtual function that sets the I/O device position to pos. -Returns TRUE if the position was successfully set, i.e. pos is -within range and the seek was successful; otherwise returns FALSE. +Returns true if the position was successfully set, i.e. pos is +within range and the seek was successful; otherwise returns false.

    See also size().

    Reimplemented in TQSocket.

    bool TQIODevice::atEnd () const [virtual]

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

    Reimplemented in TQFile and TQSocket.

    void TQIODevice::close () [pure virtual] @@ -266,74 +266,74 @@ device has been reached.

    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.

    See also isSynchronous().

    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.

    See also isRaw().

    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.

    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.

    See also isSequentialAccess().

    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.

    See also isOpen().

    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.

    See also isInactive().

    Example: network/networkprotocol/nntp.cpp.

    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.

    See also isBuffered().

    bool TQIODevice::isReadWrite () const

    -

    Returns TRUE if the I/O device was opened using IO_ReadWrite -mode; otherwise returns FALSE. +

    Returns true if the I/O device was opened using IO_ReadWrite +mode; otherwise returns false.

    See also isReadable() and isWritable().

    bool TQIODevice::isReadable () const

    -

    Returns TRUE if the I/O device was opened using IO_ReadOnly or -IO_ReadWrite mode; otherwise returns FALSE. +

    Returns true if the I/O device was opened using IO_ReadOnly or +IO_ReadWrite mode; otherwise returns false.

    See also isWritable() and isReadWrite().

    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 sequential devices. @@ -342,23 +342,23 @@ sequential devices.

    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.

    See also isAsynchronous().

    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 IO_Translate mode flag.

    bool TQIODevice::isWritable () const

    -

    Returns TRUE if the I/O device was opened using IO_WriteOnly or -IO_ReadWrite mode; otherwise returns FALSE. +

    Returns true if the I/O device was opened using IO_WriteOnly or +IO_ReadWrite mode; otherwise returns false.

    See also isReadable() and isReadWrite().

    int TQIODevice::mode () const @@ -373,8 +373,8 @@ mode.

    bool TQIODevice::open ( int mode ) [pure virtual]

    -

    Opens the I/O device using the specified mode. Returns TRUE if -the device was successfully opened; otherwise returns FALSE. +

    Opens the I/O device using the specified mode. Returns true if +the device was successfully opened; otherwise returns false.

    The mode parameter mode must be an OR'ed combination of the following flags.

    @@ -490,7 +490,7 @@ Used by subclasses to set the device status (not state) to s.

    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.

    The status codes are: -- cgit v1.2.3