summaryrefslogtreecommitdiff
path: root/gentoobrowse-api/service/notificationsimpl.h
blob: 762aa4ac4d7b985ae0dfd4e8959875a4b1099469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef NOTIFICATIONSIMPL_H
#define NOTIFICATIONSIMPL_H

#include <notifications.h>
#include <visibility.h>
#include <memory>
#include <libxslt/documents.h>

namespace Gentoo {
	namespace Service {
		class DLL_PUBLIC Notifications : public Gentoo::Notifications {
			public:
				Notifications();

				Gentoo::EmailPtr getSignup(Gentoo::NewUserPtr, const Ice::Current &) override;
				Gentoo::EmailPtr getNews(Gentoo::UserPtr, Gentoo::NewsContent, const Ice::Current &) override;

			private:
				Gentoo::EmailPtr basicMail(const std::string &, Gentoo::UserPtr u);

				typedef std::shared_ptr<xsltStylesheet> xsltSSPtr;
				xsltSSPtr news;
				xsltSSPtr signup;
		};
	}
}

#endif