akonadi
xmldocument.h
QDomDocument & document() const
Returns the DOM document for this XML document.
Definition xmldocument.cpp:221
Collection collectionByRemoteId(const QString &rid) const
Returns the collection with the given remote id.
Definition xmldocument.cpp:258
Item::List items(const Collection &collection, bool includePayload=true) const
Returns the items in the given collection.
Definition xmldocument.cpp:310
bool isValid() const
Returns true if the document could be parsed successfully.
Definition xmldocument.cpp:211
QDomElement itemElementByRemoteId(const QString &rid) const
Returns the DOM element representing the item with the given remote id.
Definition xmldocument.cpp:253
Item itemByRemoteId(const QString &rid, bool includePayload=true) const
Returns the item with the given remote id.
Definition xmldocument.cpp:264
QDomElement collectionElementByRemoteId(const QString &rid) const
Returns the DOM element representing the collection with the given remote id.
Definition xmldocument.cpp:226
bool loadFile(const QString &fileName)
Parses the given XML file and validates it.
Definition xmldocument.cpp:126
Collection::List collections() const
Returns the collections defined in this document.
Definition xmldocument.cpp:269
bool writeToFile(const QString &fileName) const
Writes the current document into the given file.
Definition xmldocument.cpp:197
QDomElement collectionElement(const Collection &collection) const
Returns the DOM element representing collection.
Definition xmldocument.cpp:231
Collection::List childCollections(const QString &parentCollectionRid) const
Returns immediate child collections of the specified parent collection.
Definition xmldocument.cpp:279
QString lastError() const
Returns the last error occurred during file loading/parsing.
Definition xmldocument.cpp:216
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.