Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
coloring_rule_utils.h
Go to the documentation of this file.
1
9
10#ifndef COLORING_RULE_UTILS_H
11#define COLORING_RULE_UTILS_H
12
13#include <config.h>
14
15#include <QColor>
16#include <QList>
17#include <QMetaType>
18#include <QString>
19
21class ProtoNode;
22
25 QString name;
26 QString filter;
27 bool disabled = false;
28};
29
32 QColor background;
33 QColor foreground;
34};
35
43{
44public:
55 static bool entryForNode(const ProtoNode *node, ColoringRuleEntry *entry);
56
62 static bool isDisabledEntryItem(const ProtoNode *node);
63
74 static bool setRuleEnabled(const ColoringRuleEntry &entry, bool enabled, QString *err);
75
87 static QList<ColoringRuleColors> matchColors(const PacketListRecord *record);
88};
89
90Q_DECLARE_METATYPE(ColoringRuleEntry)
91Q_DECLARE_METATYPE(ColoringRuleColors)
92
93#endif // COLORING_RULE_UTILS_H
Coloring rule lookups for the Qt views.
Definition coloring_rule_utils.h:43
static bool entryForNode(const ProtoNode *node, ColoringRuleEntry *entry)
Resolves the coloring rule entry a Frame tree item belongs to.
Definition coloring_rule_utils.cpp:124
static QList< ColoringRuleColors > matchColors(const PacketListRecord *record)
Colors a packet list record is drawn with.
Definition coloring_rule_utils.cpp:172
static bool isDisabledEntryItem(const ProtoNode *node)
Tells whether a Frame tree item belongs to a disabled rule's entry.
Definition coloring_rule_utils.cpp:136
static bool setRuleEnabled(const ColoringRuleEntry &entry, bool enabled, QString *err)
Enables or disables the rule of an entry and saves the rule list.
Definition coloring_rule_utils.cpp:142
Represents a single record within the packet list.
Definition packet_list_record.h:40
A wrapper class for the core proto_node structure, providing tree traversal and data access.
Definition proto_node.h:24
Colors of one coloring rule a packet matches.
Definition coloring_rule_utils.h:31
QColor background
Definition coloring_rule_utils.h:32
QColor foreground
Definition coloring_rule_utils.h:33
One coloring rule entry of the Frame tree.
Definition coloring_rule_utils.h:24
QString name
Definition coloring_rule_utils.h:25
QString filter
Definition coloring_rule_utils.h:26
bool disabled
Definition coloring_rule_utils.h:27