|
Wireshark 4.7.3
The Wireshark network protocol analyzer
|
An action that applies, prepares, or modifies a display filter. More...
#include <filter_action.h>
Public Types | |
| enum | Action { ActionApply , ActionColorize , ActionCopy , ActionFind , ActionPrepare , ActionWebLookup } |
| Defines an action to be taken with a filter. More... | |
| enum | ActionType { ActionTypePlain , ActionTypeNot , ActionTypeAnd , ActionTypeOr , ActionTypeAndNot , ActionTypeOrNot } |
| Defines how the new filter should be combined with the existing one. More... | |
| enum | ActionDirection { ActionDirectionAToFromB , ActionDirectionAToB , ActionDirectionAFromB , ActionDirectionAToFromAny , ActionDirectionAToAny , ActionDirectionAFromAny , ActionDirectionAnyToFromB , ActionDirectionAnyToB , ActionDirectionAnyFromB } |
| Defines the directionality aspect of the filter. More... | |
Public Member Functions | |
| FilterAction (QObject *parent, Action action, ActionType type, QString actionName) | |
| Constructs a FilterAction with a specific name. | |
| FilterAction (QObject *parent, Action action, ActionType type, ActionDirection direction) | |
| Constructs a FilterAction specifying a direction. | |
| FilterAction (QObject *parent, Action action, ActionType type) | |
| Constructs a FilterAction with a specific action and type. | |
| FilterAction (QObject *parent, Action action) | |
| Constructs a basic FilterAction. | |
| Action | action () |
| Retrieves the primary action. | |
| ActionType | actionType () |
| Retrieves the logical action type. | |
| ActionDirection | actionDirection () |
| Retrieves the action direction. | |
Static Public Member Functions | |
| static const QList< Action > | actions () |
| Retrieves a list of all available primary actions. | |
| static const QString | actionName (Action action) |
| Retrieves the string name of a specific action. | |
| static const QList< ActionType > | actionTypes (Action filter_action=ActionApply) |
| Retrieves a list of available action types for a given primary action. | |
| static const QString | actionTypeName (ActionType type) |
| Retrieves the string name of a specific action type. | |
| static const QList< ActionDirection > | actionDirections () |
| Retrieves a list of all available action directions. | |
| static const QString | actionDirectionName (ActionDirection direction) |
| Retrieves the string name of a specific action direction. | |
| static QActionGroup * | createFilterGroup (QString filter, bool prepare, bool enabled, QWidget *parent) |
| Creates an action group containing standard filter operations. | |
| static QMenu * | createFilterMenu (FilterAction::Action act, QString filter, bool enabled, QWidget *parent) |
| Creates a context menu containing standard filter operations. | |
| static QAction * | copyFilterAction (QString filter, QWidget *par) |
| Creates an action specifically to copy a filter string. | |
An action that applies, prepares, or modifies a display filter.
| enum FilterAction::Action |
Defines an action to be taken with a filter.
Defines the directionality aspect of the filter.
Defines how the new filter should be combined with the existing one.
|
explicit |
Constructs a FilterAction with a specific name.
| parent | The parent QObject. |
| action | The primary action type. |
| type | The logical combination type. |
| actionName | The custom name for the action. |
|
explicit |
Constructs a FilterAction specifying a direction.
| parent | The parent QObject. |
| action | The primary action type. |
| type | The logical combination type. |
| direction | The directionality of the filter. |
|
explicit |
Constructs a FilterAction with a specific action and type.
| parent | The parent QObject. |
| action | The primary action type. |
| type | The logical combination type. |
|
explicit |
Constructs a basic FilterAction.
| parent | The parent QObject. |
| action | The primary action type. |
|
inline |
Retrieves the action direction.
|
static |
Retrieves the string name of a specific action direction.
| direction | The action direction enumeration. |
|
static |
Retrieves a list of all available action directions.
|
static |
Retrieves the string name of a specific action.
| action | The action enumeration. |
|
static |
Retrieves a list of all available primary actions.
|
inline |
Retrieves the logical action type.
|
static |
Retrieves the string name of a specific action type.
| type | The action type enumeration. |
|
static |
Retrieves a list of available action types for a given primary action.
| filter_action | The primary action context (defaults to ActionApply). |
|
static |
Creates an action specifically to copy a filter string.
| filter | The filter string to copy. |
| par | The parent widget. |
|
static |
Creates an action group containing standard filter operations.
| filter | The base filter string. |
| prepare | True to only prepare the filter, false to apply it. |
| enabled | True if the actions should be enabled. |
| parent | The parent widget. |
|
static |
Creates a context menu containing standard filter operations.
| act | The primary action context. |
| filter | The base filter string. |
| enabled | True if the menu items should be enabled. |
| parent | The parent widget. |