kabc
contactgrouptool.cpp
103 void XmlContactGroupWriter::writeContactReference( const ContactGroup::ContactReference &reference )
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
bool convertToXml(const ContactGroup &group, QIODevice *device, QString *errorMessage=0)
Converts a contact group into XML data and writes them to a device.
Definition: contactgrouptool.cpp:334
void setEmail(const QString &email)
Sets the email address of the contact data object.
Definition: contactgroup.cpp:267
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
bool convertFromXml(QIODevice *device, ContactGroup &group, QString *errorMessage=0)
Converts XML data coming from a device into a contact group.
Definition: contactgrouptool.cpp:318
QString toString() const
QString uid() const
Returns the contact group uid of the contact group reference.
Definition: contactgroup.cpp:179
unsigned int dataCount() const
Returns the number of contact data objects in this group.
Definition: contactgroup.cpp:389
QStringRef value(const QString &namespaceUri, const QString &name) const
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
void append(const T &value)
QString gid() const
Returns the contact GID of the contact reference.
Definition: contactgroup.cpp:88
bool isEmpty() const
void append(const ContactReference &reference)
Appends a new contact reference to the contact group.
Definition: contactgroup.cpp:441
Definition: contactgrouptool.h:30
void setName(const QString &name)
Sets the name of the contact data object.
Definition: contactgroup.cpp:257
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
bool isEmpty() const
void setUid(const QString &uid)
Sets the contact uid of the contact reference.
Definition: contactgroup.cpp:73
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.