From a334a2df334ccd3c2a2756b374b675a15bdb3de8 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 10 Sep 2000 10:51:58 +0200 Subject: Added a 'Setup' menu --- config.h | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 2a8954b7..0d54ffb9 100644 --- a/config.h +++ b/config.h @@ -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 -- cgit v1.2.3