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
10 #ifndef UI_QT_EXTCAP_ARGUMENT_FILE_H_
11 #define UI_QT_EXTCAP_ARGUMENT_FILE_H_
17 #include <extcap_parser.h>
18 #include <extcap_argument.h>
20 class ExtcapArgumentFileSelection
: public ExtcapArgument
25 ExtcapArgumentFileSelection(extcap_arg
* argument
, QObject
* parent
= Q_NULLPTR
);
26 virtual ~ExtcapArgumentFileSelection();
28 virtual QWidget
* createEditor(QWidget
* parent
);
30 virtual QString
value();
32 virtual bool isValid();
34 virtual void setDefaultValue();
40 /* opens the file dialog */
41 void openFileDialog();
42 /* clears previously entered filename */
46 #endif /* UI_QT_EXTCAP_ARGUMENT_FILE_H_ */