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/tqprocess.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'doc/html/tqprocess.html') diff --git a/doc/html/tqprocess.html b/doc/html/tqprocess.html index dc8902bd8..145ffa7e4 100644 --- a/doc/html/tqprocess.html +++ b/doc/html/tqprocess.html @@ -293,14 +293,14 @@ over a copy, e.g.

bool TQProcess::canReadLineStderr () const

-Returns TRUE if it's possible to read an entire line of text from -standard error at this time; otherwise returns FALSE. +Returns true if it's possible to read an entire line of text from +standard error at this time; otherwise returns false.

See also readLineStderr() and canReadLineStdout().

bool TQProcess::canReadLineStdout () const

-Returns TRUE if it's possible to read an entire line of text from -standard output at this time; otherwise returns FALSE. +Returns true if it's possible to read an entire line of text from +standard output at this time; otherwise returns false.

See also readLineStdout() and canReadLineStderr().

void TQProcess::clearArguments () @@ -326,14 +326,14 @@ combination of the Communication flags. Returns the exit status of the process or 0 if the process is still running. This function returns immediately and does not wait until the process is finished. -

If normalExit() is FALSE (e.g. if the program was killed or +

If normalExit() is false (e.g. if the program was killed or crashed), this function returns 0, so you should check the return value of normalExit() before relying on this value.

See also normalExit() and processExited().

bool TQProcess::isRunning () const

-Returns TRUE if the process is running; otherwise returns FALSE. +Returns true if the process is running; otherwise returns false.

See also normalExit(), exitStatus(), and processExited().

void TQProcess::kill () const [slot] @@ -374,8 +374,8 @@ with these environment settings. For convenience, there is a small exception to this rule under Unix: if env does not contain any settings for the environment variable LD_LIBRARY_PATH, then this variable is inherited from the starting process. -

Returns TRUE if the process could be started; otherwise returns -FALSE. +

Returns true if the process could be started; otherwise returns +false.

Note that you should not use the slots writeToStdin() and closeStdin() on processes started with launch(), since the result is not well-defined. If you need these slots, use start() instead. @@ -415,8 +415,8 @@ reading from standard output or standard error.

bool TQProcess::normalExit () const

-Returns TRUE if the process has exited normally; otherwise returns -FALSE. This implies that this function returns FALSE if the +Returns true if the process has exited normally; otherwise returns +false. This implies that this function returns false if the process is still running.

See also isRunning(), exitStatus(), and processExited(). @@ -441,7 +441,7 @@ struct, or 0 if no process is belongs to this object. Reads a line of text from standard error, excluding any trailing newline or carriage return characters and returns it. Returns -TQString::null if canReadLineStderr() returns FALSE. +TQString::null if canReadLineStderr() returns false.

By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with TQTextCodec::setCodecForCStrings(). @@ -451,7 +451,7 @@ other codecs, you can set a different codec with Reads a line of text from standard output, excluding any trailing newline or carriage return characters, and returns it. Returns -TQString::null if canReadLineStdout() returns FALSE. +TQString::null if canReadLineStdout() returns false.

By default, the text is interpreted to be in Latin-1 encoding. If you need other codecs, you can set a different codec with TQTextCodec::setCodecForCStrings(). @@ -553,8 +553,8 @@ exception to this rule: under Unix, if env does not contain any settings for the environment variable LD_LIBRARY_PATH, then this variable is inherited from the starting process; under Windows the same applies for the environment variable PATH. -

Returns TRUE if the process could be started; otherwise returns -FALSE. +

Returns true if the process could be started; otherwise returns +false.

You can write data to the process's standard input with writeToStdin(). You can close standard input with closeStdin() and you can terminate the process with tryTerminate(), or with kill(). -- cgit v1.2.3