| 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
21#include "ui/qt/extcap_argument.h"
22
23#include <extcap.h>
24#include <extcap_parser.h>
25
26namespace Ui {
27class ExtcapOptionsDialog;
28}
29
30typedef QList<ExtcapArgument *> ExtcapArgumentList;
31
32 class ExtcapOptionsDialog : public QDialog
33{
34 Q_OBJECT
35
36public:
37 ~ExtcapOptionsDialog();
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
ExtcapOptionsDialog
Definition extcap_options_dialog.h:33
extcap.h
extcap_argument.h
extcap_parser.h