Akonadi::XmlReader

Akonadi::XmlReader Namespace Reference

Functions

AKONADI_XML_EXPORT AttributeelementToAttribute (const QDomElement &elem)
 
AKONADI_XML_EXPORT Collection elementToCollection (const QDomElement &elem)
 
AKONADI_XML_EXPORT Item elementToItem (const QDomElement &elem, bool includePayload=true)
 
AKONADI_XML_EXPORT Tag elementToTag (const QDomElement &elem)
 
AKONADI_XML_EXPORT void readAttributes (const QDomElement &elem, Collection &collection)
 
AKONADI_XML_EXPORT void readAttributes (const QDomElement &elem, Item &item)
 
AKONADI_XML_EXPORT Collection::List readCollections (const QDomElement &elem)
 
AKONADI_XML_EXPORT Tag::List readTags (const QDomElement &elem)
 

Detailed Description

Low-level methods to transform DOM elements into the corresponding Akonadi objects.

See also
Akonadi::XmlDocument

Function Documentation

◆ elementToAttribute()

Attribute * Akonadi::XmlReader::elementToAttribute ( const QDomElement & elem)

Converts an attribute element.

Definition at line 16 of file xmlreader.cpp.

◆ elementToCollection()

Collection Akonadi::XmlReader::elementToCollection ( const QDomElement & elem)
nodiscard

Converts a collection element.

Definition at line 53 of file xmlreader.cpp.

◆ elementToItem()

Item Akonadi::XmlReader::elementToItem ( const QDomElement & elem,
bool includePayload = true )
nodiscard

Converts an item element.

Definition at line 136 of file xmlreader.cpp.

◆ elementToTag()

Tag Akonadi::XmlReader::elementToTag ( const QDomElement & elem)
nodiscard

Converts a tag element.

Definition at line 93 of file xmlreader.cpp.

◆ readAttributes() [1/2]

void Akonadi::XmlReader::readAttributes ( const QDomElement & elem,
Collection & collection )

Reads all attributes that are immediate children of elem and adds them to collection.

Definition at line 48 of file xmlreader.cpp.

◆ readAttributes() [2/2]

void Akonadi::XmlReader::readAttributes ( const QDomElement & elem,
Item & item )

Reads all attributes that are immediate children of elem and adds them to item.

Definition at line 43 of file xmlreader.cpp.

◆ readCollections()

Collection::List Akonadi::XmlReader::readCollections ( const QDomElement & elem)
nodiscard

Reads recursively all collections starting from the given DOM element.

Definition at line 73 of file xmlreader.cpp.

◆ readTags()

Tag::List Akonadi::XmlReader::readTags ( const QDomElement & elem)
nodiscard

Reads recursively all tags starting from the given DOM element.

Definition at line 116 of file xmlreader.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:31:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.