File tree 3 files changed +11
-7
lines changed
3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 10
10
#include "menu.h"
11
11
#include "monitor.h"
12
12
13
- static const char * VERSION = "0.0.6a " ;
13
+ static const char * VERSION = "0.0.6b " ;
14
14
static const char * DESCRIPTION = "attach/detach devices on the fly" ;
15
- static const char * MAINMENUENTRY = "dynamite" ;
15
+ static const char * MAINMENUENTRY = NULL ;
16
16
17
17
class cDynamiteDvbDeviceProbe : public cDvbDeviceProbe {
18
18
private :
@@ -240,13 +240,13 @@ time_t cPluginDynamite::WakeupTime(void)
240
240
cOsdObject * cPluginDynamite ::MainMenuAction (void )
241
241
{
242
242
// Perform the action when selected from the main VDR menu.
243
- return new cDynamiteMainMenu ;
243
+ return NULL ;
244
244
}
245
245
246
246
cMenuSetupPage * cPluginDynamite ::SetupMenu (void )
247
247
{
248
248
// Return a setup menu in case the plugin supports one.
249
- return NULL ;
249
+ return new cDynamiteMainMenu ;
250
250
}
251
251
252
252
bool cPluginDynamite ::SetupParse (const char * Name , const char * Value )
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ class cDynamiteMenuItem : public cOsdItem
81
81
};
82
82
83
83
cDynamiteMainMenu ::cDynamiteMainMenu (void )
84
- :cOsdMenu ("dynamite" )
85
84
{
86
85
Add (new cDynamiteMenuItem (maList , "list attached devices "));
87
86
Add (new cDynamiteMenuItem (maScan , "scan for new DVB devices" , false));
@@ -95,6 +94,10 @@ cDynamiteMainMenu::~cDynamiteMainMenu(void)
95
94
{
96
95
}
97
96
97
+ void cDynamiteMainMenu ::Store (void )
98
+ {
99
+ }
100
+
98
101
eOSState cDynamiteMainMenu ::ProcessKey (eKeys Key )
99
102
{
100
103
cDynamiteMenuItem * item = dynamic_cast < cDynamiteMenuItem * > (Get (Current ()));
Original file line number Diff line number Diff line change 1
1
#ifndef __DYNAMITEMENU_H
2
2
#define __DYNAMITEMENU_H
3
3
4
- #include < vdr/osdbase .h>
4
+ #include < vdr/menuitems .h>
5
5
6
6
7
- class cDynamiteMainMenu : public cOsdMenu
7
+ class cDynamiteMainMenu : public cMenuSetupPage
8
8
{
9
9
private:
10
10
11
11
protected:
12
+ virtual void Store (void );
12
13
13
14
public:
14
15
cDynamiteMainMenu (void );
You can’t perform that action at this time.
0 commit comments