diff options
author | Midas <vdrportal_midas@gmx.de> | 2010-06-02 21:14:58 +0200 |
---|---|---|
committer | Midas <vdrportal_midas@gmx.de> | 2010-06-02 21:14:58 +0200 |
commit | ce4a004a3a0011b99b6f82f4144db1e0a6b1cd30 (patch) | |
tree | 97795f2e1ab8a797b2ad3b58d6a2a9408f4e7023 /setup.c | |
parent | 28dd453730435dd8123cb29e0698e91e97438f77 (diff) | |
download | vdr-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |