summaryrefslogtreecommitdiffstats
path: root/src/kernel/qurlinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/qurlinfo.cpp')
-rw-r--r--src/kernel/qurlinfo.cpp76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/kernel/qurlinfo.cpp b/src/kernel/qurlinfo.cpp
index 67c0f52a7..9e35517d0 100644
--- a/src/kernel/qurlinfo.cpp
+++ b/src/kernel/qurlinfo.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.
@@ -274,8 +274,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.)
@@ -294,7 +294,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.)
@@ -314,8 +314,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.
@@ -332,8 +332,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.
@@ -350,8 +350,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.
@@ -584,7 +584,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()
*/
@@ -592,12 +592,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()
*/
@@ -605,12 +605,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()
*/
@@ -618,12 +618,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()
*/
@@ -631,12 +631,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()
*/
@@ -644,12 +644,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()
*/
@@ -657,13 +657,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.
*/
@@ -679,12 +679,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.
*/
@@ -696,7 +696,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.
*/
@@ -712,13 +712,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
@@ -726,7 +726,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 &&
@@ -744,7 +744,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