495 if (tokens.
size() != 8)
503 }
else if (first ==
'-') {
507 }
else if (first ==
'l') {
534 dateString[0] = dateString[0].
toUpper();
539 #ifndef QT_NO_DATESTRING 542 }
while (n < formats.
size() && (!dateTime.
isValid()));
545 if (n == 2 || n == 4) {
593 bool isOwner = info->
owner() == userName;
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.
qlonglong toLongLong(bool *ok=0, int base=10) const
Returns the string converted to a long long using base base, which is 10 by default and must be betwe...
const QChar at(int i) const
Returns the character at the given index position in the string.
QDateTime toDateTime(const QString &string, FormatType format=LongFormat) const
Parses the date/time string given in string and returns the time.
QString toUpper() const Q_REQUIRED_RESULT
Returns an uppercase copy of the string.
virtual void setGroup(const QString &s)
Specifies that the owning group of the URL is called s.
int month() const
Returns the number corresponding to the month of this date, using the following convention: ...
bool startsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string starts with s; otherwise returns false.
int day() const
Returns the day of the month (1 to 31) of this date.
bool isValid() const
Returns true if both the date and the time are valid; otherwise returns false.
bool isSymLink() const
Returns true if the URL is a symbolic link; otherwise returns false.
The QDate class provides date functions.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
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...
virtual void setOwner(const QString &s)
Specifies that the owner of the URL is called s.
static bool isLeapYear(int year)
Returns true if the specified year is a leap year; otherwise returns false.
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.
void setDate(const QDate &date)
Sets the date part of this datetime to date.
static QDate currentDate()
Returns the current date, as reported by the system clock.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
void resize(int size)
Sets the size of the string to size characters.
QDate date() const
Returns the date part of the datetime.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
static void _q_fixupDateTime(QDateTime *dateTime, bool leapYear=false)
static QLocale c()
Returns a QLocale object initialized to the "C" locale.
The QDateTime class provides date and time functions.
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...
int size() const
Returns the number of items in the list.
char toLatin1() const
Returns the Latin-1 character equivalent to the QChar, or 0.
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.
int year() const
Returns the year of this date.
virtual void setReadable(bool b)
Specifies that the URL is readable if b is true and not readable if b is false.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.