Extcap argument representing a boolean toggle (checkbox).
More...
#include <extcap_argument.h>
|
|
virtual void | setDefaultValue () |
| | Sets the checkbox to its default state.
|
| |
| virtual void | setDefaultValue () |
| | Slot to set the argument to its default value.
|
| |
| void | onBoolChanged (bool val) |
| | Slot to handle boolean value changes.
|
| |
| void | onIntChanged (int val) |
| | Slot to handle integer value changes.
|
| |
| void | onStringChanged (QString val) |
| | Slot to handle string value changes.
|
| |
|
| | ExtArgBool (extcap_arg *argument, QObject *parent=Q_NULLPTR) |
| | Constructs an ExtArgBool.
|
| |
| virtual QWidget * | createLabel (QWidget *parent) |
| | Creates the label widget for the boolean argument.
|
| |
| virtual QWidget * | createEditor (QWidget *parent) |
| | Creates the checkbox editor widget.
|
| |
| virtual QString | call () |
| | Retrieves the call string based on the boolean state.
|
| |
| virtual QString | value () |
| | Retrieves the boolean state as a string.
|
| |
| virtual bool | isValid () |
| | Checks if the boolean state is valid.
|
| |
| virtual QString | defaultValue () |
| | Retrieves the default boolean value as a string.
|
| |
| virtual QString | prefValue () |
| | Retrieves the preference value for the boolean argument.
|
| |
| virtual bool | isSetDefaultValueSupported () |
| | Checks if setting a default boolean value is supported.
|
| |
| | ExtcapArgument (QObject *parent=Q_NULLPTR) |
| | Constructs an empty ExtcapArgument.
|
| |
| | ExtcapArgument (extcap_arg *argument, QObject *parent=Q_NULLPTR) |
| | Constructs an ExtcapArgument from a core extcap_arg structure.
|
| |
| | ExtcapArgument (const ExtcapArgument &obj) |
| | Copy constructor for ExtcapArgument.
|
| |
|
virtual | ~ExtcapArgument () |
| | Destroys the ExtcapArgument.
|
| |
| virtual extcap_arg * | argument () |
| | Retrieves the underlying extcap_arg structure.
|
| |
| bool | isDefault () |
| | Checks if the argument currently holds its default value.
|
| |
| bool | isRequired () |
| | Checks if the argument is required.
|
| |
| bool | isSufficient () |
| | Checks if the argument provides sufficient information on its own.
|
| |
| bool | reload () |
| | Reloads the argument data.
|
| |
| QString | prefKey (const QString &device_name, const QString &option_name, const QString &option_value) |
| | Generates a preference key for this argument.
|
| |
|
void | resetValue () |
| | Resets the argument to its initial value.
|
| |
| virtual QString | group () const |
| | Retrieves the group name this argument belongs to.
|
| |
| virtual int | argNr () const |
| | Retrieves the argument number.
|
| |
Extcap argument representing a boolean toggle (checkbox).
◆ ExtArgBool()
| ExtArgBool::ExtArgBool |
( |
extcap_arg * |
argument, |
|
|
QObject * |
parent = Q_NULLPTR |
|
) |
| |
Constructs an ExtArgBool.
- Parameters
-
| argument | Pointer to the core extcap_arg. |
| parent | The parent QObject. |
◆ call()
| QString ExtArgBool::call |
( |
| ) |
|
|
virtual |
Retrieves the call string based on the boolean state.
- Returns
- The call string.
Reimplemented from ExtcapArgument.
◆ createEditor()
| QWidget * ExtArgBool::createEditor |
( |
QWidget * |
parent | ) |
|
|
virtual |
Creates the checkbox editor widget.
- Parameters
-
| parent | The parent widget for the editor. |
- Returns
- A pointer to the created checkbox widget.
Reimplemented from ExtcapArgument.
◆ createLabel()
| QWidget * ExtArgBool::createLabel |
( |
QWidget * |
parent | ) |
|
|
virtual |
Creates the label widget for the boolean argument.
- Parameters
-
- Returns
- A pointer to the created label widget.
Reimplemented from ExtcapArgument.
◆ defaultValue()
| QString ExtArgBool::defaultValue |
( |
| ) |
|
|
virtual |
Retrieves the default boolean value as a string.
- Returns
- The default boolean string representation.
Reimplemented from ExtcapArgument.
◆ isSetDefaultValueSupported()
| bool ExtArgBool::isSetDefaultValueSupported |
( |
| ) |
|
|
virtual |
Checks if setting a default boolean value is supported.
- Returns
- True if supported, false otherwise.
Reimplemented from ExtcapArgument.
◆ isValid()
| bool ExtArgBool::isValid |
( |
| ) |
|
|
virtual |
Checks if the boolean state is valid.
- Returns
- True if valid, false otherwise.
Reimplemented from ExtcapArgument.
◆ prefValue()
| QString ExtArgBool::prefValue |
( |
| ) |
|
|
virtual |
Retrieves the preference value for the boolean argument.
- Returns
- The preference value string.
Reimplemented from ExtcapArgument.
◆ value()
| QString ExtArgBool::value |
( |
| ) |
|
|
virtual |
Retrieves the boolean state as a string.
- Returns
- "true" or "false" string representation.
Reimplemented from ExtcapArgument.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/extcap_argument.h
- /builds/wireshark/wireshark/ui/qt/extcap_argument.cpp