From ce4a004a3a0011b99b6f82f4144db1e0a6b1cd30 Mon Sep 17 00:00:00 2001 From: Midas Date: Wed, 2 Jun 2010 21:14:58 +0200 Subject: 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. --- setup.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'setup.c') 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) -- cgit v1.2.3