Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
extcap_options_dialog.h
Go to the documentation of this file.
1
9
10
11#ifndef EXTCAP_OPTIONS_DIALOG_H
12#define EXTCAP_OPTIONS_DIALOG_H
13
14#include <config.h>
15
16#include <QWidget>
17#include <QDialog>
18#include <QPushButton>
19#include <QList>
20
22
23#include <extcap.h>
24#include <extcap_parser.h>
25
26namespace Ui {
27class ExtcapOptionsDialog;
28}
29
30typedef QList<ExtcapArgument *> ExtcapArgumentList;
31
35class ExtcapOptionsDialog : public QDialog
36{
37 Q_OBJECT
38
39public:
44
54 static ExtcapOptionsDialog * createForDevice(QString &device_name, bool startCaptureOnClose, QWidget *parent = 0,
55 QString *option_name = NULL, QString *option_value = NULL);
56
64 ExtcapValueList loadValuesFor(int argNum, QString call, QString parent = "");
65
70 GHashTable* getExtcapArgumentSettings();
71
72private Q_SLOTS:
77 void on_buttonBox_clicked(QAbstractButton *button);
78
82 void on_buttonBox_helpRequested();
83
87 void updateWidgets();
88
92 void anyValueChanged();
93
94private:
100 explicit ExtcapOptionsDialog(bool startCaptureOnClose, QWidget *parent = 0);
101
103 Ui::ExtcapOptionsDialog *ui;
104
106 QString device_name;
107
109 QString option_name; // If using the UI to edit the config of a sub-argument
110
112 QString option_value; // If using the UI to edit the config of a sub-argument
113
115 unsigned device_idx;
116
118 QIcon defaultValueIcon_;
119
121 ExtcapArgumentList extcapArguments;
122
124 GHashTable* ret_args;
125
129 void loadArguments();
130
135 bool saveOptionToCaptureInfo();
136
143 GHashTable * getArgumentSettings(bool useCallsAsKey = false, bool includeEmptyValues = true);
144
149 bool storeValues();
150
154 void resetValues();
155
156};
157
158#endif // EXTCAP_OPTIONS_DIALOG_H
ExtcapValueList loadValuesFor(int argNum, QString call, QString parent="")
Loads a list of available values for a specific argument.
Definition extcap_options_dialog.cpp:734
GHashTable * getExtcapArgumentSettings()
Retrieves the current extcap argument settings.
Definition extcap_options_dialog.cpp:511
static ExtcapOptionsDialog * createForDevice(QString &device_name, bool startCaptureOnClose, QWidget *parent=0, QString *option_name=NULL, QString *option_value=NULL)
Creates an ExtcapOptionsDialog for a specific device.
Definition extcap_options_dialog.cpp:77
~ExtcapOptionsDialog()
Destroys the ExtcapOptionsDialog.
Definition extcap_options_dialog.cpp:141