|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
Represents a protocol item that can be enabled or disabled in a tree model. More...
#include <enabled_protocols_model.h>
Public Types | |
| enum | EnableProtocolType { Any , Standard , Heuristic } |
| Defines the type of enabled protocol. More... | |
Public Member Functions | |
| EnabledProtocolItem (QString name, QString description, bool enabled, EnabledProtocolItem *parent) | |
| Constructs a new EnabledProtocolItem. | |
| virtual | ~EnabledProtocolItem () |
| Destroys the EnabledProtocolItem. | |
| QString | name () const |
| Retrieves the name of the protocol. | |
| QString | description () const |
| Retrieves the description of the protocol. | |
| bool | enabled () const |
| Checks if the protocol is currently marked as enabled. | |
| void | setEnabled (bool enable) |
| Sets the enabled state of the protocol. | |
| EnableProtocolType | type () const |
| Retrieves the type of the protocol item. | |
| bool | applyValue () |
| Applies the current enabled value to the underlying core structures. | |
Public Member Functions inherited from ModelHelperTreeItem< EnabledProtocolItem > | |
| ModelHelperTreeItem (EnabledProtocolItem *parent) | |
| Constructs a new ModelHelperTreeItem. | |
| virtual | ~ModelHelperTreeItem () |
| Destroys the ModelHelperTreeItem and its children. | |
| void | appendChild (EnabledProtocolItem *child) |
| Appends a child item to the end of the children list. | |
| void | prependChild (EnabledProtocolItem *child) |
| Prepends a child item to the beginning of the children list. | |
| void | insertChild (int row, EnabledProtocolItem *child) |
| Inserts a child item at the specified row. | |
| void | removeChild (int row) |
| Removes and deletes the child item at the specified row. | |
| EnabledProtocolItem * | 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. | |
| EnabledProtocolItem * | parentItem () |
| Retrieves the parent item. | |
Protected Member Functions | |
| virtual void | applyValuePrivate (bool value)=0 |
| Implements the specific logic to apply the value change to the core. | |
Protected Attributes | |
| QString | name_ |
| QString | description_ |
| bool | enabled_ |
| bool | enabledInit_ |
| EnableProtocolType | type_ |
Protected Attributes inherited from ModelHelperTreeItem< EnabledProtocolItem > | |
| EnabledProtocolItem * | parent_ |
| QList< QVariant > | childItems_ |
Represents a protocol item that can be enabled or disabled in a tree model.
| EnabledProtocolItem::EnabledProtocolItem | ( | QString | name, |
| QString | description, | ||
| bool | enabled, | ||
| EnabledProtocolItem * | parent | ||
| ) |
Constructs a new EnabledProtocolItem.
| name | The name of the protocol. |
| description | The description of the protocol. |
| enabled | True if the protocol is enabled. |
| parent | The parent item in the tree. |
| bool EnabledProtocolItem::applyValue | ( | ) |
Applies the current enabled value to the underlying core structures.
|
protectedpure virtual |
Implements the specific logic to apply the value change to the core.
| value | The value to apply. |
Implemented in ProtocolTreeItem, and HeuristicTreeItem.
|
inline |
Retrieves the description of the protocol.
|
inline |
Checks if the protocol is currently marked as enabled.
|
inline |
Retrieves the name of the protocol.
|
inline |
Sets the enabled state of the protocol.
| enable | True to enable, false to disable. |
| EnabledProtocolItem::EnableProtocolType EnabledProtocolItem::type | ( | ) | const |
Retrieves the type of the protocol item.
|
protected |
The protocol description.
|
protected |
The current enabled state.
|
protected |
The initial enabled state, used to determine if a change occurred.
|
protected |
The protocol name.
|
protected |
The protocol classification type.