Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
extcap_argument_file.h
1 /* extcap_argument_file.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 #ifndef UI_QT_EXTCAP_ARGUMENT_FILE_H_
11 #define UI_QT_EXTCAP_ARGUMENT_FILE_H_
12 
13 #include <QObject>
14 #include <QWidget>
15 #include <QLineEdit>
16 
17 #include <extcap_parser.h>
18 #include <extcap_argument.h>
19 
21 {
22  Q_OBJECT
23 
24 public:
25  ExtcapArgumentFileSelection(extcap_arg * argument, QObject * parent = Q_NULLPTR);
26  virtual ~ExtcapArgumentFileSelection();
27 
28  virtual QWidget * createEditor(QWidget * parent);
29 
30  virtual QString value();
31 
32  virtual bool isValid();
33 
34 protected:
35  QLineEdit * textBox;
36 
37 private slots:
38  /* opens the file dialog */
39  void openFileDialog();
40 
41 };
42 
43 #endif /* UI_QT_EXTCAP_ARGUMENT_FILE_H_ */
44 
45 /*
46  * Editor modelines
47  *
48  * Local Variables:
49  * c-basic-offset: 4
50  * tab-width: 8
51  * indent-tabs-mode: nil
52  * End:
53  *
54  * ex: set shiftwidth=4 tabstop=8 expandtab:
55  * :indentSize=4:tabSize=8:noTabs=true:
56  */
Definition: extcap_argument_file.h:20
Definition: extcap_argument.h:69
Definition: extcap_parser.h:99