Moved the declaration of cMenuCommands to menu.h, so that plugins can use it

This commit is contained in:
Klaus Schmidinger
2010-02-06 10:18:20 +01:00
parent 19e256d792
commit 4bf5c793f4
3 changed files with 20 additions and 19 deletions

18
menu.h
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* 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
@@ -53,6 +53,22 @@ public:
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 {
private:
cTimer *timer;