-
Notifications
You must be signed in to change notification settings - Fork 1
/
nodeitem.h
43 lines (33 loc) · 996 Bytes
/
nodeitem.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
43
#ifndef NODEITEM_H
#define NODEITEM_H
#include <hivex.h>
#include <hiveitem.h>
#include <QList>
#include <QDebug>
class NodeItem : public HiveItem
{
public:
NodeItem(HiveItem *parent, int index, QString name,
hive_h *hive, hive_node_h node);
NodeItem(HiveItem *parent, int index,
hive_h *hive, hive_node_h node);
virtual ~NodeItem();
virtual HiveItem *childItem(int index) override;
virtual int childCount() const override;
virtual bool isNode() const override;
virtual QList<HiveItem *> getValues();
private:
void loadChildren();
void loadValues();
static QString getNodeName(hive_h *hive, hive_node_h node);
hive_h *m_hive;
hive_node_h m_nodeHandle;
bool m_loadedChildren;
bool m_loadedValues;
QList<NodeItem *> m_children;
QList<HiveItem *> m_values;
QMutex m_childrenMutex;
QMutex m_valuesMutex;
friend QDebug operator<<(QDebug dbg, const NodeItem &node);
};
#endif // NODEITEM_H