KContacts::ContactGroupTool
Functions | |
KCONTACTS_EXPORT bool | convertFromXml (QIODevice *device, ContactGroup &group, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertFromXml (QIODevice *device, QVector< ContactGroup > &list, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertToXml (const ContactGroup &group, QIODevice *device, QString *errorMessage=nullptr) |
KCONTACTS_EXPORT bool | convertToXml (const QVector< 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
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 307 of file contactgrouptool.cpp.
bool KContacts::ContactGroupTool::convertFromXml | ( | QIODevice * | device, |
QVector< 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 332 of file contactgrouptool.cpp.
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 322 of file contactgrouptool.cpp.
bool KContacts::ContactGroupTool::convertToXml | ( | const QVector< 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 347 of file contactgrouptool.cpp.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 22:54:47 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.