Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_filter_combo.h
Go to the documentation of this file.
1
10#ifndef CAPTURE_FILTER_COMBO_H
11#define CAPTURE_FILTER_COMBO_H
12
14
15#include <QComboBox>
16#include <QList>
17
21class CaptureFilterCombo : public QComboBox
22{
23 Q_OBJECT
24public:
30 explicit CaptureFilterCombo(QWidget *parent = 0, bool plain = false);
31
37 bool addRecentCapture(const char *filter);
38
43 void writeRecent(FILE *rf);
44
49 void setConflict(bool conflict = false) { cf_edit_->setConflict(conflict); }
50
51signals:
56
62
67
68protected:
74 virtual bool event(QEvent *event);
75
76private:
80 void updateStyleSheet();
81
83 CaptureFilterEdit *cf_edit_;
84
85private slots:
89 void saveAndRebuildFilterList();
90
94 void rebuildFilterList();
95};
96
97#endif // CAPTURE_FILTER_COMBO_H
A combo box widget for entering and selecting capture filters, providing a history of recently used f...
Definition capture_filter_combo.h:22
bool addRecentCapture(const char *filter)
Adds a filter to the list of recently used capture filters.
void setConflict(bool conflict=false)
Sets the conflict state of the capture filter edit widget.
Definition capture_filter_combo.h:49
void startCapture()
Signal emitted to request starting a packet capture.
void writeRecent(FILE *rf)
Writes the recent capture filters to the provided file.
Definition capture_filter_combo.cpp:56
void interfacesChanged()
Signal emitted when the available network interfaces change.
void captureFilterSyntaxChanged(bool valid)
Signal emitted when the validity of the current capture filter syntax changes.
virtual bool event(QEvent *event)
Handles general events directed to the combo box.
Definition capture_filter_combo.cpp:68
A line edit widget specialized for editing, validating, and managing capture filters.
Definition capture_filter_edit.h:26
void setConflict(bool conflict=false)
Sets the visual conflict state of the capture filter edit.
Definition capture_filter_edit.cpp:286