summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqurloperator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqurloperator.cpp')
-rw-r--r--src/kernel/tqurloperator.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/src/kernel/tqurloperator.cpp b/src/kernel/tqurloperator.cpp
index d8567e467..2cb656aa2 100644
--- a/src/kernel/tqurloperator.cpp
+++ b/src/kernel/tqurloperator.cpp
@@ -56,7 +56,7 @@ class TQUrlOperatorPrivate
public:
TQUrlOperatorPrivate()
{
- oldOps.setAutoDelete( FALSE );
+ oldOps.setAutoDelete( false );
networkProtocol = 0;
nameFilter = "*";
currPut = 0;
@@ -539,10 +539,10 @@ const TQNetworkOperation *TQUrlOperator::rename( const TQString &oldname, const
}
/*!
- Copies the file \a from to \a to. If \a move is TRUE, the file is
+ Copies the file \a from to \a to. If \a move is true, the file is
moved (copied and removed). \a from must point to a file and \a to
must point to a directory (into which \a from is copied) unless \a
- toPath is set to FALSE. If \a toPath is set to FALSE then the \a
+ toPath is set to false. If \a toPath is set to false then the \a
to variable is assumed to be the absolute file path (destination
file path + file name). The copying is done using the get() and
put() operations. If you want to be notified about the progress of
@@ -574,7 +574,7 @@ TQPtrList<TQNetworkOperation> TQUrlOperator::copy( const TQString &from, const T
#endif
TQPtrList<TQNetworkOperation> ops;
- ops.setAutoDelete( FALSE );
+ ops.setAutoDelete( false );
TQUrlOperator *uFrom = new TQUrlOperator( *this, from );
TQUrlOperator *uTo = new TQUrlOperator( to );
@@ -635,13 +635,13 @@ TQPtrList<TQNetworkOperation> TQUrlOperator::copy( const TQString &from, const T
d->getOpPutOpMap.insert( (void*)opGet, opPut );
if ( move && (gProt->supportedOperations()&TQNetworkProtocol::OpRemove) ) {
- gProt->setAutoDelete( FALSE );
+ gProt->setAutoDelete( false );
TQNetworkOperation *opRm = new TQNetworkOperation( TQNetworkProtocol::OpRemove, frm, TQString::null, TQString::null );
ops.append( opRm );
d->getOpRemoveOpMap.insert( (void*)opGet, opRm );
} else {
- gProt->setAutoDelete( TRUE );
+ gProt->setAutoDelete( true );
}
#ifdef TQURLOPERATOR_DEBUG
tqDebug( "TQUrlOperator: copy operation should start now..." );
@@ -674,7 +674,7 @@ TQPtrList<TQNetworkOperation> TQUrlOperator::copy( const TQString &from, const T
/*!
\overload
- Copies the \a files to the directory \a dest. If \a move is TRUE
+ Copies the \a files to the directory \a dest. If \a move is true
the files are moved, not copied. \a dest must point to a
directory.
@@ -695,22 +695,22 @@ void TQUrlOperator::copy( const TQStringList &files, const TQString &dest,
}
/*!
- Returns TRUE if the URL is a directory; otherwise returns FALSE.
+ Returns true if the URL is a directory; otherwise returns false.
This may not always work correctly, if the protocol of the URL is
something other than file (local filesystem). If you pass a bool
- pointer as the \a ok argument, \a *ok is set to TRUE if the result
- of this function is known to be correct, and to FALSE otherwise.
+ pointer as the \a ok argument, \a *ok is set to true if the result
+ of this function is known to be correct, and to false otherwise.
*/
bool TQUrlOperator::isDir( bool *ok )
{
if ( ok )
- *ok = TRUE;
+ *ok = true;
if ( isLocalFile() ) {
if ( TQFileInfo( path() ).isDir() )
- return TRUE;
+ return true;
else
- return FALSE;
+ return false;
}
if ( d->entryMap.contains( "." ) ) {
@@ -718,8 +718,8 @@ bool TQUrlOperator::isDir( bool *ok )
}
// #### can assume that we are a directory?
if ( ok )
- *ok = FALSE;
- return TRUE;
+ *ok = false;
+ return true;
}
/*!
@@ -907,14 +907,14 @@ TQUrlInfo TQUrlOperator::info( const TQString &entry ) const
// return a faked TQUrlInfo
TQUrlInfo inf;
inf.setName( entry );
- inf.setDir( TRUE );
- inf.setFile( FALSE );
- inf.setSymLink( FALSE );
+ inf.setDir( true );
+ inf.setFile( false );
+ inf.setSymLink( false );
inf.setOwner( tr( "(unknown)" ) );
inf.setGroup( tr( "(unknown)" ) );
inf.setSize( 0 );
- inf.setWritable( FALSE );
- inf.setReadable( TRUE );
+ inf.setWritable( false );
+ inf.setReadable( true );
return inf;
}
return TQUrlInfo();
@@ -1005,7 +1005,7 @@ TQUrlOperator& TQUrlOperator::operator=( const TQUrlOperator &url )
*d = *url.d;
- d->oldOps.setAutoDelete( FALSE );
+ d->oldOps.setAutoDelete( false );
d->getOpPutOpMap = getOpPutOpMap;
d->getOpPutProtMap = getOpPutProtMap;
d->getOpGetProtMap = getOpGetProtMap;
@@ -1024,7 +1024,7 @@ TQUrlOperator& TQUrlOperator::operator=( const TQString &url )
{
deleteNetworkProtocol();
TQUrl::operator=( url );
- d->oldOps.setAutoDelete( FALSE );
+ d->oldOps.setAutoDelete( false );
getNetworkProtocol();
return *this;
}
@@ -1050,9 +1050,9 @@ bool TQUrlOperator::checkValid()
// ######
if ( !isValid() ) {
//emit error( ErrValid, tr( "The entered URL is not valid!" ) );
- return FALSE;
+ return false;
} else
- return TRUE;
+ return true;
}
@@ -1102,7 +1102,7 @@ void TQUrlOperator::continueCopy( TQNetworkOperation *op )
d->getOpPutProtMap.take( op );
d->getOpRemoveOpMap.take( op );
if ( pProt )
- pProt->setAutoDelete( TRUE );
+ pProt->setAutoDelete( true );
if ( put && pProt ) {
if ( op->state() != TQNetworkProtocol::StFailed ) {
pProt->addOperation( put );
@@ -1112,7 +1112,7 @@ void TQUrlOperator::continueCopy( TQNetworkOperation *op )
}
}
if ( gProt ) {
- gProt->setAutoDelete( TRUE );
+ gProt->setAutoDelete( true );
}
if ( rm && gProt ) {
if ( op->state() != TQNetworkProtocol::StFailed ) {
@@ -1155,8 +1155,8 @@ void TQUrlOperator::stop()
{
d->getOpPutOpMap.clear();
d->getOpRemoveOpMap.clear();
- d->getOpGetProtMap.setAutoDelete( TRUE );
- d->getOpPutProtMap.setAutoDelete( TRUE );
+ d->getOpGetProtMap.setAutoDelete( true );
+ d->getOpPutProtMap.setAutoDelete( true );
TQPtrDictIterator<TQNetworkProtocol> it( d->getOpPutProtMap );
for ( ; it.current(); ++it )
it.current()->stop();