blob: 73dbb4c3306464d0e26f0fe3cf9ae783a95fc54b (
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
|
#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:
virtual ~MenuNode();
MenuNode* Parent();
MenuNodeList& Childs();
MenuNode* AddChild(MenuNode* child);
virtual SubMenuPatch::MainMenuItem* CreateMainMenuItem();
};
#endif
|