Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_card_widget.h
Go to the documentation of this file.
1
10#ifndef CAPTURE_CARD_WIDGET_H
11#define CAPTURE_CARD_WIDGET_H
12
13#include <QFrame>
14
15class InterfaceFrame;
16
17namespace Ui {
19}
20
24class CaptureCardWidget : public QFrame {
25 Q_OBJECT
26public:
31 explicit CaptureCardWidget(QWidget *parent = nullptr);
32
37
43
48 const QString captureFilter();
49
54 void setCaptureFilter(const QString &filter);
55
60 void setCaptureFilterText(const QString &filter);
61
62public slots:
66 void interfaceSelected();
67
68signals:
73 void startCapture(QStringList ifaces);
74
80
86 void showExtcapOptions(QString device_name, bool startCaptureOnClose);
87
92
93protected:
99 bool event(QEvent *event) override;
100
105 void resizeEvent(QResizeEvent *event) override;
106
107private:
109 Ui::CaptureCardWidget *ui_;
110
114 void updateFilterRowVisibility();
115
116private slots:
120 void appInitialized();
121
125 void interfaceListChanged();
126
131 void captureFilterTextEdited(const QString &filter);
132
136 void captureStarting();
137};
138
139#endif // CAPTURE_CARD_WIDGET_H
A widget representing a capture card in the UI, providing interface selection and filtering capabilit...
Definition capture_card_widget.h:24
bool event(QEvent *event) override
Handles general events for the widget.
Definition capture_card_widget.cpp:202
void setCaptureFilterText(const QString &filter)
Sets the text of the capture filter input without necessarily applying it.
Definition capture_card_widget.cpp:99
void interfaceSelected()
Slot triggered when an interface is selected.
Definition capture_card_widget.cpp:163
void showExtcapOptions(QString device_name, bool startCaptureOnClose)
Signal emitted to show extcap options for a specific device.
void startCapture(QStringList ifaces)
Signal emitted to start a capture.
void setCaptureFilter(const QString &filter)
Sets the current capture filter.
Definition capture_card_widget.cpp:94
void interfacesChanged()
Signal emitted when the list or state of available interfaces changes.
const QString captureFilter()
Gets the current capture filter.
Definition capture_card_widget.cpp:89
InterfaceFrame * interfaceFrame()
Retrieves the interface frame associated with this capture card.
Definition capture_card_widget.cpp:84
void resizeEvent(QResizeEvent *event) override
Handles resize events for the widget.
Definition capture_card_widget.cpp:218
void captureFilterSyntaxChanged(bool valid)
Signal emitted when the syntax validity of the capture filter changes.
~CaptureCardWidget()
Destroys the CaptureCardWidget.
Definition capture_card_widget.cpp:79
A frame containing the list of interfaces available for capture, along with status and controls.
Definition interface_frame.h:37