akonadi
xmlwriter.cpp
55 QDomElement XmlWriter::collectionToElement(const Akonadi::Collection& collection, QDomDocument& document)
63 top.setAttribute( Format::Attr::collectionContentTypes(), collection.contentMimeTypes().join( QLatin1String(",") ) );
69 QDomElement XmlWriter::writeCollection(const Akonadi::Collection& collection, QDomElement& parentElem)
76 parentElem.insertBefore( elem, QDomNode() ); // collection need to be before items to pass schema validation
QDomNode appendChild(const QDomNode &newChild)
AKONADI_XML_EXPORT void writeAttributes(const Entity &entity, QDomElement &parentElem)
Serializes all attributes of the given Akonadi object into the given parent element.
Definition: xmlwriter.cpp:45
QString join(const QString &separator) const
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
AKONADI_XML_EXPORT QDomElement attributeToElement(Attribute *attr, QDomDocument &document)
Creates an attribute element for the given document.
Definition: xmlwriter.cpp:32
QString fromUtf8(const char *str, int size)
QDomDocument ownerDocument() const
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 itemToElement(const Item &item, QDomDocument &document)
Creates an item element for the given document, not yet attached to the DOM tree. ...
void setAttribute(const QString &name, const QString &value)
QDomText createTextNode(const QString &value)
bool isNull() const
QStringList contentMimeTypes() const
Returns a list of possible content mimetypes, e.g.
Definition: collection.cpp:115
virtual QByteArray serialized() const =0
Returns a QByteArray representation of the attribute which will be storaged.
QDomElement createElement(const QString &tagName)
QDomNode insertBefore(const QDomNode &newChild, const QDomNode &refChild)
Attribute::List attributes() const
Returns a list of all attributes of the entity.
Definition: entity.cpp:153
AKONADI_XML_EXPORT QDomElement collectionToElement(const Collection &collection, QDomDocument &document)
Creates a collection element for the given document, not yet attached to the DOM tree.
Definition: xmlwriter.cpp:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.