Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
capture_filter_combo.h
1 /* capture_filter_combo.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 CAPTURE_FILTER_COMBO_H
11 #define CAPTURE_FILTER_COMBO_H
12 
13 #include <ui/qt/widgets/capture_filter_edit.h>
14 
15 #include <QComboBox>
16 #include <QList>
17 
18 class CaptureFilterCombo : public QComboBox
19 {
20  Q_OBJECT
21 public:
22  explicit CaptureFilterCombo(QWidget *parent = 0, bool plain = false);
23  bool addRecentCapture(const char *filter);
24  void writeRecent(FILE *rf);
25  void setConflict(bool conflict = false) { cf_edit_->setConflict(conflict); }
26 
27 signals:
28  void interfacesChanged();
29  void pushFilterSyntaxStatus(const QString&);
30  void popFilterSyntaxStatus();
31  void captureFilterSyntaxChanged(bool valid);
32  void startCapture();
33 
34 public slots:
35 
36 private:
37  CaptureFilterEdit *cf_edit_;
38 
39 private slots:
40  void saveAndRebuildFilterList();
41  void rebuildFilterList();
42 };
43 
44 #endif // CAPTURE_FILTER_COMBO_H
45 
46 /*
47  * Editor modelines
48  *
49  * Local Variables:
50  * c-basic-offset: 4
51  * tab-width: 8
52  * indent-tabs-mode: nil
53  * End:
54  *
55  * ex: set shiftwidth=4 tabstop=8 expandtab:
56  * :indentSize=4:tabSize=8:noTabs=true:
57  */
Definition: capture_filter_combo.h:18
Definition: capture_filter_edit.h:20