3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
11 #ifndef EXTCAP_OPTIONS_DIALOG_H
12 #define EXTCAP_OPTIONS_DIALOG_H
18 #include <QPushButton>
21 #include "ui/qt/extcap_argument.h"
24 #include <extcap_parser.h>
27 class ExtcapOptionsDialog
;
30 typedef QList
<ExtcapArgument
*> ExtcapArgumentList
;
32 class ExtcapOptionsDialog
: public QDialog
37 ~ExtcapOptionsDialog();
38 static ExtcapOptionsDialog
* createForDevice(QString
&device_name
, bool startCaptureOnClose
, QWidget
*parent
= 0);
40 ExtcapValueList
loadValuesFor(int argNum
, QString call
, QString parent
= "");
43 void on_buttonBox_clicked(QAbstractButton
*button
);
44 void on_buttonBox_helpRequested();
46 void anyValueChanged();
49 explicit ExtcapOptionsDialog(bool startCaptureOnClose
, QWidget
*parent
= 0);
51 Ui::ExtcapOptionsDialog
*ui
;
54 QIcon defaultValueIcon_
;
56 ExtcapArgumentList extcapArguments
;
60 bool saveOptionToCaptureInfo();
61 GHashTable
* getArgumentSettings(bool useCallsAsKey
= false, bool includeEmptyValues
= true);
67 #endif // EXTCAP_OPTIONS_DIALOG_H