summaryrefslogtreecommitdiff
path: root/src/xmlmenu.h
diff options
context:
space:
mode:
authorsvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-07-27 00:47:42 +0000
committersvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-07-27 00:47:42 +0000
commitcc67772793751d5329739ede3da01995a743bca1 (patch)
tree7178c093ee562e4ab50a2f8490b67d9ccec87e28 /src/xmlmenu.h
parentea5503c121b54a050649a992e42a38381a38ff59 (diff)
downloadvdr-plugin-menuorg-cc67772793751d5329739ede3da01995a743bca1.tar.gz
vdr-plugin-menuorg-cc67772793751d5329739ede3da01995a743bca1.tar.bz2
some fixed.. but some bugs left - need to fix befor compile
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5647 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/xmlmenu.h')
-rw-r--r--src/xmlmenu.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/xmlmenu.h b/src/xmlmenu.h
index eb9dd77..b24baf0 100644
--- a/src/xmlmenu.h
+++ b/src/xmlmenu.h
@@ -1,15 +1,25 @@
#ifndef ___XMLMENU_H
#define ___XMLMENU_H
+#include <libxml++/libxml++.h>
+#include <iostream>
#include "menunode.h"
+using namespace xmlpp;
+
+struct PluginItemAndIndex
+{
+ const char* item;
+ int index;
+};
+
class XmlMenu
{
private:
//void createMenu(); // create the Menu Node
- void parseNode(const Node *a_node, unsigned int Parent);
- eOSState geteOSState(char* name); // gets the eOSState for the given string
- int getPluginIndex(char* name); // gets the plugin index for the given string
+ void parseNode(const Node* a_node, unsigned int Parent, MenuNode *parentNode);
+ eOSState geteOSState(Glib::ustring* name); // gets the eOSState for the given string
+ PluginItemAndIndex getPlugin(Glib::ustring* name); // gets the plugin for the given string
public:
MenuNode _rootMenuNode; // hold the Menue Node
XmlMenu (void);