KContacts
contactgrouptool.cpp
91void XmlContactGroupWriter::writeContactReference(const ContactGroup::ContactReference &reference)
105void XmlContactGroupWriter::writeContactGroupReference(const ContactGroup::ContactGroupReference &reference)
290bool XmlContactGroupReader::readContactGroupReference(ContactGroup::ContactGroupReference &reference)
304bool ContactGroupTool::convertFromXml(QIODevice *device, ContactGroup &group, QString *errorMessage)
319bool ContactGroupTool::convertToXml(const ContactGroup &group, QIODevice *device, QString *errorMessage)
329bool ContactGroupTool::convertFromXml(QIODevice *device, QList<ContactGroup> &groupList, QString *errorMessage)
344bool ContactGroupTool::convertToXml(const QList<ContactGroup> &groupList, QIODevice *device, QString *errorMessage)
This class represents a contact group reference.
Definition contactgroup.h:147
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
This class represents a contact reference.
Definition contactgroup.h:40
void setPreferredEmail(const QString &email)
Sets the preferred email address.
Definition contactgroup.cpp:79
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 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
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
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 setId(const QString &id)
Sets the unique id of the contact group.
Definition contactgroup.cpp:345
ContactReference & contactReference(int index)
Returns the contact reference at the given index.
Definition contactgroup.cpp:375
int dataCount() const
Returns the number of contact data objects in this group.
Definition contactgroup.cpp:370
KCONTACTS_EXPORT bool convertFromXml(QIODevice *device, ContactGroup &group, QString *errorMessage=nullptr)
Converts XML data coming from a device into a contact group.
Definition contactgrouptool.cpp:304
KCONTACTS_EXPORT bool convertToXml(const ContactGroup &group, QIODevice *device, QString *errorMessage=nullptr)
Converts a contact group into XML data and writes them to a device.
Definition contactgrouptool.cpp:319
void append(QList< T > &&value)
bool isEmpty() const const
QString toString() const const
QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const const
NoError
bool atEnd() const const
QXmlStreamAttributes attributes() const const
QIODevice * device() const const
Error error() const const
QString errorString() const const
bool isEndElement() const const
bool isStartElement() const const
QStringView name() const const
void raiseError(const QString &message)
TokenType readNext()
void setDevice(QIODevice *device)
QIODevice * device() const const
void setAutoFormatting(bool enable)
void setDevice(QIODevice *device)
void writeAttribute(QAnyStringView namespaceUri, QAnyStringView name, QAnyStringView value)
void writeEndDocument()
void writeEndElement()
void writeStartDocument()
void writeStartElement(QAnyStringView namespaceUri, QAnyStringView name)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.