Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
extcap_options_dialog.h
Go to the documentation of this file.
1
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 {
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
66private Q_SLOTS:
71 void on_buttonBox_clicked(QAbstractButton *button);
72
76 void on_buttonBox_helpRequested();
77
81 void updateWidgets();
82
86 void anyValueChanged();
87
88private:
94 explicit ExtcapOptionsDialog(bool startCaptureOnClose, QWidget *parent = 0);
95
97 Ui::ExtcapOptionsDialog *ui;
98
100 QString device_name;
101
103 QString option_name; // If using the UI to edit the config of a sub-argument
104
106 QString option_value; // If using the UI to edit the config of a sub-argument
107
109 unsigned device_idx;
110
112 QIcon defaultValueIcon_;
113
115 ExtcapArgumentList extcapArguments;
116
120 void loadArguments();
121
126 bool saveOptionToCaptureInfo();
127
134 GHashTable * getArgumentSettings(bool useCallsAsKey = false, bool includeEmptyValues = true);
135
139 void storeValues();
140
144 void resetValues();
145
146};
147
148#endif // EXTCAP_OPTIONS_DIALOG_H
A dialog for configuring extcap device options.
Definition extcap_options_dialog.h:36
ExtcapValueList loadValuesFor(int argNum, QString call, QString parent="")
Loads a list of available values for a specific argument.
Definition extcap_options_dialog.cpp:680
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:75
~ExtcapOptionsDialog()
Destroys the ExtcapOptionsDialog.
Definition extcap_options_dialog.cpp:131