summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqnetworkprotocol.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqnetworkprotocol.cpp')
-rw-r--r--src/kernel/tqnetworkprotocol.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/kernel/tqnetworkprotocol.cpp b/src/kernel/tqnetworkprotocol.cpp
index a595c2d0e..b562d7dd4 100644
--- a/src/kernel/tqnetworkprotocol.cpp
+++ b/src/kernel/tqnetworkprotocol.cpp
@@ -64,10 +64,10 @@ public:
opInProgress = 0;
opStartTimer = new TQTimer( p );
removeTimer = new TQTimer( p );
- operationQueue.setAutoDelete( FALSE );
- autoDelete = FALSE;
+ operationQueue.setAutoDelete( false );
+ autoDelete = false;
removeInterval = 10000;
- oldOps.setAutoDelete( FALSE );
+ oldOps.setAutoDelete( false );
}
~TQNetworkProtocolPrivate()
@@ -475,7 +475,7 @@ void TQNetworkProtocol::setUrl( TQUrlOperator *u )
}
- // ### if autoDelete is TRUE, we should delete the TQUrlOperator (something
+ // ### if autoDelete is true, we should delete the TQUrlOperator (something
// like below; but that is not possible since it would delete this, too).
//if ( d->autoDelete && (d->url!=u) ) {
// delete d->url; // destructor deletes the network protocol
@@ -506,14 +506,14 @@ void TQNetworkProtocol::setUrl( TQUrlOperator *u )
}
if ( !d->opInProgress && !d->operationQueue.isEmpty() )
- d->opStartTimer->start( 0, TRUE );
+ d->opStartTimer->start( 0, true );
}
/*!
For processing operations the network protocol base class calls
this method quite often. This should be reimplemented by new
- network protocols. It should return TRUE if the connection is OK
- (open); otherwise it should return FALSE. If the connection is not
+ network protocols. It should return true if the connection is OK
+ (open); otherwise it should return false. If the connection is not
open the protocol should open it.
If the connection can't be opened (e.g. because you already tried
@@ -526,7 +526,7 @@ void TQNetworkProtocol::setUrl( TQUrlOperator *u )
bool TQNetworkProtocol::checkConnection( TQNetworkOperation * )
{
- return TRUE;
+ return true;
}
/*!
@@ -554,7 +554,7 @@ void TQNetworkProtocol::addOperation( TQNetworkOperation *op )
#endif
d->operationQueue.enqueue( op );
if ( !d->opInProgress )
- d->opStartTimer->start( 0, TRUE );
+ d->opStartTimer->start( 0, true );
}
/*!
@@ -620,21 +620,21 @@ TQNetworkProtocol *TQNetworkProtocol::getNetworkProtocol( const TQString &protoc
}
/*!
- Returns TRUE if the only protocol registered is for working on the
- local filesystem; returns FALSE if other network protocols are
+ Returns true if the only protocol registered is for working on the
+ local filesystem; returns false if other network protocols are
also registered.
*/
bool TQNetworkProtocol::hasOnlyLocalFileSystem()
{
if ( !tqNetworkProtocolRegister )
- return FALSE;
+ return false;
TQDictIterator< TQNetworkProtocolFactoryBase > it( *tqNetworkProtocolRegister );
for ( ; it.current(); ++it )
if ( it.currentKey() != "file" )
- return FALSE;
- return TRUE;
+ return false;
+ return true;
}
/*!
@@ -846,7 +846,7 @@ void TQNetworkProtocol::processNextOperation( TQNetworkOperation *old )
if ( d->operationQueue.isEmpty() ) {
d->opInProgress = 0;
if ( d->autoDelete )
- d->removeTimer->start( d->removeInterval, TRUE );
+ d->removeTimer->start( d->removeInterval, true );
return;
}
@@ -856,7 +856,7 @@ void TQNetworkProtocol::processNextOperation( TQNetworkOperation *old )
if ( !checkConnection( op ) ) {
if ( op->state() != TQNetworkProtocol::StFailed ) {
- d->opStartTimer->start( 0, TRUE );
+ d->opStartTimer->start( 0, true );
} else {
d->operationQueue.dequeue();
clearOperationQueue();
@@ -897,7 +897,7 @@ TQNetworkOperation *TQNetworkProtocol::operationInProgress() const
void TQNetworkProtocol::clearOperationQueue()
{
d->operationQueue.dequeue();
- d->operationQueue.setAutoDelete( TRUE );
+ d->operationQueue.setAutoDelete( true );
d->operationQueue.clear();
}
@@ -922,10 +922,10 @@ void TQNetworkProtocol::stop()
/*!
Because it's sometimes hard to take care of removing network
protocol instances, TQNetworkProtocol provides an auto-delete
- mechanism. If you set \a b to TRUE, the network protocol instance
+ mechanism. If you set \a b to true, the network protocol instance
is removed after it has been inactive for \a i milliseconds (i.e.
\a i milliseconds after the last operation has been processed).
- If you set \a b to FALSE the auto-delete mechanism is switched
+ If you set \a b to false the auto-delete mechanism is switched
off.
If you switch on auto-delete, the TQNetworkProtocol also deletes
@@ -939,7 +939,7 @@ void TQNetworkProtocol::setAutoDelete( bool b, int i )
}
/*!
- Returns TRUE if auto-deleting is enabled; otherwise returns FALSE.
+ Returns true if auto-deleting is enabled; otherwise returns false.
\sa TQNetworkProtocol::setAutoDelete()
*/