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/tqhttp.html | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'doc/html/tqhttp.html') diff --git a/doc/html/tqhttp.html b/doc/html/tqhttp.html index a6dc5072c..9b4fae625 100644 --- a/doc/html/tqhttp.html +++ b/doc/html/tqhttp.html @@ -150,7 +150,7 @@ can also be written as: (with small variations, depending on network traffic, etc.):

     requestStarted( 1 )
-    requestFinished( 1, FALSE )
+    requestFinished( 1, false )
 
     requestStarted( 2 )
     stateChanged( Connecting )
@@ -163,9 +163,9 @@ can also be written as:
     dataReadProgress( 18300, 0 )
     readyRead( responseheader )
     stateChanged( Connected )
-    requestFinished( 2, FALSE )
+    requestFinished( 2, false )
 
-    done( FALSE )
+    done( false )
 
     stateChanged( Closing )
     stateChanged( Unconnected )
@@ -199,13 +199,13 @@ the post() request is never executed and the signals would l
 like this:
 

     requestStarted( 1 )
-    requestFinished( 1, FALSE )
+    requestFinished( 1, false )
 
     requestStarted( 2 )
     stateChanged( HostLookup )
-    requestFinished( 2, TRUE )
+    requestFinished( 2, true )
 
-    done( TRUE )
+    done( true )
 
     stateChanged( Unconnected )
     
@@ -281,11 +281,11 @@ closed.

void TQHttp::abort () [slot]

Aborts the current request and deletes all scheduled requests. -

For the current request, the requestFinished() signal with the error argument TRUE is emitted. For all other requests that are +

For the current request, the requestFinished() signal with the error argument true is emitted. For all other requests that are affected by the abort(), no signals are emitted.

Since this slot also deletes the scheduled requests, there are no requests left and the done() signal is emitted (with the error -argument TRUE). +argument true).

See also clearPendingRequests().

TQ_ULONG TQHttp::bytesAvailable () const @@ -341,7 +341,7 @@ there is no request being executed (i.e. they've all finished). Returns the request header of the HTTP request being executed. If the request is one issued by setHost() or closeConnection(), it returns an invalid request header, i.e. -TQHttpRequestHeader::isValid() returns FALSE. +TQHttpRequestHeader::isValid() returns false.

See also currentId().

TQIODevice * TQHttp::currentSourceDevice () const @@ -386,22 +386,22 @@ bytes, since for large files these values might need to be

This signal is emitted when the last pending request has finished; (it is emitted after the last request's requestFinished() signal). -error is TRUE if an error occurred during the processing; -otherwise error is FALSE. +error is true if an error occurred during the processing; +otherwise error is false.

See also requestFinished(), error(), and errorString().

Error TQHttp::error () const

Returns the last error that occurred. This is useful to find out what happened when receiving a requestFinished() or a done() -signal with the error argument TRUE. +signal with the error argument true.

If you start a new request, the error status is reset to NoError.

TQString TQHttp::errorString () const

Returns a human-readable description of the last error that occurred. This is useful to present a error message to the user -when receiving a requestFinished() or a done() signal with the error argument TRUE. +when receiving a requestFinished() or a done() signal with the error argument true.

int TQHttp::get ( const TQString & path, TQIODevice * to = 0 )

@@ -426,8 +426,8 @@ emitted.

bool TQHttp::hasPendingRequests () const

-Returns TRUE if there are any requests scheduled that have not yet -been executed; otherwise returns FALSE. +Returns true if there are any requests scheduled that have not yet +been executed; otherwise returns false.

The request that is being executed is not considered as a scheduled request.

See also clearPendingRequests(), currentId(), and currentRequest(). @@ -531,8 +531,8 @@ This is an overloaded member function, provided for convenience. It behaves esse

This signal is emitted when processing the request identified by -id has finished. error is TRUE if an error occurred during -the processing; otherwise error is FALSE. +id has finished. error is true if an error occurred during +the processing; otherwise error is false.

See also requestStarted(), done(), error(), and errorString().

void TQHttp::requestStarted ( int id ) [signal] -- cgit v1.2.3