diff options
Diffstat (limited to 'examples/network/infoprotocol/infourlclient/qip.cpp')
| -rw-r--r-- | examples/network/infoprotocol/infourlclient/qip.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/network/infoprotocol/infourlclient/qip.cpp b/examples/network/infoprotocol/infourlclient/qip.cpp index aed848388..71d112174 100644 --- a/examples/network/infoprotocol/infourlclient/qip.cpp +++ b/examples/network/infoprotocol/infourlclient/qip.cpp @@ -33,14 +33,14 @@ int Qip::supportedOperations() const bool Qip::checkConnection( TQNetworkOperation * ) { if ( socket->isOpen() ) - return TRUE; + return true; // don't call connectToHost() if we are already trying to connect if ( socket->state() == TQSocket::Connecting ) - return FALSE; + return false; socket->connectToHost( url()->host(), url()->port() != -1 ? url()->port() : infoPort ); - return FALSE; + return false; } void Qip::operationListChildren( TQNetworkOperation * ) @@ -101,10 +101,10 @@ void Qip::socketReadyRead() TQUrlInfo inf; inf.setName( line.mid( 6 ) + TQString( ( line[ 4 ] == 'D' ) ? "/" : "" ) ); inf.setDir( line[ 4 ] == 'D' ); - inf.setSymLink( FALSE ); + inf.setSymLink( false ); inf.setFile( line[ 4 ] == 'F' ); - inf.setWritable( FALSE ); - inf.setReadable( TRUE ); + inf.setWritable( false ); + inf.setReadable( true ); emit newChild( inf, operationInProgress() ); } else if ( line.startsWith( "213+" ) ) { state = Data; |
