blob: 7a86ad17e15f60d436cf9890c0a2ff4c046860da (
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
25
26
27
28
29
|
#ifndef ___MENUNODE_H
#define ___MENUNODE_H
#include <vector>
#include <vdr/submenupatch.h>
class MenuNode;
typedef std::vector<MenuNode*> MenuNodeList;
class MenuNode
{
private:
MenuNode* _parent;
MenuNodeList _childs;
protected:
void SetParent(MenuNode* parent);
public:
MenuNode();
virtual ~MenuNode();
MenuNode* Parent();
MenuNodeList& Childs();
MenuNode* AddChild(MenuNode* child);
virtual SubMenuPatch::IMainMenuItem* CreateMainMenuItem();
};
#endif
|