diff options
author | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-26 13:11:41 +0000 |
---|---|---|
committer | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-26 13:11:41 +0000 |
commit | 8c827812bd737d24f6366481854a5e5d5578501c (patch) | |
tree | 3526d2f3b5890e41a10e76504c34fe1035e6f39e /src/menuconfiguration.h | |
parent | 075b5783c77d442c7a9a7315e6696d223784b3fc (diff) | |
download | vdr-plugin-menuorg-8c827812bd737d24f6366481854a5e5d5578501c.tar.gz vdr-plugin-menuorg-8c827812bd737d24f6366481854a5e5d5578501c.tar.bz2 |
made menuconfiguration reparsable from loaded dom
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6002 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/menuconfiguration.h')
-rw-r--r-- | src/menuconfiguration.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/menuconfiguration.h b/src/menuconfiguration.h index 8ef64b6..34ca315 100644 --- a/src/menuconfiguration.h +++ b/src/menuconfiguration.h @@ -37,12 +37,14 @@ class MenuConfiguration private: static const std::string _dtd; std::vector<std::string> _configuredPlugins; + const xmlpp::Element* _configuration; public: - MenuNode* LoadMenu(std::string menuFileName); + MenuConfiguration(std::string menuFileName); + MenuNode* MenuTree(); private: - void ParseElement(const xmlpp::Element* a_node, MenuNode* menuNode); + void CreateMenuTree(const xmlpp::Element* menuRoot, MenuNode* menuNode); eOSState MenuTextToVdrState(std::string menuText); bool FindPluginByName(std::string name, cPlugin*& plugin, int& pluginIndex); MenuNode* AddSubMenuNode(std::string name, MenuNode* menu); |