KContacts::ContactGroupTool Namespace
namespace KContacts::ContactGroupToolStatic methods for converting ContactGroup to XML format and vice versa. More...
Header: | #include <KContacts/ContactGroupTool> |
CMake: | find_package(KF6 REQUIRED COMPONENTS Contacts) target_link_libraries(mytarget PRIVATE KF6::Contacts) |
Since: | 4.3 |
Functions
bool | convertFromXml(QIODevice *device, KContacts::ContactGroup &group, QString *errorMessage = nullptr) |
bool | convertFromXml(QIODevice *device, QList<KContacts::ContactGroup> &list, QString *errorMessage = nullptr) |
bool | convertToXml(const KContacts::ContactGroup &group, QIODevice *device, QString *errorMessage = nullptr) |
bool | convertToXml(const QList<KContacts::ContactGroup> &list, QIODevice *device, QString *errorMessage = nullptr) |
Detailed Description
Function Documentation
bool ContactGroupTool::convertFromXml(QIODevice *device, KContacts::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.
bool ContactGroupTool::convertFromXml(QIODevice *device, QList<KContacts::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.
bool ContactGroupTool::convertToXml(const KContacts::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.
bool ContactGroupTool::convertToXml(const QList<KContacts::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.