Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
TaggingRuleItem Class Reference

Represents a single tagging rule item in a tree model. More...

#include <tagging_rules_model.h>

Inheritance diagram for TaggingRuleItem:
ModelHelperTreeItem< TaggingRuleItem >

Public Member Functions

 TaggingRuleItem (bool disabled, QString name, QString filter, QString tag_content, QString tag_url, QString comment, TaggingRuleItem *parent)
 Constructs a new TaggingRuleItem with explicit fields.
 TaggingRuleItem (tag_rule_t *rule, TaggingRuleItem *parent)
 Constructs a new TaggingRuleItem from a core tag rule structure.
 TaggingRuleItem (const TaggingRuleItem &item)
 Copy constructor for TaggingRuleItem.
virtual ~TaggingRuleItem ()
 Destroys the TaggingRuleItem.
TaggingRuleItem & operator= (TaggingRuleItem &rhs)
 Assignment operator for TaggingRuleItem.
Public Member Functions inherited from ModelHelperTreeItem< TaggingRuleItem >
 ModelHelperTreeItem (TaggingRuleItem *parent)
 Constructs a new ModelHelperTreeItem.
virtual ~ModelHelperTreeItem ()
 Destroys the ModelHelperTreeItem and its children.
void appendChild (TaggingRuleItem *child)
 Appends a child item to the end of the children list.
void prependChild (TaggingRuleItem *child)
 Prepends a child item to the beginning of the children list.
void insertChild (int row, TaggingRuleItem *child)
 Inserts a child item at the specified row.
void removeChild (int row)
 Removes and deletes the child item at the specified row.
TaggingRuleItem * child (int row)
 Retrieves the child item at the specified row.
int childCount () const
 Gets the total number of child items.
int row ()
 Gets the row index of this item relative to its parent.
TaggingRuleItem * parentItem ()
 Retrieves the parent item.

Public Attributes

bool disabled_
 Indicates if the rule is currently disabled.
QString name_
 The display name of the rule (also used as frame.tag value).
QString filter_
 The display filter expression associated with the rule.
QString tag_content_
 The visual content shown in the COL_TAG column (emoji / text).
QString tag_url_
 Optional URL opened when the COL_TAG cell is clicked.
QString comment_
 Optional reference comment.

Additional Inherited Members

Protected Attributes inherited from ModelHelperTreeItem< TaggingRuleItem >
TaggingRuleItem * parent_
QList< QVariant > childItems_

Detailed Description

Represents a single tagging rule item in a tree model.

Constructor & Destructor Documentation

◆ TaggingRuleItem() [1/3]

TaggingRuleItem::TaggingRuleItem ( bool disabled,
QString name,
QString filter,
QString tag_content,
QString tag_url,
QString comment,
TaggingRuleItem * parent )

Constructs a new TaggingRuleItem with explicit fields.

Parameters
disabledTrue if the rule is disabled.
nameThe name of the rule (also used as frame.tag value).
filterThe display filter expression for the rule.
tag_contentThe visual content shown in the COL_TAG column.
commentOptional reference comment.
parentThe parent rule item.

◆ TaggingRuleItem() [2/3]

TaggingRuleItem::TaggingRuleItem ( tag_rule_t * rule,
TaggingRuleItem * parent )

Constructs a new TaggingRuleItem from a core tag rule structure.

Parameters
rulePointer to the core tag rule.
parentThe parent rule item.

◆ TaggingRuleItem() [3/3]

TaggingRuleItem::TaggingRuleItem ( const TaggingRuleItem & item)

Copy constructor for TaggingRuleItem.

Parameters
itemThe item to copy.

Member Function Documentation

◆ operator=()

TaggingRuleItem & TaggingRuleItem::operator= ( TaggingRuleItem & rhs)

Assignment operator for TaggingRuleItem.

Parameters
rhsThe item to assign from.
Returns
A reference to this item.

The documentation for this class was generated from the following files: