summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2010-06-02 21:14:58 +0200
committerMidas <vdrportal_midas@gmx.de>2010-06-02 21:14:58 +0200
commitce4a004a3a0011b99b6f82f4144db1e0a6b1cd30 (patch)
tree97795f2e1ab8a797b2ad3b58d6a2a9408f4e7023 /setup.c
parent28dd453730435dd8123cb29e0698e91e97438f77 (diff)
downloadvdr-plugin-block-ce4a004a3a0011b99b6f82f4144db1e0a6b1cd30.tar.gz
vdr-plugin-block-ce4a004a3a0011b99b6f82f4144db1e0a6b1cd30.tar.bz2
Added a new detection method. If the next show on the
current channel is blocked the plugin will switch to another channel as soon as the next show begins. Strange behaviour could occur, if the station does not accurately update its EPG. Therefore you can still choose the old detection method (On Switch) in the plugins setup, which is also the default.
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index 4f48739..42a4eb6 100644
--- a/setup.c
+++ b/setup.c
@@ -26,6 +26,11 @@ void cMenuSetupBlock::Set(void) {
Add(new cMenuEditBoolItem(tr("Hide Mainmenu Entry"), &mSetupData.HideMenuEntry));
Add(new cMenuEditIntItem(tr("Message Timeout [s]"), &mSetupData.MessageTimeout, 0, 10));
+ DetectionMethods[0] = tr("On Switch");
+ DetectionMethods[1] = tr("Channel EPG");
+
+ Add(new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods));
+
item = new cOsdItem("");
item->SetSelectable(false);
Add(item);
@@ -34,7 +39,7 @@ void cMenuSetupBlock::Set(void) {
item->SetSelectable(false);
Add(item);
-#define NONKEYWORDITEMS 4
+#define NONKEYWORDITEMS 5
int index = 0;
cEventBlock *event = mEventsData.First();
@@ -71,6 +76,7 @@ void cMenuSetupBlock::Store(void)
SetupBlock = mSetupData;
SetupStore("HideMenuEntry", SetupBlock.HideMenuEntry);
SetupStore("MessageTimeout", SetupBlock.MessageTimeout);
+ SetupStore("DetectionMethod", SetupBlock.DetectionMethod);
}
eOSState cMenuSetupBlock::Edit(void)