diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-08-06 11:29:57 +0900 |
commit | dcce5b1f2c449ed9a02b1752e0d74f147a83d07d (patch) | |
tree | d57fe27457a96451f1a67e2a2db268a441d917fc /doc/html/network.html | |
parent | 649c4c61a1f1f479f4532b196f68df476cef2680 (diff) | |
download | tqt-rename/true-false-4.tar.gz tqt-rename/true-false-4.zip |
Replace TRUE/FALSE with boolean values true/false - part 4rename/true-false-4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/network.html')
-rw-r--r-- | doc/html/network.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/html/network.html b/doc/html/network.html index ab49f5528..5fda6c5f8 100644 --- a/doc/html/network.html +++ b/doc/html/network.html @@ -79,7 +79,7 @@ and operate on URLs. For example, downloading a file from an FTP server to the local filesystem can be done with following code: <p> <pre> <a href="tqurloperator.html">TQUrlOperator</a> op; - op.<a href="tqurloperator.html#copy">copy</a>( "ftp://ftp.trolltech.com/qt/source/qt-2.1.0.tar.gz", "file:/tmp", FALSE ); + op.<a href="tqurloperator.html#copy">copy</a>( "ftp://ftp.trolltech.com/qt/source/qt-2.1.0.tar.gz", "file:/tmp", false ); </pre> <p> And that's all! Of course an implementation of the FTP protocol has to @@ -345,9 +345,9 @@ them, your implementation of <tt>supportedOperations()</tt> should do this: bool TQNetworkProtocol::checkConnection( <a href="tqnetworkoperation.html">TQNetworkOperation</a> *op ); </pre> -<p> Here you must return TRUE, if the connection is up and okay (this means +<p> Here you must return true, if the connection is up and okay (this means operations on the protocol can be done). If the connection is not okay, -return FALSE and start to try opening it. If you cannot open the +return false and start to try opening it. If you cannot open the connection at all (e.g. because the host is not found), emit a <tt>finished()</tt> signal and set an error code and the <a href="tqnetworkprotocol.html#State-enum">TQNetworkProtocol::StFailed</a> state to the <a href="tqnetworkoperation.html">TQNetworkOperation</a> pointer you get here. |