KContacts
contactgroup.cpp
118class Q_DECL_HIDDEN ContactGroup::ContactGroupReference::ContactGroupReferencePrivate : public QSharedData
294 , mIdentifier(QUuid::createUuid().toString().mid(1, 36)) // We avoid the curly braces so the string is RFC4122 compliant and can be used as urn
This class represents a contact group reference.
Definition contactgroup.h:147
QString custom(const QString &key) const
Returns the value for the given key, or an empty string if the entry for that key does not exists.
Definition contactgroup.cpp:177
QString uid() const
Returns the contact group uid of the contact group reference.
Definition contactgroup.cpp:162
void setUid(const QString &uid)
Sets the contact group uid of the contact group reference.
Definition contactgroup.cpp:157
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition contactgroup.cpp:167
ContactGroupReference & operator=(const ContactGroupReference &other)
Definition contactgroup.cpp:182
bool operator==(const ContactGroupReference &other) const
Definition contactgroup.cpp:191
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition contactgroup.cpp:172
This class represents a contact reference.
Definition contactgroup.h:40
QString custom(const QString &key) const
Returns the value for the given key, or an empty string if the entry for that key does not exists.
Definition contactgroup.cpp:99
void setPreferredEmail(const QString &email)
Sets the preferred email address.
Definition contactgroup.cpp:79
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition contactgroup.cpp:89
bool operator==(const ContactReference &other) const
Definition contactgroup.cpp:113
ContactReference & operator=(const ContactReference &other)
Definition contactgroup.cpp:104
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition contactgroup.cpp:94
void setGid(const QString &gid)
Sets the contact gid of the contact reference.
Definition contactgroup.cpp:69
void setUid(const QString &uid)
Sets the contact uid of the contact reference.
Definition contactgroup.cpp:59
QString preferredEmail() const
Returns the preferred email address, or an empty string if no preferred email address is set.
Definition contactgroup.cpp:84
This class represents a contact data object.
Definition contactgroup.h:224
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition contactgroup.cpp:263
QString custom(const QString &key) const
Returns the value for the given key, or an empty string if the entry for that key does not exists.
Definition contactgroup.cpp:268
bool operator==(const Data &other) const
Definition contactgroup.cpp:282
Data & operator=(const Data &other)
Definition contactgroup.cpp:273
void setName(const QString &name)
Sets the name of the contact data object.
Definition contactgroup.cpp:238
void setEmail(const QString &email)
Sets the email address of the contact data object.
Definition contactgroup.cpp:248
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition contactgroup.cpp:258
QString email() const
Returns the email address of the contact data object.
Definition contactgroup.cpp:253
void append(const ContactReference &reference)
Appends a new contact reference to the contact group.
Definition contactgroup.cpp:417
ContactGroupReference & contactGroupReference(int index)
Returns the contact group reference at the given index.
Definition contactgroup.cpp:389
void setName(const QString &name)
Sets the i18n'd name of the contact group.
Definition contactgroup.cpp:335
static QString mimeType()
Returns the MIME type used for Contact Groups.
Definition contactgroup.cpp:480
void removeAllContactGroupReferences()
Removes all contact group references from the contact group.
Definition contactgroup.cpp:452
int contactReferenceCount() const
Returns the number of contact references in this group.
Definition contactgroup.cpp:360
Data & data(int index)
Returns the contact data object at the given index.
Definition contactgroup.cpp:403
int contactGroupReferenceCount() const
Returns the number of group references in this group.
Definition contactgroup.cpp:365
void remove(const ContactReference &reference)
Removes the given contact reference from the contact group.
Definition contactgroup.cpp:432
void removeAllContactReferences()
Removes all contact references from the contact group.
Definition contactgroup.cpp:447
void removeAllContactData()
Removes all contact data from the contact group.
Definition contactgroup.cpp:457
void setId(const QString &id)
Sets the unique id of the contact group.
Definition contactgroup.cpp:345
bool operator==(const ContactGroup &other) const
Definition contactgroup.cpp:471
ContactReference & contactReference(int index)
Returns the contact reference at the given index.
Definition contactgroup.cpp:375
ContactGroup & operator=(const ContactGroup &other)
Definition contactgroup.cpp:462
int dataCount() const
Returns the number of contact data objects in this group.
Definition contactgroup.cpp:370
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:56:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.