KTnef
ktnefpropertyset.cpp
Go to the documentation of this file.
42void KTNEFPropertySet::addProperty(int key, int type, const QVariant &value, const QVariant &name, bool overwrite)
60 return upper ? KTNEFProperty::formatValue((*it)->value(), false).toUpper() : KTNEFProperty::formatValue((*it)->value(), false);
66QString KTNEFPropertySet::findNamedProp(const QString &name, const QString &fallback, bool upper) const
68 for (QMap<int, KTNEFProperty *>::Iterator it = d->properties_.begin(), protEnd = d->properties_.end(); it != protEnd; ++it) {
82 for (QList<QVariant>::ConstIterator lit = l.constBegin(), litEnd = l.constEnd(); lit != litEnd; ++lit) {
121 for (QMap<int, KTNEFProperty *>::ConstIterator it = d->properties_.constBegin(); it != d->properties_.constEnd(); ++it) {
124 for (QMap<int, KTNEFProperty *>::ConstIterator it = d->attributes_.constBegin(); it != d->attributes_.constEnd(); ++it) {
QMap< int, KTNEFProperty * > & properties()
Returns a QMap of all (key,MAPI) properties.
Definition ktnefpropertyset.cpp:98
QString findProp(int key, const QString &fallback=QString(), bool convertToUpper=false) const
Finds a property by key, returning a formatted value.
Definition ktnefpropertyset.cpp:56
QMap< int, KTNEFProperty * > & attributes()
Returns a QMap of all (key,TNEF) attributes.
Definition ktnefpropertyset.cpp:146
QString findNamedProp(const QString &name, const QString &fallback=QString(), bool convertToUpper=false) const
Finds a property by name, returning a formatted value.
Definition ktnefpropertyset.cpp:66
QVariant property(int key) const
Returns the property associated with the specified key.
Definition ktnefpropertyset.cpp:108
void addProperty(int key, int type, const QVariant &value, const QVariant &name=QVariant(), bool overwrite=false)
Adds a MAPI property.
Definition ktnefpropertyset.cpp:42
void addAttribute(int key, int type, const QVariant &value, bool overwrite=false)
Adds a TNEF attribute.
Definition ktnefpropertyset.cpp:132
QVariant attribute(int key) const
Returns the attribute associated with the specified key.
Definition ktnefpropertyset.cpp:156
static QString formatValue(const QVariant &v, bool beautify=true)
Creates a formatted string from the value of the property.
Definition ktnefproperty.cpp:80
This file is part of the API for handling TNEF data and defines the KTNEFProperty class.
This file is part of the API for handling TNEF data and defines the KTNEFPropertySet class.
ConstIterator
const_iterator constBegin() const const
const_iterator constEnd() const const
ConstIterator
Iterator
const_iterator constEnd() const const
QString
int id() const const
QString asprintf(const char *cformat,...)
void clear()
bool isEmpty() const const
QString toUpper() const const
void clear()
QMetaType metaType() const const
QList< QVariant > toList() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:13:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.