411 d->lastModified = dt;
486 return d->permissions;
538 return d->lastModified;
603 return d->isWritable;
616 return d->isReadable;
629 return d->isExecutable;
701 return (
d->name == other.
d->
name &&
705 d->size == other.
d->
size &&
743 #endif // QT_NO_URLINFO virtual void setSize(qint64 size)
Specifies the size of the URL.
virtual void setFile(bool b)
If b is true then the URL is set to be a file; if is false then the URL is set not to be a file (whic...
QString owner() const
Returns the owner of the URL.
bool isFile() const
Returns true if the URL is a file; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
bool isExecutable() const
Returns true if the URL is executable; otherwise returns false.
bool isReadable() const
Returns true if the URL is readable; otherwise returns false.
static bool greaterThan(const QString &s1, const QString &s2)
bool isWritable() const
Returns true if the URL is writable; otherwise returns false.
virtual void setGroup(const QString &s)
Specifies that the owning group of the URL is called s.
bool isSymLink() const
Returns true if the URL is a symbolic link; otherwise returns false.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
virtual void setDir(bool b)
If 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 dir...
QDateTime lastModified() const
Returns the last modification date of the URL.
virtual void setOwner(const QString &s)
Specifies that the owner of the URL is called s.
QString path() const
Returns the path of the URL.
The QUrlInfo class stores information about URLs.
virtual void setName(const QString &name)
Sets the name of the URL to name.
virtual void setPermissions(int p)
Specifies that the URL has access permissions p.
QString name() const
Returns the file name of the URL.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool equal(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)
Returns true if i1 equals to i2; otherwise returns false.
QString group() const
Returns the group of the URL.
static bool greaterThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)
Returns true if i1 is greater than i2; otherwise returns false.
bool operator==(const QUrlInfo &i) const
Returns true if this QUrlInfo is equal to other; otherwise returns false.
static bool lessThan(const QUrlInfo &i1, const QUrlInfo &i2, int sortBy)
Returns true if i1 is less than i2; otherwise returns false.
bool isDir() const
Returns true if the URL is a directory; otherwise returns false.
QDateTime lastRead() const
Returns the date when the URL was last read.
The QDateTime class provides date and time functions.
virtual ~QUrlInfo()
Destroys the URL info object.
void setLastRead(const QDateTime &dt)
Specifies that the object the URL refers to was last read at dt.
virtual void setSymLink(bool b)
Specifies that the URL refers to a symbolic link if b is true and that it does not if b is false...
QUrlInfo & operator=(const QUrlInfo &ui)
Assigns the values of ui to this QUrlInfo object.
int permissions() const
Returns the permissions of the URL.
virtual void setWritable(bool b)
Specifies that the URL is writable if b is true and not writable if b is false.
virtual void setLastModified(const QDateTime &dt)
Specifies that the object the URL refers to was last modified at dt.
virtual void setReadable(bool b)
Specifies that the URL is readable if b is true and not readable if b is false.
The QFileInfo class provides system-independent file information.
bool isValid() const
Returns true if the URL info is valid; otherwise returns false.
qint64 size() const
Returns the size of the URL.
static QString fileName(const QString &fileUrl)
QUrlInfo()
Constructs an invalid QUrlInfo object with default values.