summaryrefslogtreecommitdiff
path: root/switchtimer.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-01-29 19:13:14 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-01-29 19:13:14 +0100
commit2e8ffba44e4611f214e87391d4000b1b90edf4c6 (patch)
treeb9d966af294db2381393dcee4ff876826b4895e4 /switchtimer.c
parent3f7d506918dd62b5dda2d559aa6f81efbb98fe5f (diff)
downloadvdr-plugin-epgsearch-2e8ffba44e4611f214e87391d4000b1b90edf4c6.tar.gz
vdr-plugin-epgsearch-2e8ffba44e4611f214e87391d4000b1b90edf4c6.tar.bz2
new search timer action 'announce and switch', headers adjusted to 2009
Diffstat (limited to 'switchtimer.c')
-rw-r--r--switchtimer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/switchtimer.c b/switchtimer.c
index f99ec32..a112b29 100644
--- a/switchtimer.c
+++ b/switchtimer.c
@@ -1,5 +1,5 @@
/*
-Copyright (C) 2004-2008 Christian Wieninger
+Copyright (C) 2004-2009 Christian Wieninger
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -31,15 +31,15 @@ cSwitchTimer::cSwitchTimer(void)
{
event = NULL;
switchMinsBefore = 1;
- announceOnly = false;
+ mode = 0;
unmute = 0;
}
-cSwitchTimer::cSwitchTimer(const cEvent* Event, int SwitchMinsBefore, int AnnounceOnly, int Unmute)
+cSwitchTimer::cSwitchTimer(const cEvent* Event, int SwitchMinsBefore, int Mode, int Unmute)
{
event = Event;
switchMinsBefore = SwitchMinsBefore;
- announceOnly = AnnounceOnly;
+ mode = Mode;
unmute = Unmute;
}
@@ -87,7 +87,7 @@ bool cSwitchTimer::Parse(const char *s)
switchMinsBefore = atoi(value);
break;
case 5:
- announceOnly = atoi(value);
+ mode = atoi(value);
break;
case 6:
unmute = atoi(value);
@@ -130,7 +130,7 @@ cString cSwitchTimer::ToText(bool& ignore)
cString buffer = cString::sprintf("%s:%u:%ld:%d:%d:%d",
CHANNELSTRING(channel), event->EventID(),
event->StartTime(), switchMinsBefore,
- announceOnly?1:0, unmute?1:0);
+ mode, unmute?1:0);
return buffer;
}