summaryrefslogtreecommitdiff
path: root/tntconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'tntconfig.h')
-rw-r--r--tntconfig.h49
1 files changed, 32 insertions, 17 deletions
diff --git a/tntconfig.h b/tntconfig.h
index ba31f97..9c30e44 100644
--- a/tntconfig.h
+++ b/tntconfig.h
@@ -2,26 +2,41 @@
#define VDR_LIVE_TNTCONFIG_H
#include <string>
+#include <tnt/tntnet.h>
namespace vdrlive {
-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();
-};
+#if TNTVERSION >= 1606
+ 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
} // namespace vdrlive