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