summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/notifications/xsltStreamSerializer.h
diff options
context:
space:
mode:
Diffstat (limited to 'gentoobrowse-api/service/notifications/xsltStreamSerializer.h')
-rw-r--r--gentoobrowse-api/service/notifications/xsltStreamSerializer.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/gentoobrowse-api/service/notifications/xsltStreamSerializer.h b/gentoobrowse-api/service/notifications/xsltStreamSerializer.h
new file mode 100644
index 0000000..492b954
--- /dev/null
+++ b/gentoobrowse-api/service/notifications/xsltStreamSerializer.h
@@ -0,0 +1,28 @@
+#ifndef ICESPIDER_CORE_XSLTSTREAMSERIALIZER_H
+#define ICESPIDER_CORE_XSLTSTREAMSERIALIZER_H
+
+#include <slicer/xml/serializer.h>
+#include <visibility.h>
+#include <libxslt/transform.h>
+#include <notifications.h>
+
+namespace Gentoo {
+ class DLL_PUBLIC XsltStreamSerializer : public Slicer::XmlDocumentSerializer {
+ public:
+ XsltStreamSerializer(Gentoo::EmailPtr, xsltStylesheet *);
+ ~XsltStreamSerializer();
+
+ void Serialize(Slicer::ModelPartForRootPtr mp) override;
+
+ protected:
+ void appendHtml(xmlDoc *) const;
+ void appendText(xmlDoc *) const;
+
+ Gentoo::EmailPtr mail;
+ xmlpp::Document * doc;
+ xsltStylesheet * stylesheet;
+ };
+}
+
+#endif
+