summaryrefslogtreecommitdiff
path: root/menu.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-02-06 10:18:20 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-02-06 10:18:20 +0100
commit4bf5c793f4dc4e106eb98100988ac543f7d7970c (patch)
tree704a501c2ab41399e2dc4f18af2f4aa6991fc76d /menu.h
parent19e256d792a59cfe9117bfe009db402159fc30c1 (diff)
downloadvdr-4bf5c793f4dc4e106eb98100988ac543f7d7970c.tar.gz
vdr-4bf5c793f4dc4e106eb98100988ac543f7d7970c.tar.bz2
Moved the declaration of cMenuCommands to menu.h, so that plugins can use it
Diffstat (limited to 'menu.h')
-rw-r--r--menu.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/menu.h b/menu.h
index d428a8dd..39de82d8 100644
--- a/menu.h
+++ b/menu.h
@@ -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;