3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
15 #include <epan/proto.h>
26 typedef struct _proto_node
* NodePtr
;
28 ChildIterator(NodePtr n
= Q_NULLPTR
);
38 explicit ProtoNode(proto_node
* node
= NULL
, ProtoNode
*parent
= nullptr);
43 bool isExpanded() const;
45 proto_node
*protoNode() const;
46 ProtoNode
*child(int row
);
47 int childrenCount() const;
49 ProtoNode
*parentNode();
51 QString
labelText() const;
53 ChildIterator
children() const;
57 QVector
<ProtoNode
*>m_children
;
59 static bool isHidden(proto_node
* node
);
63 #endif // PROTO_NODE_H_