Akonadi::XmlWriter

Akonadi::XmlWriter Namespace Reference

Functions

AKONADI_XML_EXPORT QDomElement attributeToElement (Attribute *attr, QDomDocument &document)
 
AKONADI_XML_EXPORT QDomElement collectionToElement (const Collection &collection, QDomDocument &document)
 
AKONADI_XML_EXPORT QDomElement itemToElement (const Item &item, QDomDocument &document)
 
AKONADI_XML_EXPORT void writeAttributes (const Collection &entity, QDomElement &parentElem)
 
AKONADI_XML_EXPORT void writeAttributes (const Item &entity, QDomElement &parentElem)
 
AKONADI_XML_EXPORT QDomElement writeCollection (const Collection &collection, QDomElement &parentElem)
 
AKONADI_XML_EXPORT QDomElement writeItem (const Item &item, QDomElement &parentElem)
 

Detailed Description

Low-level methods to serialize Akonadi objects into XML.

See also
Akonadi::XmlDocument

Function Documentation

◆ attributeToElement()

QDomElement Akonadi::XmlWriter::attributeToElement ( Attribute attr,
QDomDocument document 
)

Creates an attribute element for the given document.

Definition at line 17 of file xmlwriter.cpp.

◆ collectionToElement()

QDomElement Akonadi::XmlWriter::collectionToElement ( const Collection collection,
QDomDocument document 
)

Creates a collection element for the given document, not yet attached to the DOM tree.

Definition at line 54 of file xmlwriter.cpp.

◆ itemToElement()

QDomElement Akonadi::XmlWriter::itemToElement ( const Item item,
QDomDocument document 
)

Creates an item element for the given document, not yet attached to the DOM tree.

Definition at line 81 of file xmlwriter.cpp.

◆ writeAttributes() [1/2]

void Akonadi::XmlWriter::writeAttributes ( const Collection entity,
QDomElement parentElem 
)

Serializes all attributes of the given Akonadi object into the given parent element.

Definition at line 49 of file xmlwriter.cpp.

◆ writeAttributes() [2/2]

void Akonadi::XmlWriter::writeAttributes ( const Item entity,
QDomElement parentElem 
)

Serializes all attributes of the given Akonadi object into the given parent element.

Definition at line 44 of file xmlwriter.cpp.

◆ writeCollection()

QDomElement Akonadi::XmlWriter::writeCollection ( const Collection collection,
QDomElement parentElem 
)

Serializes the given collection into a DOM element with the given parent.

Definition at line 69 of file xmlwriter.cpp.

◆ writeItem()

QDomElement Akonadi::XmlWriter::writeItem ( const Item item,
QDomElement parentElem 
)

Serializes the given item into a DOM element and attaches it to the given item.

Definition at line 111 of file xmlwriter.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:00:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.