summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2008-12-21 19:41:19 +0100
committerJochen Dolze <vdr@dolze.de>2008-12-21 19:41:19 +0100
commite90b76362c281f3d55db5260076a1ca25254b3a1 (patch)
tree006bad5ab5d63c57d1ab30c9afc7aab6fdaeba89 /setup.cpp
parent0a38f9f8cde03a188c79f66dc4b005d83a6f0cfd (diff)
downloadvdr-plugin-infosatepg-e90b76362c281f3d55db5260076a1ca25254b3a1.tar.gz
vdr-plugin-infosatepg-e90b76362c281f3d55db5260076a1ca25254b3a1.tar.bz2
Added WakeupTime
Added shutdown message
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/setup.cpp b/setup.cpp
index 8e5a292..1879e57 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -16,18 +16,21 @@ cMenuSetupInfosatepg::cMenuSetupInfosatepg(cGlobalInfosatepg *Global)
newChannel = global->Channel;
newPid = global->Pid;
newWaitTime = global->WaitTime;
+ newWakeupTime = global->WakeupTime;
newEventTimeDiff=(int) (global->EventTimeDiff/60);
Add(NewTitle(tr("Scan parameter")));
cOsdItem *firstItem = new cMenuEditIntItem( tr("Channel"), &newChannel,1,Channels.MaxNumber());
Add(firstItem);
Add(new cMenuEditIntItem( tr("Pid"), &newPid,1,8191));
-
- Add(NewTitle(tr("Options")));
- Add(new cMenuEditIntItem( tr("WaitTime [s]"), &newWaitTime,MIN_WAITTIME,MAX_WAITTIME));
- Add(new cMenuEditIntItem( tr("Event TimeDiff [min]"), &newEventTimeDiff,
+ Add(NewTitle(tr("Event options")));
+ Add(new cMenuEditIntItem( tr("Wait time [s]"), &newWaitTime,MIN_WAITTIME,MAX_WAITTIME));
+ Add(new cMenuEditIntItem( tr("Time difference [min]"), &newEventTimeDiff,
MIN_EVENTTIMEDIFF,MAX_EVENTTIMEDIFF));
+ Add(NewTitle(tr("Wakeup options")));
+ Add(new cMenuEditTimeItem(tr("Wakeup time"),&newWakeupTime));
+
if (global->InfosatChannels())
{
Add(NewTitle(tr("Infosat channels")),true);
@@ -63,6 +66,7 @@ void cMenuSetupInfosatepg::Store(void)
SetupStore("Pid", global->Pid = newPid);
SetupStore("WaitTime", global->WaitTime = newWaitTime);
SetupStore("EventTimeDiff", newEventTimeDiff);
+ SetupStore("WakeupTime",global->WakeupTime = newWakeupTime);
global->EventTimeDiff = 60*newEventTimeDiff;
if (bReprocess) global->ResetProcessedFlags();