summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-01-14 13:20:16 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-01-14 13:20:16 +0100
commit81f349bf58e0eca80d340c57eb6a718e5a2fa657 (patch)
tree03f868bdfc975bf6449082435ed5e1bdae3577eb /config.c
parent5f86af093e50bdb4e1a45c61e9d1b1f64b311021 (diff)
downloadvdr-81f349bf58e0eca80d340c57eb6a718e5a2fa657.tar.gz
vdr-81f349bf58e0eca80d340c57eb6a718e5a2fa657.tar.bz2
Implemented setup option "Replay/Show remaining time"
Diffstat (limited to 'config.c')
-rw-r--r--config.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/config.c b/config.c
index a3f67246..9015a531 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.17 2011/12/10 14:33:27 kls Exp $
+ * $Id: config.c 2.18 2012/01/14 13:04:59 kls Exp $
*/
#include "config.h"
@@ -453,6 +453,7 @@ cSetup::cSetup(void)
NextWakeupTime = 0;
MultiSpeedMode = 0;
ShowReplayMode = 0;
+ ShowRemainingTime = 0;
ResumeID = 0;
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
@@ -647,6 +648,7 @@ bool cSetup::Parse(const char *Name, const char *Value)
else if (!strcasecmp(Name, "NextWakeupTime")) NextWakeupTime = atoi(Value);
else if (!strcasecmp(Name, "MultiSpeedMode")) MultiSpeedMode = atoi(Value);
else if (!strcasecmp(Name, "ShowReplayMode")) ShowReplayMode = atoi(Value);
+ else if (!strcasecmp(Name, "ShowRemainingTime")) ShowRemainingTime = atoi(Value);
else if (!strcasecmp(Name, "ResumeID")) ResumeID = atoi(Value);
else if (!strcasecmp(Name, "CurrentChannel")) CurrentChannel = atoi(Value);
else if (!strcasecmp(Name, "CurrentVolume")) CurrentVolume = atoi(Value);
@@ -744,6 +746,7 @@ bool cSetup::Save(void)
Store("NextWakeupTime", NextWakeupTime);
Store("MultiSpeedMode", MultiSpeedMode);
Store("ShowReplayMode", ShowReplayMode);
+ Store("ShowRemainingTime", ShowRemainingTime);
Store("ResumeID", ResumeID);
Store("CurrentChannel", CurrentChannel);
Store("CurrentVolume", CurrentVolume);