45 #include <QtCore/qdatetime.h> 46 #include <QtCore/qstring.h> 47 #include <QtCore/qiodevice.h> 64 ReadOwner = 00400, WriteOwner = 00200, ExeOwner = 00100,
65 ReadGroup = 00040, WriteGroup = 00020, ExeGroup = 00010,
66 ReadOther = 00004, WriteOther = 00002, ExeOther = 00001 };
72 const QDateTime &lastRead,
bool isDir,
bool isFile,
bool isSymLink,
73 bool isWritable,
bool isReadable,
bool isExecutable);
76 const QDateTime &lastRead,
bool isDir,
bool isFile,
bool isSymLink,
77 bool isWritable,
bool isReadable,
bool isExecutable);
82 virtual void setDir(
bool b);
83 virtual void setFile(
bool b);
84 virtual void setSymLink(
bool b);
85 virtual void setOwner(
const QString &s);
86 virtual void setGroup(
const QString &s);
87 virtual void setSize(
qint64 size);
88 virtual void setWritable(
bool b);
89 virtual void setReadable(
bool b);
90 virtual void setPermissions(
int p);
91 virtual void setLastModified(
const QDateTime &dt);
97 int permissions()
const;
105 bool isSymLink()
const;
106 bool isWritable()
const;
107 bool isReadable()
const;
108 bool isExecutable()
const;
125 #endif // QT_NO_URLINFO
#define QT_END_NAMESPACE
This macro expands to.
static bool greaterThan(const QString &s1, const QString &s2)
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
The QUrlInfo class stores information about URLs.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool lessThan(const QChar *a, int l, const char *c)
bool operator!=(const QUrlInfo &i) const
Returns true if this QUrlInfo is not equal to other; otherwise returns false.
The QDateTime class provides date and time functions.
PermissionSpec
This enum is used by the permissions() function to report the permissions of a file.
bool operator==(QBool b1, bool b2)
static bool equal(const QChar *a, int l, const char *b)