KABC::ContactGroupTool Namespace Reference

Static methods for converting ContactGroup to XML format and vice versa. More...

Functions

bool convertFromXml (QIODevice *device, QList< ContactGroup > &list, QString *errorMessage=0)
bool convertFromXml (QIODevice *device, ContactGroup &group, QString *errorMessage=0)
bool convertToXml (const QList< ContactGroup > &list, QIODevice *device, QString *errorMessage=0)
bool convertToXml (const ContactGroup &group, QIODevice *device, QString *errorMessage=0)

Detailed Description

Static methods for converting ContactGroup to XML format and vice versa.

Author:
Kevin Krammer <kevin.krammer@gmx.at>
Since:
4.3

Function Documentation

bool KABC::ContactGroupTool::convertFromXml ( QIODevice *  device,
QList< ContactGroup > &  list,
QString *  errorMessage = 0 
)

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 346 of file contactgrouptool.cpp.

bool KABC::ContactGroupTool::convertFromXml ( QIODevice *  device,
ContactGroup group,
QString *  errorMessage = 0 
)

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 319 of file contactgrouptool.cpp.

bool KABC::ContactGroupTool::convertToXml ( const QList< ContactGroup > &  list,
QIODevice *  device,
QString *  errorMessage = 0 
)

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 362 of file contactgrouptool.cpp.

bool KABC::ContactGroupTool::convertToXml ( const ContactGroup group,
QIODevice *  device,
QString *  errorMessage = 0 
)

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 335 of file contactgrouptool.cpp.

KDE Home | KDE Accessibility Home | Description of Access Keys