summaryrefslogtreecommitdiff
path: root/tntconfig.h
blob: c02e6a0fcd0443c018c9ef170ea3c98d5d2082fc (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef VDR_LIVE_TNTCONFIG_H
#define VDR_LIVE_TNTCONFIG_H

#include <string>
#include <tnt/tntnet.h>
#include "tntfeatures.h"

namespace vdrlive {

#if TNT_CONFIG_INTERNAL
	class TntConfig
	{
		public:
			static TntConfig const& Get();

			void Configure(tnt::Tntnet& app) const;

		private:
			TntConfig();
			TntConfig( TntConfig const& );
	};
#else
	class TntConfig
	{
		public:
			static TntConfig const& Get();

			std::string const& GetConfigPath() const { return m_configPath; }

		private:
			std::string m_propertiesPath;
			std::string m_configPath;

			TntConfig();
			TntConfig( TntConfig const& );

			void WriteProperties();
			void WriteConfig();
	};
#endif // TNT_CONFIG_INTERNAL

} // namespace vdrlive

#endif // VDR_LIVE_TNTCONFIG_H