This class is just a container for storing information about URLs, which is why all information must be passed in the constructor.
.PP
Unless you're reimplementing a network protocol you're unlikely to create QUrlInfo objects yourself, but you may receive QUrlInfo objects from functions, e.g. QUrlOperator::info().
.PP
The information that can be retrieved includes name(), permissions(), owner(), group(), size(), lastModified(), lastRead(), isDir(), isFile(), isSymLink(), isWritable(), isReadable() and isExecutable().
.PP
See also Input/Output and Networking and Miscellaneous Classes.
.SS "Member Type Documentation"
.SH "QUrlInfo::PermissionSpec"
This enum is used by the permissions() function to report the permissions of a file.
.TP
\fCQUrlInfo::ReadOwner\fR - The file is readable by the owner of the file.
.TP
\fCQUrlInfo::WriteOwner\fR - The file is writable by the owner of the file.
.TP
\fCQUrlInfo::ExeOwner\fR - The file is executable by the owner of the file.
.TP
\fCQUrlInfo::ReadGroup\fR - The file is readable by the group.
.TP
\fCQUrlInfo::WriteGroup\fR - The file is writable by the group.
.TP
\fCQUrlInfo::ExeGroup\fR - The file is executable by the group.
.TP
\fCQUrlInfo::ReadOther\fR - The file is readable by anyone.
.TP
\fCQUrlInfo::WriteOther\fR - The file is writable by anyone.
.TP
\fCQUrlInfo::ExeOther\fR - The file is executable by anyone.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QUrlInfo::QUrlInfo ()"
Constructs an invalid QUrlInfo object with default values.
Constructs a QUrlInfo object with information about the file \fIfile\fR in the \fIpath\fR. It tries to find the information about the \fIfile\fR in the QUrlOperator \fIpath\fR.
.PP
If the information is not found, this constructor creates an invalid QUrlInfo, 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.
.PP
If \fIfile\fR is empty, it defaults to the QUrlOperator \fIpath\fR, i.e. to the directory.
.PP
See also isValid() and QUrlOperator::info().
.SH "QUrlInfo::QUrlInfo ( const QUrlInfo & ui )"
Copy constructor, copies \fIui\fR to this URL info object.
Constructs a QUrlInfo object by specifying all the URL's information.
.PP
The information that is passed is the \fIname\fR, file \fIpermissions\fR, \fIowner\fR and \fIgroup\fR and the file's \fIsize\fR. Also passed is the \fIlastModified\fR date/time and the \fIlastRead\fR date/time. Flags are also passed, specifically, \fIisDir\fR, \fIisFile\fR, \fIisSymLink\fR, \fIisWritable\fR, \fIisReadable\fR and \fIisExecutable\fR.
Constructs a QUrlInfo object by specifying all the URL's information.
.PP
The information that is passed is the \fIurl\fR, file \fIpermissions\fR, \fIowner\fR and \fIgroup\fR and the file's \fIsize\fR. Also passed is the \fIlastModified\fR date/time and the \fIlastRead\fR date/time. Flags are also passed, specifically, \fIisDir\fR, \fIisFile\fR, \fIisSymLink\fR, \fIisWritable\fR, \fIisReadable\fR and \fIisExecutable\fR.
.SH "QUrlInfo::~QUrlInfo ()\fC [virtual]\fR"
Destroys the URL info object.
.PP
The QUrlOperator object to which this URL referred (if any) is not affected.
Returns TRUE if \fIi1\fR equals to \fIi2\fR; otherwise returns FALSE. The objects are compared by the value, which is specified by \fIsortBy\fR. This must be one of QDir::Name, QDir::Time or QDir::Size.
Returns TRUE if \fIi1\fR is greater than \fIi2\fR; otherwise returns FALSE. The objects are compared by the value, which is specified by \fIsortBy\fR. This must be one of QDir::Name, QDir::Time or QDir::Size.
.SH "QString QUrlInfo::group () const"
Returns the group of the URL.
.PP
See also isValid().
.SH "bool QUrlInfo::isDir () const"
Returns TRUE if the URL is a directory; otherwise returns FALSE.
.PP
See also isValid().
.PP
Examples:
.)l network/ftpclient/ftpmainwindow.ui.h and network/networkprotocol/nntp.cpp.
.SH "bool QUrlInfo::isExecutable () const"
Returns TRUE if the URL is executable; otherwise returns FALSE.
.PP
See also isValid().
.SH "bool QUrlInfo::isFile () const"
Returns TRUE if the URL is a file; otherwise returns FALSE.
.PP
See also isValid().
.SH "bool QUrlInfo::isReadable () const"
Returns TRUE if the URL is readable; otherwise returns FALSE.
.PP
See also isValid().
.SH "bool QUrlInfo::isSymLink () const"
Returns TRUE if the URL is a symbolic link; otherwise returns FALSE.
.PP
See also isValid().
.SH "bool QUrlInfo::isValid () const"
Returns TRUE if the URL info is valid; otherwise returns FALSE. Valid means that the QUrlInfo contains real information. For example, a call to QUrlOperator::info() might return a an invalid QUrlInfo, if no information about the requested entry is available.
.PP
You should always check if the URL info is valid before relying on the values.
.SH "bool QUrlInfo::isWritable () const"
Returns TRUE if the URL is writable; otherwise returns FALSE.
Returns TRUE if \fIi1\fR is less than \fIi2\fR; otherwise returns FALSE. The objects are compared by the value, which is specified by \fIsortBy\fR. This must be one of QDir::Name, QDir::Time or QDir::Size.
Assigns the values of \fIui\fR to this QUrlInfo object.
.SH "bool QUrlInfo::operator== ( const QUrlInfo & i ) const"
Compares this QUrlInfo with \fIi\fR and returns TRUE if they are equal; otherwise returns FALSE.
.SH "QString QUrlInfo::owner () const"
Returns the owner of the URL.
.PP
See also isValid().
.SH "int QUrlInfo::permissions () const"
Returns the permissions of the URL. You can use the PermissionSpec flags to test for certain permissions.
.PP
See also isValid().
.SH "void QUrlInfo::setDir ( bool b )\fC [virtual]\fR"
If \fIb\fR 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.)
.PP
If you call this function for an invalid URL info, this function turns it into a valid one.
.PP
See also isValid().
.PP
Example: network/networkprotocol/nntp.cpp.
.SH "void QUrlInfo::setFile ( bool b )\fC [virtual]\fR"
If \fIb\fR 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.)
.PP
If you call this function for an invalid URL info, this function turns it into a valid one.
.PP
See also isValid().
.PP
Example: network/networkprotocol/nntp.cpp.
.SH "void QUrlInfo::setGroup ( const QString & s )\fC [virtual]\fR"
Specifies that the owning group of the URL is called \fIs\fR.
.PP
If you call this function for an invalid URL info, this function turns it into a valid one.