diff options
author | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-11 15:26:03 +0000 |
---|---|---|
committer | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-11 15:26:03 +0000 |
commit | 51cf7b47ffd152f62cb187daeec12606bbd57883 (patch) | |
tree | d50f92d2cde2985e77ae9e3a18dc13c97a45f859 /src/xmlmenu.cpp | |
parent | ac017fe51eb1a457d8ae87884252ab2f7ed79eee (diff) | |
download | vdr-plugin-menuorg-51cf7b47ffd152f62cb187daeec12606bbd57883.tar.gz vdr-plugin-menuorg-51cf7b47ffd152f62cb187daeec12606bbd57883.tar.bz2 |
Load menu from menuorg.xml in VDR's plugin config dir
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5676 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/xmlmenu.cpp')
-rw-r--r-- | src/xmlmenu.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/xmlmenu.cpp b/src/xmlmenu.cpp index b3dea53..d2308ca 100644 --- a/src/xmlmenu.cpp +++ b/src/xmlmenu.cpp @@ -10,12 +10,8 @@ using namespace xmlpp; using namespace std; -MenuNode* XmlMenu::LoadXmlMenu() +MenuNode* XmlMenu::LoadXmlMenu(string menuFileName) { - // TODO: show how vdr handels the path vars (developer doc) - // and change code for dynamic path vars - const char *File = "/var/lib/vdr/plugins/vdr-menu.xml"; - MenuNode* menuRoot = new MenuNode(); try @@ -25,7 +21,7 @@ MenuNode* XmlMenu::LoadXmlMenu() //TODO: patch the xmlfile with the xsd definition for validate the schema //parser.set_validate(); parser.set_substitute_entities(); //We just want the text to be resolved/unescaped automatically. - parser.parse_file(File); + parser.parse_file(menuFileName); const Element* rootElement = parser.get_document()->get_root_node(); |