akonadi
xmlwritejob.cpp
91 kDebug() << "Writing " << current.name() << "into" << elementStack.top().attribute( QLatin1String("name") );
93 CollectionFetchJob *subfetch = new CollectionFetchJob( current, CollectionFetchJob::FirstLevel, q );
129XmlWriteJob::XmlWriteJob(const Collection::List& roots, const QString& fileName, QObject* parent) :
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:54
@ FirstLevel
Only list direct sub-collections of the base collection.
Definition collectionfetchjob.h:63
Collection::List collections() const
Returns the list of fetched collection.
Definition collectionfetchjob.cpp:169
void fetchAllAttributes(bool fetch=true)
Sets whether all available attributes should be fetched.
Definition itemfetchscope.cpp:94
void fetchFullPayload(bool fetch=true)
Sets whether the full payload shall be fetched.
Definition itemfetchscope.cpp:70
Represents a document of the KNUT XML serialization format for Akonadi objects.
Definition xmldocument.h:38
QDomDocument & document() const
Returns the DOM document for this XML document.
Definition xmldocument.cpp:221
bool writeToFile(const QString &fileName) const
Writes the current document into the given file.
Definition xmldocument.cpp:197
QString lastError() const
Returns the last error occurred during file loading/parsing.
Definition xmldocument.cpp:216
Serializes a given Akonadi collection into a XML file.
Definition xmlwritejob.h:36
AKONADI_XML_EXPORT QDomElement writeItem(const Akonadi::Item &item, QDomElement &parentElem)
Serializes the given item into a DOM element and attaches it to the given item.
AKONADI_XML_EXPORT QDomElement writeCollection(const Collection &collection, QDomElement &parentElem)
Serializes the given collection into a DOM element with the given parent.
Definition xmlwriter.cpp:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.