summaryrefslogtreecommitdiff
path: root/project2/presenter.h
blob: d862f1f0b206d43de672ff0d56bdd6791b816ba1 (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
#ifndef PRESENTER_H
#define PRESENTER_H

#include <boost/shared_ptr.hpp>
#include <glibmm/ustring.h>
#include <libxml++/parsers/domparser.h>
#include "view.h"

class Presenter {
	public:
		typedef boost::shared_ptr<xmlpp::Document> XmlDocumentPtr;
		Presenter(const std::string & group, const std::string & file);
		~Presenter();

		virtual XmlDocumentPtr getDataDocument() const;

	protected:
		Views views;
		xmlpp::DomParser present;
	public:
		const Glib::ustring responseRootNodeName;
		const Glib::ustring responseStyle;
};
typedef boost::shared_ptr<Presenter> PresenterPtr;

#endif