Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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
32class ExtcapOptionsDialog : public QDialog
33{
34 Q_OBJECT
35
36public:
38 static ExtcapOptionsDialog * createForDevice(QString &device_name, bool startCaptureOnClose, QWidget *parent = 0,
39 QString *option_name = NULL, QString *option_value = NULL);
40
41 ExtcapValueList loadValuesFor(int argNum, QString call, QString parent = "");
42
43private Q_SLOTS:
44 void on_buttonBox_clicked(QAbstractButton *button);
45 void on_buttonBox_helpRequested();
46 void updateWidgets();
47 void anyValueChanged();
48
49private:
50 explicit ExtcapOptionsDialog(bool startCaptureOnClose, QWidget *parent = 0);
51
52 Ui::ExtcapOptionsDialog *ui;
53 QString device_name;
54 QString option_name; // If using the UI to edit the config of a sub-argument
55 QString option_value; // If using the UI to edit the config of a sub-argument
56 unsigned device_idx;
57 QIcon defaultValueIcon_;
58
59 ExtcapArgumentList extcapArguments;
60
61 void loadArguments();
62
63 bool saveOptionToCaptureInfo();
64 GHashTable * getArgumentSettings(bool useCallsAsKey = false, bool includeEmptyValues = true);
65 void storeValues();
66 void resetValues();
67
68};
69
70#endif // EXTCAP_OPTIONS_DIALOG_H
Definition extcap_options_dialog.h:33