diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-11-30 13:53:29 +0100 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-11-30 13:53:29 +0100 |
commit | c0c90a946c0f5a6722f312e7156ba01c9e743d56 (patch) | |
tree | dc984296d4eda579f9632ee032bf1a62266bcc40 /setupeepg.h | |
parent | 16676f55d7aabc55a7b2894dbdf79a462749767f (diff) | |
parent | 250c584c8b52ca6fadc75acc1f8f9e6c2830c014 (diff) | |
download | vdr-plugin-eepg-c0c90a946c0f5a6722f312e7156ba01c9e743d56.tar.gz vdr-plugin-eepg-c0c90a946c0f5a6722f312e7156ba01c9e743d56.tar.bz2 |
Merge branch 'experimental'
Conflicts:
eepg.c
Diffstat (limited to 'setupeepg.h')
-rw-r--r-- | setupeepg.h | 52 |
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_ */ |