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