From 5745ef4a6bfeede40fe69067f51e714718243045 Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Fri, 18 May 2012 09:19:41 +0200 Subject: move cSetupEEPG to separate files --- setupeepg.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 setupeepg.h (limited to 'setupeepg.h') diff --git a/setupeepg.h b/setupeepg.h new file mode 100644 index 0000000..f5e342a --- /dev/null +++ b/setupeepg.h @@ -0,0 +1,35 @@ +/* + * setupeepg.h + * + * Created on: 08.5.2012 + * Author: d.petrovski + */ + +#ifndef SETUPEEPG_H_ +#define SETUPEEPG_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(); + +private: + cSetupEEPG (void); + cSetupEEPG(cSetupEEPG const&); // copy constructor is private + cSetupEEPG& operator=(cSetupEEPG const&); // assignment operator is private + static cSetupEEPG* _setupEEPG; + +}; + +#endif /* SETUPEEPG_H_ */ -- cgit v1.2.3 From 61eded224bc4660b41f6754e83b91a262af3f8ce Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Wed, 23 May 2012 21:36:14 +0200 Subject: move equivalence to separate file/class --- setupeepg.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'setupeepg.h') diff --git a/setupeepg.h b/setupeepg.h index f5e342a..ffd9eb8 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -24,12 +24,25 @@ public: public: static cSetupEEPG* getInstance(); + char* getConfDir() const + { + return ConfDir; + } + + void setConfDir(char* confDir) + { + 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_ */ -- cgit v1.2.3 From eb44800641ed5e60e23d173e027688f67c1981cc Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Sat, 2 Jun 2012 11:52:32 +0200 Subject: fix compile fix sortEquivalents modify loging --- setupeepg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'setupeepg.h') diff --git a/setupeepg.h b/setupeepg.h index ffd9eb8..4c30ede 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -7,6 +7,7 @@ #ifndef SETUPEEPG_H_ #define SETUPEEPG_H_ +#include class cSetupEEPG { @@ -31,7 +32,10 @@ public: void setConfDir(char* confDir) { - ConfDir = confDir; + if (ConfDir) + delete ConfDir; + ConfDir = new char[strlen(confDir)+1]; + strcpy(ConfDir, confDir); } private: -- cgit v1.2.3 From fabd731b78f9c221cb6f6090308005835d09d67d Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Tue, 30 Oct 2012 18:40:41 +0100 Subject: fixed documentation removed forgotten noepg ifdef fixed cppcheck errors --- setupeepg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setupeepg.h') diff --git a/setupeepg.h b/setupeepg.h index 4c30ede..0db20d1 100644 --- a/setupeepg.h +++ b/setupeepg.h @@ -33,7 +33,7 @@ public: void setConfDir(char* confDir) { if (ConfDir) - delete ConfDir; + delete [] ConfDir; ConfDir = new char[strlen(confDir)+1]; strcpy(ConfDir, confDir); } -- cgit v1.2.3