-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreenode.h
executable file
·42 lines (31 loc) · 883 Bytes
/
treenode.h
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
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef TREENODE_H
#define TREENODE_H
#include <QList>
#include <QVariant>
class MediaObject;
struct TreeNode {
TreeNode();
TreeNode(MediaObject *link);
TreeNode(MediaObject *link, TreeNode *parentNode);
~TreeNode();
void appendChildNode(TreeNode *child);
void insertChildNode(TreeNode *child, int row);
void deleteChildNode(int row);
void removeChildNode(int row);
int getChildNodeCount();
TreeNode *getChildNode(int row);
QList<TreeNode *> getChildNodes();
int row();
int columnCount();
void setLink(MediaObject *newLink);
MediaObject *getLink();
QVariant data(int column);
TreeNode *getParentNode();
void setParentNode(TreeNode *parent);
QVariant getSettingsValue(QString key);
private:
MediaObject *link;
TreeNode *parentNode;
QList<TreeNode*> childNodes;
};
#endif // TREENODE_H