KContacts::ContactGroupTool

KContacts::ContactGroupTool Namespace Reference

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.

Author
Kevin Krammer kevin[email protected].kra[email protected][email protected][email protected]gmx.[email protected]at
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.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Aug 6 2020 22:54:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.