mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Moved the declaration of cMenuCommands to menu.h, so that plugins can use it
This commit is contained in:
parent
19e256d792
commit
4bf5c793f4
3
HISTORY
3
HISTORY
@ -6309,8 +6309,9 @@ Video Disk Recorder Revision History
|
|||||||
- The files "commands.conf" and "reccmd.conf" can now contain nested lists of
|
- The files "commands.conf" and "reccmd.conf" can now contain nested lists of
|
||||||
commands. See vdr.5 for information about the new file format.
|
commands. See vdr.5 for information about the new file format.
|
||||||
|
|
||||||
2010-02-05: Version 1.7.13
|
2010-02-06: Version 1.7.13
|
||||||
|
|
||||||
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
- Updated the Italian OSD texts (thanks to Diego Pierotto).
|
||||||
- Changed the position of Sirius 4 to S4.8E in sources.conf (thanks to Alexander Gross).
|
- Changed the position of Sirius 4 to S4.8E in sources.conf (thanks to Alexander Gross).
|
||||||
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
- Updated the Finnish OSD texts (thanks to Rolf Ahrenberg).
|
||||||
|
- Moved the declaration of cMenuCommands to menu.h, so that plugins can use it.
|
||||||
|
18
menu.c
18
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.c 2.14 2010/01/31 12:43:24 kls Exp $
|
* $Id: menu.c 2.15 2010/02/06 10:16:15 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -1781,22 +1781,6 @@ eOSState cMenuSchedule::ProcessKey(eKeys Key)
|
|||||||
|
|
||||||
// --- cMenuCommands ---------------------------------------------------------
|
// --- cMenuCommands ---------------------------------------------------------
|
||||||
|
|
||||||
class cMenuCommands : public cOsdMenu {
|
|
||||||
private:
|
|
||||||
cList<cNestedItem> *commands;
|
|
||||||
cString parameters;
|
|
||||||
cString title;
|
|
||||||
cString command;
|
|
||||||
bool confirm;
|
|
||||||
char *result;
|
|
||||||
bool Parse(const char *s);
|
|
||||||
eOSState Execute(void);
|
|
||||||
public:
|
|
||||||
cMenuCommands(const char *Title, cList<cNestedItem> *Commands, const char *Parameters = NULL);
|
|
||||||
virtual ~cMenuCommands();
|
|
||||||
virtual eOSState ProcessKey(eKeys Key);
|
|
||||||
};
|
|
||||||
|
|
||||||
cMenuCommands::cMenuCommands(const char *Title, cList<cNestedItem> *Commands, const char *Parameters)
|
cMenuCommands::cMenuCommands(const char *Title, cList<cNestedItem> *Commands, const char *Parameters)
|
||||||
:cOsdMenu(Title)
|
:cOsdMenu(Title)
|
||||||
{
|
{
|
||||||
|
18
menu.h
18
menu.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: menu.h 2.1 2010/01/17 11:21:42 kls Exp $
|
* $Id: menu.h 2.2 2010/02/06 10:17:24 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MENU_H
|
#ifndef __MENU_H
|
||||||
@ -53,6 +53,22 @@ public:
|
|||||||
virtual eOSState ProcessKey(eKeys Key);
|
virtual eOSState ProcessKey(eKeys Key);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class cMenuCommands : public cOsdMenu {
|
||||||
|
private:
|
||||||
|
cList<cNestedItem> *commands;
|
||||||
|
cString parameters;
|
||||||
|
cString title;
|
||||||
|
cString command;
|
||||||
|
bool confirm;
|
||||||
|
char *result;
|
||||||
|
bool Parse(const char *s);
|
||||||
|
eOSState Execute(void);
|
||||||
|
public:
|
||||||
|
cMenuCommands(const char *Title, cList<cNestedItem> *Commands, const char *Parameters = NULL);
|
||||||
|
virtual ~cMenuCommands();
|
||||||
|
virtual eOSState ProcessKey(eKeys Key);
|
||||||
|
};
|
||||||
|
|
||||||
class cMenuEditTimer : public cOsdMenu {
|
class cMenuEditTimer : public cOsdMenu {
|
||||||
private:
|
private:
|
||||||
cTimer *timer;
|
cTimer *timer;
|
||||||
|
Loading…
Reference in New Issue
Block a user