Akonadi

xmlreader.h
1 /*
2  SPDX-FileCopyrightText: 2009 Igor Trindade Oliveira <[email protected]>
3  SPDX-FileCopyrightText: 2009 Volker Krause <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef AKONADI_XMLREADER_H
9 #define AKONADI_XMLREADER_H
10 
11 #include "akonadi-xml_export.h"
12 
13 #include "collection.h"
14 #include "item.h"
15 
16 #include <QDomElement>
17 
18 namespace Akonadi
19 {
20 
21 class Attribute;
22 
27 namespace XmlReader
28 {
32 AKONADI_XML_EXPORT Attribute *elementToAttribute(const QDomElement &elem);
33 
38 AKONADI_XML_EXPORT void readAttributes(const QDomElement &elem, Item &item);
39 
44 AKONADI_XML_EXPORT void readAttributes(const QDomElement &elem, Collection &collection);
45 
49 Q_REQUIRED_RESULT AKONADI_XML_EXPORT Collection elementToCollection(const QDomElement &elem);
50 
54 Q_REQUIRED_RESULT AKONADI_XML_EXPORT Collection::List readCollections(const QDomElement &elem);
55 
59 Q_REQUIRED_RESULT AKONADI_XML_EXPORT Tag elementToTag(const QDomElement &elem);
60 
64 Q_REQUIRED_RESULT AKONADI_XML_EXPORT Tag::List readTags(const QDomElement &elem);
65 
69 Q_REQUIRED_RESULT AKONADI_XML_EXPORT Item elementToItem(const QDomElement &elem, bool includePayload = true);
70 }
71 
72 }
73 
74 #endif
AKONADI_XML_EXPORT Item elementToItem(const QDomElement &elem, bool includePayload=true)
Converts an item element.
Definition: xmlreader.cpp:136
AKONADI_XML_EXPORT Collection::List readCollections(const QDomElement &elem)
Reads recursively all collections starting from the given DOM element.
Definition: xmlreader.cpp:73
Represents a collection of PIM items.
Definition: collection.h:63
AKONADI_XML_EXPORT Collection elementToCollection(const QDomElement &elem)
Converts a collection element.
Definition: xmlreader.cpp:53
Provides interface for custom attributes for Entity.
Definition: attribute.h:126
AKONADI_XML_EXPORT void readAttributes(const QDomElement &elem, Item &item)
Reads all attributes that are immediate children of elem and adds them to item.
Definition: xmlreader.cpp:43
Helper integration between Akonadi and Qt.
AKONADI_XML_EXPORT Attribute * elementToAttribute(const QDomElement &elem)
Converts an attribute element.
Definition: xmlreader.cpp:16
An Akonadi Tag.
Definition: tag.h:26
AKONADI_XML_EXPORT Tag::List readTags(const QDomElement &elem)
Reads recursively all tags starting from the given DOM element.
Definition: xmlreader.cpp:116
AKONADI_XML_EXPORT Tag elementToTag(const QDomElement &elem)
Converts a tag element.
Definition: xmlreader.cpp:93
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 12 2020 23:16:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.