kopete/libkopete
kopetepropertycontainer.cpp
Go to the documentation of this file.
56 QString key = QString::fromLatin1("prop_%1_%2").arg(QString::fromLatin1(val.typeName()), it.key());
bool canConvert(Type t) const
void propertyChanged(Kopete::PropertyContainer *container, const QString &key, const QVariant &oldValue, const QVariant &newValue)
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
const_iterator constBegin() const
const Kopete::Property & property(const QString &key) const
Get the value of a property with key "key".
Definition: kopetepropertycontainer.cpp:111
T value() const
const PropertyTmpl & tmpl(const QString &key) const
Return a template with defined by key, if no such template has been registered PropertyTmpl::null wil...
Definition: kopeteglobal.cpp:89
Definition: kopeteproperty.h:41
int count(const T &value) const
bool isNull() const
Type nameToType(const char *name)
bool isEmpty() const
const_iterator constEnd() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
bool hasProperty(const QString &key) const
Check for existence of a certain property stored using "key".
Definition: kopetepropertycontainer.cpp:106
void deserializeProperties(const QMap< QString, QString > &serializedData)
Deserialize the contacts persistent properties.
Definition: kopetepropertycontainer.cpp:63
bool isNull() const
Returns true if this object is an empty template.
Definition: kopeteproperty.cpp:172
void serializeProperties(QMap< QString, QString > &serializedData) const
Serialize the persistent properties for storage in the contact list.
Definition: kopetepropertycontainer.cpp:46
void removeProperty(const Kopete::PropertyTmpl &tmpl)
Remove a property if it exists.
Definition: kopetepropertycontainer.cpp:158
QStringList properties() const
Definition: kopetepropertycontainer.cpp:101
const Key key(const T &value) const
PropertyContainer(QObject *parent=0)
A container for properties.
Definition: kopetepropertycontainer.cpp:36
QByteArray toLatin1() const
Definition: kopeteproperty.h:150
const char * typeName() const
void setProperty(const Kopete::PropertyTmpl &tmpl, const QVariant &value)
Add or Set a property for this contact.
Definition: kopetepropertycontainer.cpp:129
QString fromLatin1(const char *str, int size)
virtual ~PropertyContainer()
Definition: kopetepropertycontainer.cpp:41
typedef ConstIterator
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
const T value(const Key &key) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.