summaryrefslogtreecommitdiff
path: root/src/xmlmenu.h
blob: 4c7dbb1446357caa459a69b65a7a58d1a71c16a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef ___XMLMENU_H
#define ___XMLMENU_H

#include <libxml++/libxml++.h>
#include "menunode.h"

using namespace xmlpp;

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;

    public:
        MenuNode _rootMenuNode; // hold the Menue Nodes
        void loadXmlMenu(); // load the xmlfile
};

#endif