KContacts::ContactGroupTool

KContacts::ContactGroupTool Namespace Reference

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.

Author
Kevin Krammer kevin.nosp@m..kra.nosp@m.mmer@.nosp@m.gmx..nosp@m.at
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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:08 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.