Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_card_widget.h
Go to the documentation of this file.
1
9
10#ifndef CAPTURE_CARD_WIDGET_H
11#define CAPTURE_CARD_WIDGET_H
12
13#include <QFrame>
14
15class InterfaceFrame;
16
17namespace Ui {
18class CaptureCardWidget;
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
122 void updateInterfaceTypeButton();
123
125 QStringList interfaceTypeButtonTexts_;
126
127private slots:
132 void connectInterfaceListManager();
133
137 void appInitialized();
138
142 void interfaceListChanged();
143
148 void captureFilterTextEdited(const QString &filter);
149
153 void captureStarting();
154};
155
156#endif // CAPTURE_CARD_WIDGET_H
bool event(QEvent *event) override
Handles general events for the widget.
Definition capture_card_widget.cpp:294
void setCaptureFilterText(const QString &filter)
Sets the text of the capture filter input without necessarily applying it.
Definition capture_card_widget.cpp:115
void interfaceSelected()
Slot triggered when an interface is selected.
Definition capture_card_widget.cpp:255
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:110
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:105
InterfaceFrame * interfaceFrame()
Retrieves the interface frame associated with this capture card.
Definition capture_card_widget.cpp:100
CaptureCardWidget(QWidget *parent=nullptr)
Constructs a new CaptureCardWidget.
Definition capture_card_widget.cpp:35
void resizeEvent(QResizeEvent *event) override
Handles resize events for the widget.
Definition capture_card_widget.cpp:310
void captureFilterSyntaxChanged(bool valid)
Signal emitted when the syntax validity of the capture filter changes.
~CaptureCardWidget()
Destroys the CaptureCardWidget.
Definition capture_card_widget.cpp:87
A frame containing the list of interfaces available for capture, along with status and controls.
Definition interface_frame.h:39