24 #ifndef DIGIKAM_GALLERY_XML_UTILS_H
25 #define DIGIKAM_GALLERY_XML_UTILS_H
34 #include <libxml/xmlwriter.h>
43 template <
class Ptr,
void(*freeFcn)(Ptr)>
99 bool open(
const QString& name);
100 operator xmlTextWriterPtr()
const;
120 void append(
const QString& key,
const QString&
value);
125 typedef QMap<QString, QString> Map;
140 const QString& element,
Definition: galleryxmlutils.h:46
~CWrapper()
Definition: galleryxmlutils.h:60
CWrapper(Ptr ptr)
Definition: galleryxmlutils.h:55
bool operator!() const
Definition: galleryxmlutils.h:70
CWrapper()
Definition: galleryxmlutils.h:49
void assign(Ptr ptr)
Definition: galleryxmlutils.h:75
Definition: galleryxmlutils.h:116
void write(XMLWriter &writer) const
Definition: galleryxmlutils.cpp:80
void append(const QString &key, const QString &value)
Definition: galleryxmlutils.cpp:97
Definition: galleryxmlutils.h:136
~XMLElement()
Definition: galleryxmlutils.cpp:125
XMLElement(XMLWriter &writer, const QString &element, const XMLAttributeList *attributeList=nullptr)
Definition: galleryxmlutils.cpp:109
Definition: galleryxmlutils.h:96
bool open(const QString &name)
Definition: galleryxmlutils.cpp:33
void writeElement(const char *element, const QString &value)
Definition: galleryxmlutils.cpp:63
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: galleryconfig.cpp:30