diff options
Diffstat (limited to 'src/commandmenunode.cpp')
-rw-r--r-- | src/commandmenunode.cpp | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/src/commandmenunode.cpp b/src/commandmenunode.cpp index ed4328e..b5756ac 100644 --- a/src/commandmenunode.cpp +++ b/src/commandmenunode.cpp @@ -26,6 +26,7 @@ #include <vdr/menu.h> #include "osditemdefinition.h" #include "childlock.h" +#include "imenunodeprocessor.h" using namespace std; @@ -36,11 +37,6 @@ CommandMenuNode::CommandMenuNode(string text, string command, bool confirm) _confirm = confirm; } -IMenuItemDefinition* CommandMenuNode::CreateMenuItemDefinition() -{ - return new OsdItemDefinition(new cOsdItem(_text.c_str(), osUser2)); -} - cOsdMenu* CommandMenuNode::Execute() { bool confirmed = true; @@ -86,3 +82,23 @@ bool CommandMenuNode::IsHidden() { return ChildLock::IsMenuHidden(_text.c_str()); } + +void CommandMenuNode::Process(IMenuNodeProcessor* menuNodeProcessor) +{ + menuNodeProcessor->ProcessCommandMenuNode(this); +} + +string CommandMenuNode::Command() +{ + return _command; +} + +bool CommandMenuNode::ShouldConfirm() +{ + return _confirm; +} + +string CommandMenuNode::Text() +{ + return _text; +} |