KContacts::ContactGroupTool
Functions | |
KCONTACTS_EXPORT bool | convertFromXml (QIODevice *device, ContactGroup &group, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertFromXml (QIODevice *device, QList< ContactGroup > &list, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertToXml (const ContactGroup &group, QIODevice *device, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertToXml (const QList< ContactGroup > &list, QIODevice *device, QString *errorMessage=nullptr) |
Detailed Description
Static methods for converting ContactGroup to XML format and vice versa.
- Since
- 4.3
Function Documentation
◆ convertFromXml() [1/2]
bool KContacts::ContactGroupTool::convertFromXml | ( | QIODevice * | device, |
ContactGroup & | group, | ||
QString * | errorMessage = nullptr ) |
Converts XML data coming from a device
into a contact group
.
If an error occurs, false
is returned and errorMessage
is set.
Definition at line 304 of file contactgrouptool.cpp.
◆ convertFromXml() [2/2]
bool KContacts::ContactGroupTool::convertFromXml | ( | QIODevice * | device, |
QList< ContactGroup > & | list, | ||
QString * | errorMessage = nullptr ) |
Converts XML data coming from a device
into a list
of contact groups.
If an error occurs, false
is returned and errorMessage
is set.
Definition at line 329 of file contactgrouptool.cpp.
◆ convertToXml() [1/2]
bool KContacts::ContactGroupTool::convertToXml | ( | const ContactGroup & | group, |
QIODevice * | device, | ||
QString * | errorMessage = nullptr ) |
Converts a contact group
into XML data and writes them to a device
.
If an error occurs, false
is returned and errorMessage
is set.
Definition at line 319 of file contactgrouptool.cpp.
◆ convertToXml() [2/2]
bool KContacts::ContactGroupTool::convertToXml | ( | const QList< ContactGroup > & | list, |
QIODevice * | device, | ||
QString * | errorMessage = nullptr ) |
Converts a list
of contact groups into XML data and writes them to a device
.
If an error occurs, false
is returned and errorMessage
is set.
Definition at line 344 of file contactgrouptool.cpp.
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.