summaryrefslogtreecommitdiff
path: root/src/xmlmenu.h
diff options
context:
space:
mode:
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);