diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-10 10:51:58 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-09-10 10:51:58 +0200 |
commit | a334a2df334ccd3c2a2756b374b675a15bdb3de8 (patch) | |
tree | 54f3208ff1d55f2f6dc01ff0afc3ffd68a10dde5 /config.h | |
parent | c00d4ea326e61d76d7ab5760a5c06646d6b88ab0 (diff) | |
download | vdr-a334a2df334ccd3c2a2756b374b675a15bdb3de8.tar.gz vdr-a334a2df334ccd3c2a2756b374b675a15bdb3de8.tar.bz2 |
Added a 'Setup' menu
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 24 |
1 files changed, 21 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.16 2000/09/09 14:21:35 kls Exp $ + * $Id: config.h 1.17 2000/09/10 10:29:05 kls Exp $ */ #ifndef __CONFIG_H @@ -156,7 +156,7 @@ public: fclose(f); } else { - esyslog(LOG_ERR, "can't open '%s'\n", fileName); + LOG_ERROR_STR(fileName); result = false; } return result; @@ -177,8 +177,10 @@ public: } fclose(f); } - else + else { + LOG_ERROR_STR(fileName); result = false; + } return result; } }; @@ -211,4 +213,20 @@ extern cChannels Channels; extern cTimers Timers; extern cKeys Keys; +class cSetup { +private: + static char *fileName; + bool Parse(char *s); +public: + // Also adjust cMenuSetup (menu.c) when adding parameters here! + int PrimaryDVB; + int ShowInfoOnChSwitch; + int MenuScrollPage; + cSetup(void); + bool Load(const char *FileName); + bool Save(const char *FileName = NULL); + }; + +extern cSetup Setup; + #endif //__CONFIG_H |