KFileMetaData
usermetadata.cpp
45 return setAttribute(QStringLiteral("xdg.tags"), !tags.empty() ? tags.join(QLatin1Char(',')) : QString());
63 return setAttribute(QStringLiteral("baloo.rating"), rating ? QString::number(rating) : QString());
83 return setAttribute(QStringLiteral("xdg.origin.url"), !originUrl.isEmpty() ? originUrl.toString(): QString());
181UserMetaData::Attributes UserMetaData::queryAttributes(UserMetaData::Attributes attributes) const
The UserMetaData class can be used to read and set user meta data of files.
Definition usermetadata.h:26
bool hasAttribute(const QString &name)
Definition usermetadata.cpp:150
Attributes queryAttributes(Attributes attributes=Attribute::Any) const
Query list of available attributes.
Definition usermetadata.cpp:181
@ NoSpace
There is insufficient space remaining to store the extended attribute.
Definition usermetadata.h:40
@ MissingPermission
Process doesn't have write permission to the file or the file is marked append-only.
Definition usermetadata.h:42
@ ValueTooBig
The value size exceeds the maximum size allowed per-value (64 kB for Linux VFS)
Definition usermetadata.h:44
@ NotSupported
Underlying filesystem does not provide extended attributes features.
Definition usermetadata.h:38
QString attribute(const QString &name)
Definition usermetadata.cpp:162
bool empty() const const
bool isEmpty() const const
QString number(double n, char format, int precision)
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
int toInt(bool *ok, int base) const const
QString join(QChar separator) const const
SkipEmptyParts
bool isEmpty() const const
QString toString(FormattingOptions options) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:54:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:54:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.