Akonadi
xmldocument.h
bool loadFile(const QString &fileName, const QString &xsdFile={})
Parses the given XML file and validates it.
Definition xmldocument.cpp:115
QDomDocument & document() const
Returns the DOM document for this XML document.
Definition xmldocument.cpp:210
Collection collectionByRemoteId(const QString &rid) const
Returns the collection with the given remote id.
Definition xmldocument.cpp:253
Item::List items(const Collection &collection, bool includePayload=true) const
Returns the items in the given collection.
Definition xmldocument.cpp:298
bool isValid() const
Returns true if the document could be parsed successfully.
Definition xmldocument.cpp:200
QDomElement itemElementByRemoteId(const QString &rid) const
Returns the DOM element representing the item with the given remote id.
Definition xmldocument.cpp:243
Item itemByRemoteId(const QString &rid, bool includePayload=true) const
Returns the item with the given remote id.
Definition xmldocument.cpp:259
Collection::List childCollections(const Collection &parentCollection) const
Returns the immediate child collections of parentCollection.
Definition xmldocument.cpp:274
QDomElement collectionElementByRemoteId(const QString &rid) const
Returns the DOM element representing the collection with the given remote id.
Definition xmldocument.cpp:248
Collection::List collections() const
Returns the collections defined in this document.
Definition xmldocument.cpp:264
bool writeToFile(const QString &fileName) const
Writes the current document into the given file.
Definition xmldocument.cpp:186
QDomElement collectionElement(const Collection &collection) const
Returns the DOM element representing collection.
Definition xmldocument.cpp:215
QString lastError() const
Returns the last error occurred during file loading/parsing.
Definition xmldocument.cpp:205
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:49:58 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.