diff options
Diffstat (limited to 'src/commandmenunode.h')
-rw-r--r-- | src/commandmenunode.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/commandmenunode.h b/src/commandmenunode.h index 913591c..c80ea2d 100644 --- a/src/commandmenunode.h +++ b/src/commandmenunode.h @@ -26,20 +26,27 @@ #include "menunode.h" #include <string> +class IMenuNodeProcessor; + class CommandMenuNode: public MenuNode { - private: + private: std::string _text; std::string _command; bool _confirm; - public: + public: CommandMenuNode(std::string text, std::string _command, bool confirm); - IMenuItemDefinition* CreateMenuItemDefinition(); - cOsdMenu* Execute(); + std::string Text(); + std::string Command(); + bool ShouldConfirm(); + + // MenuNode + virtual void Process(IMenuNodeProcessor* menuNodeProcessor); bool IsHidden(); + cOsdMenu* Execute(); - private: + private: std::string ExecuteCommand(); }; |