summaryrefslogtreecommitdiff
path: root/setupeepg.h
diff options
context:
space:
mode:
Diffstat (limited to 'setupeepg.h')
-rw-r--r--setupeepg.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/setupeepg.h b/setupeepg.h
new file mode 100644
index 0000000..0db20d1
--- /dev/null
+++ b/setupeepg.h
@@ -0,0 +1,52 @@
+/*
+ * setupeepg.h
+ *
+ * Created on: 08.5.2012
+ * Author: d.petrovski
+ */
+
+#ifndef SETUPEEPG_H_
+#define SETUPEEPG_H_
+#include <string.h>
+
+class cSetupEEPG
+{
+public:
+ int OptPat;
+ int OrderInfo;
+ int RatingInfo;
+ int FixEpg;
+ int DisplayMessage;
+ int ProcessEIT;
+#ifdef DEBUG
+ int LogLevel;
+#endif
+
+public:
+ static cSetupEEPG* getInstance();
+
+ char* getConfDir() const
+ {
+ return ConfDir;
+ }
+
+ void setConfDir(char* confDir)
+ {
+ if (ConfDir)
+ delete [] ConfDir;
+ ConfDir = new char[strlen(confDir)+1];
+ strcpy(ConfDir, confDir);
+ }
+
+private:
+ cSetupEEPG (void);
+ cSetupEEPG(cSetupEEPG const&); // copy constructor is private
+ cSetupEEPG& operator=(cSetupEEPG const&); // assignment operator is private
+ static cSetupEEPG* _setupEEPG;
+
+private:
+ char *ConfDir;
+
+};
+
+#endif /* SETUPEEPG_H_ */