diff options
author | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-07-28 09:08:10 +0000 |
---|---|---|
committer | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-07-28 09:08:10 +0000 |
commit | 68e0fa1bf7d1c311b632b7409ff62e3769ed2a8e (patch) | |
tree | 6150936710989aa19e1dd63f9df2c904dccd4c17 /src/xmlmenu.h | |
parent | 5add845c880a421d3f8c4624476c6941c2b5e551 (diff) | |
download | vdr-plugin-menuorg-68e0fa1bf7d1c311b632b7409ff62e3769ed2a8e.tar.gz vdr-plugin-menuorg-68e0fa1bf7d1c311b632b7409ff62e3769ed2a8e.tar.bz2 |
cleaned up the mess I left yesterday
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5663 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/xmlmenu.h')
-rw-r--r-- | src/xmlmenu.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/xmlmenu.h b/src/xmlmenu.h index 4c7dbb1..f3cf372 100644 --- a/src/xmlmenu.h +++ b/src/xmlmenu.h @@ -1,24 +1,29 @@ #ifndef ___XMLMENU_H #define ___XMLMENU_H -#include <libxml++/libxml++.h> +#include <string> +#include <vdr/osdbase.h> #include "menunode.h" -using namespace xmlpp; +namespace xmlpp { class Element; } class XmlMenu { private: - //void createMenu(); // create the Menu Node - void ParseElement(const Element* a_node, MenuNode* menuNode); - eOSState geteOSState(std::string name); // gets the eOSState for the given string - bool FindPluginByName(std::string name, const char** mainMenuEntry, int& pluginIndex); // gets the plugin for the given string - MenuNode* _subMenu[30]; // holds the submenus int MenuCount; + MenuNode _rootMenuNode; public: - MenuNode _rootMenuNode; // hold the Menue Nodes - void loadXmlMenu(); // load the xmlfile + MenuNode* GetMenuTree(); + void LoadXmlMenu(); + + private: + void ParseElement(const xmlpp::Element* a_node, MenuNode* menuNode); + eOSState MenuTextToVdrState(std::string menuText); + bool FindPluginByName(std::string name, const char** mainMenuEntry, int& pluginIndex); + MenuNode* AddSubMenuItem(std::string name, MenuNode* menu); + void AddSystemMenuItem(std::string name, MenuNode* menu); + void AddPluginMenuItem(std::string pluginName, MenuNode* menu); }; #endif |