Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / extcap_argument_file.h
blob9dac908d59992d953a671a4ef26135c2b6185aef
1 /** @file
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
8 */
10 #ifndef UI_QT_EXTCAP_ARGUMENT_FILE_H_
11 #define UI_QT_EXTCAP_ARGUMENT_FILE_H_
13 #include <QObject>
14 #include <QWidget>
15 #include <QLineEdit>
17 #include <extcap_parser.h>
18 #include <extcap_argument.h>
20 class ExtcapArgumentFileSelection : public ExtcapArgument
22 Q_OBJECT
24 public:
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();
36 protected:
37 QLineEdit * textBox;
39 private slots:
40 /* opens the file dialog */
41 void openFileDialog();
42 /* clears previously entered filename */
43 void clearFilename();
46 #endif /* UI_QT_EXTCAP_ARGUMENT_FILE_H_ */