summaryrefslogtreecommitdiffstats
path: root/src/kernel/tqurlinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/tqurlinfo.cpp')
-rw-r--r--src/kernel/tqurlinfo.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/kernel/tqurlinfo.cpp b/src/kernel/tqurlinfo.cpp
index 5f1c9e519..4beca83bf 100644
--- a/src/kernel/tqurlinfo.cpp
+++ b/src/kernel/tqurlinfo.cpp
@@ -52,12 +52,12 @@ public:
TQUrlInfoPrivate() :
permissions(0),
size(0),
- isDir(FALSE),
- isFile(TRUE),
- isSymLink(FALSE),
- isWritable(TRUE),
- isReadable(TRUE),
- isExecutable(FALSE)
+ isDir(false),
+ isFile(true),
+ isSymLink(false),
+ isWritable(true),
+ isReadable(true),
+ isExecutable(false)
{}
TQString name;
@@ -134,7 +134,7 @@ TQUrlInfo::TQUrlInfo()
file in the TQUrlOperator \a path.
If the information is not found, this constructor creates an
- invalid TQUrlInfo, i.e. isValid() returns FALSE. You should always
+ invalid TQUrlInfo, i.e. isValid() returns false. You should always
check if the URL info is valid before relying on the return values
of any getter functions.
@@ -260,8 +260,8 @@ void TQUrlInfo::setName( const TQString &name )
/*!
- If \a b is TRUE then the URL is set to be a directory; if \b is
- FALSE then the URL is set not to be a directory (which normally
+ If \a b is true then the URL is set to be a directory; if \b is
+ false then the URL is set not to be a directory (which normally
means it is a file). (Note that a URL can refer to both a file and
a directory even though most file systems do not support this.)
@@ -280,7 +280,7 @@ void TQUrlInfo::setDir( bool b )
/*!
- If \a b is TRUE then the URL is set to be a file; if \b is FALSE
+ If \a b is true then the URL is set to be a file; if \b is false
then the URL is set not to be a file (which normally means it is a
directory). (Note that a URL can refer to both a file and a
directory even though most file systems do not support this.)
@@ -300,8 +300,8 @@ void TQUrlInfo::setFile( bool b )
/*!
- Specifies that the URL refers to a symbolic link if \a b is TRUE
- and that it does not if \a b is FALSE.
+ Specifies that the URL refers to a symbolic link if \a b is true
+ and that it does not if \a b is false.
If you call this function for an invalid URL info, this function
turns it into a valid one.
@@ -318,8 +318,8 @@ void TQUrlInfo::setSymLink( bool b )
/*!
- Specifies that the URL is writable if \a b is TRUE and not
- writable if \a b is FALSE.
+ Specifies that the URL is writable if \a b is true and not
+ writable if \a b is false.
If you call this function for an invalid URL info, this function
turns it into a valid one.
@@ -336,8 +336,8 @@ void TQUrlInfo::setWritable( bool b )
/*!
- Specifies that the URL is readable if \a b is TRUE and not
- readable if \a b is FALSE.
+ Specifies that the URL is readable if \a b is true and not
+ readable if \a b is false.
If you call this function for an invalid URL info, this function
turns it into a valid one.
@@ -562,7 +562,7 @@ TQDateTime TQUrlInfo::lastRead() const
}
/*!
- Returns TRUE if the URL is a directory; otherwise returns FALSE.
+ Returns true if the URL is a directory; otherwise returns false.
\sa isValid()
*/
@@ -570,12 +570,12 @@ TQDateTime TQUrlInfo::lastRead() const
bool TQUrlInfo::isDir() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isDir;
}
/*!
- Returns TRUE if the URL is a file; otherwise returns FALSE.
+ Returns true if the URL is a file; otherwise returns false.
\sa isValid()
*/
@@ -583,12 +583,12 @@ bool TQUrlInfo::isDir() const
bool TQUrlInfo::isFile() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isFile;
}
/*!
- Returns TRUE if the URL is a symbolic link; otherwise returns FALSE.
+ Returns true if the URL is a symbolic link; otherwise returns false.
\sa isValid()
*/
@@ -596,12 +596,12 @@ bool TQUrlInfo::isFile() const
bool TQUrlInfo::isSymLink() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isSymLink;
}
/*!
- Returns TRUE if the URL is writable; otherwise returns FALSE.
+ Returns true if the URL is writable; otherwise returns false.
\sa isValid()
*/
@@ -609,12 +609,12 @@ bool TQUrlInfo::isSymLink() const
bool TQUrlInfo::isWritable() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isWritable;
}
/*!
- Returns TRUE if the URL is readable; otherwise returns FALSE.
+ Returns true if the URL is readable; otherwise returns false.
\sa isValid()
*/
@@ -622,12 +622,12 @@ bool TQUrlInfo::isWritable() const
bool TQUrlInfo::isReadable() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isReadable;
}
/*!
- Returns TRUE if the URL is executable; otherwise returns FALSE.
+ Returns true if the URL is executable; otherwise returns false.
\sa isValid()
*/
@@ -635,13 +635,13 @@ bool TQUrlInfo::isReadable() const
bool TQUrlInfo::isExecutable() const
{
if ( !d )
- return FALSE;
+ return false;
return d->isExecutable;
}
/*!
- Returns TRUE if \a i1 is greater than \a i2; otherwise returns
- FALSE. The objects are compared by the value, which is specified
+ Returns true if \a i1 is greater than \a i2; otherwise returns
+ false. The objects are compared by the value, which is specified
by \a sortBy. This must be one of TQDir::Name, TQDir::Time or
TQDir::Size.
*/
@@ -657,12 +657,12 @@ bool TQUrlInfo::greaterThan( const TQUrlInfo &i1, const TQUrlInfo &i2,
case TQDir::Size:
return i1.size() > i2.size();
default:
- return FALSE;
+ return false;
}
}
/*!
- Returns TRUE if \a i1 is less than \a i2; otherwise returns FALSE.
+ Returns true if \a i1 is less than \a i2; otherwise returns false.
The objects are compared by the value, which is specified by \a
sortBy. This must be one of TQDir::Name, TQDir::Time or TQDir::Size.
*/
@@ -674,7 +674,7 @@ bool TQUrlInfo::lessThan( const TQUrlInfo &i1, const TQUrlInfo &i2,
}
/*!
- Returns TRUE if \a i1 equals to \a i2; otherwise returns FALSE.
+ Returns true if \a i1 equals to \a i2; otherwise returns false.
The objects are compared by the value, which is specified by \a
sortBy. This must be one of TQDir::Name, TQDir::Time or TQDir::Size.
*/
@@ -690,13 +690,13 @@ bool TQUrlInfo::equal( const TQUrlInfo &i1, const TQUrlInfo &i2,
case TQDir::Size:
return i1.size() == i2.size();
default:
- return FALSE;
+ return false;
}
}
/*!
- Compares this TQUrlInfo with \a i and returns TRUE if they are
- equal; otherwise returns FALSE.
+ Compares this TQUrlInfo with \a i and returns true if they are
+ equal; otherwise returns false.
*/
bool TQUrlInfo::operator==( const TQUrlInfo &i ) const
@@ -704,7 +704,7 @@ bool TQUrlInfo::operator==( const TQUrlInfo &i ) const
if ( !d )
return i.d == 0;
if ( !i.d )
- return FALSE;
+ return false;
return ( d->name == i.d->name &&
d->permissions == i.d->permissions &&
@@ -722,7 +722,7 @@ bool TQUrlInfo::operator==( const TQUrlInfo &i ) const
}
/*!
- Returns TRUE if the URL info is valid; otherwise returns FALSE.
+ Returns true if the URL info is valid; otherwise returns false.
Valid means that the TQUrlInfo contains real information. For
example, a call to TQUrlOperator::info() might return a an invalid
TQUrlInfo, if no information about the requested entry is