kabc
contactgroup.cpp
184void ContactGroup::ContactGroupReference::insertCustom( const QString &key, const QString &value )
313 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:161
QList< ContactGroupReference > List
A list of contact group references.
Definition: contactgroup.h:166
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:194
QString uid() const
Returns the contact group uid of the contact group reference.
Definition: contactgroup.cpp:179
void setUid(const QString &uid)
Sets the contact group uid of the contact group reference.
Definition: contactgroup.cpp:174
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition: contactgroup.cpp:184
ContactGroupReference & operator=(const ContactGroupReference &)
Definition: contactgroup.cpp:199
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition: contactgroup.cpp:189
bool operator==(const ContactGroupReference &) const
Definition: contactgroup.cpp:209
This class represents a contact reference.
Definition: contactgroup.h:54
bool operator==(const ContactReference &) const
Definition: contactgroup.cpp:128
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:113
void setPreferredEmail(const QString &email)
Sets the preferred email address.
Definition: contactgroup.cpp:93
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition: contactgroup.cpp:103
ContactReference & operator=(const ContactReference &)
Definition: contactgroup.cpp:118
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition: contactgroup.cpp:108
void setGid(const QString &gid)
Sets the contact gid of the contact reference.
Definition: contactgroup.cpp:83
void setUid(const QString &uid)
Sets the contact uid of the contact reference.
Definition: contactgroup.cpp:73
QString preferredEmail() const
Returns the preferred email address, or an empty string if no preferred email address is set.
Definition: contactgroup.cpp:98
void removeCustom(const QString &key)
Removes the custom entry with the given key.
Definition: contactgroup.cpp:282
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:287
bool operator==(const Data &) const
Definition: contactgroup.cpp:301
void setName(const QString &name)
Sets the name of the contact data object.
Definition: contactgroup.cpp:257
void setEmail(const QString &email)
Sets the email address of the contact data object.
Definition: contactgroup.cpp:267
void insertCustom(const QString &key, const QString &value)
Inserts a custom entry.
Definition: contactgroup.cpp:277
QString email() const
Returns the email address of the contact data object.
Definition: contactgroup.cpp:272
void append(const ContactReference &reference)
Appends a new contact reference to the contact group.
Definition: contactgroup.cpp:441
unsigned int count() const
Returns the number of contacts in this group.
Definition: contactgroup.cpp:374
unsigned int contactGroupReferenceCount() const
Returns the number of group references in this group.
Definition: contactgroup.cpp:384
void setName(const QString &name)
Sets the i18n'd name of the contact group.
Definition: contactgroup.cpp:354
ContactReference & contactReference(unsigned int index)
Returns the contact reference at the given index.
Definition: contactgroup.cpp:394
static QString mimeType()
Returns the MIME type used for Contact Groups.
Definition: contactgroup.cpp:504
void removeAllContactGroupReferences()
Removes all contact group references from the contact group.
Definition: contactgroup.cpp:476
void remove(const ContactReference &reference)
Removes the given contact reference from the contact group.
Definition: contactgroup.cpp:456
unsigned int contactReferenceCount() const
Returns the number of contact references in this group.
Definition: contactgroup.cpp:379
void removeAllContactReferences()
Removes all contact references from the contact group.
Definition: contactgroup.cpp:471
ContactGroupReference & contactGroupReference(unsigned int index)
Returns the contact group reference at the given index.
Definition: contactgroup.cpp:410
void removeAllContactData()
Removes all contact data from the contact group.
Definition: contactgroup.cpp:481
Data & data(unsigned int index)
Returns the contact data object at the given index.
Definition: contactgroup.cpp:427
void setId(const QString &id)
Sets the unique id of the contact group.
Definition: contactgroup.cpp:364
unsigned int dataCount() const
Returns the number of contact data objects in this group.
Definition: contactgroup.cpp:389
bool operator==(const ContactGroup &) const
Definition: contactgroup.cpp:495
ContactGroup & operator=(const ContactGroup &)
Definition: contactgroup.cpp:486
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.