Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
extcap_options_dialog.h
1 /* extcap_options_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
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 
21 #include "ui/qt/extcap_argument.h"
22 
23 #include <extcap.h>
24 #include <extcap_parser.h>
25 
26 namespace Ui {
28 }
29 
30 typedef QList<ExtcapArgument *> ExtcapArgumentList;
31 
32 class ExtcapOptionsDialog : public QDialog
33 {
34  Q_OBJECT
35 
36 public:
38  static ExtcapOptionsDialog * createForDevice(QString &device_name, QWidget *parent = 0);
39 
40  ExtcapValueList loadValuesFor(int argNum, QString call, QString parent = "");
41 
42 private Q_SLOTS:
43  void on_buttonBox_accepted();
44  void on_buttonBox_rejected();
45  void on_buttonBox_clicked(QAbstractButton *button);
46  void on_buttonBox_helpRequested();
47  void updateWidgets();
48  void anyValueChanged();
49 
50 private:
51  explicit ExtcapOptionsDialog(QWidget *parent = 0);
52 
54  QString device_name;
55  guint device_idx;
56 
57  ExtcapArgumentList extcapArguments;
58 
59  void loadArguments();
60 
61  bool saveOptionToCaptureInfo();
62  GHashTable * getArgumentSettings(bool useCallsAsKey = false);
63  void storeValues();
64  void resetValues();
65 
66 };
67 
68 #endif // EXTCAP_OPTIONS_DIALOG_H
69 
70 /*
71  * Editor modelines
72  *
73  * Local Variables:
74  * c-basic-offset: 4
75  * tab-width: 8
76  * indent-tabs-mode: nil
77  * End:
78  *
79  * ex: set shiftwidth=4 tabstop=8 expandtab:
80  * :indentSize=4:tabSize=8:noTabs=true:
81  */
Definition: ui_about_dialog.h:291
Definition: extcap_options_dialog.h:32
Definition: ui_extcap_options_dialog.h:81