Akonadi::XmlWriter
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()
|
nodiscard |
Creates an attribute element for the given document.
Definition at line 17 of file xmlwriter.cpp.
◆ collectionToElement()
|
nodiscard |
Creates a collection element for the given document, not yet attached to the DOM tree.
Definition at line 55 of file xmlwriter.cpp.
◆ itemToElement()
|
nodiscard |
Creates an item element for the given document, not yet attached to the DOM tree.
Definition at line 82 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 50 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 45 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 70 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 112 of file xmlwriter.cpp.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.