| 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
15 class InterfaceFrame;
16
17 namespace Ui {
18 class CaptureCardWidget;
19}
20
24 class CaptureCardWidget : public QFrame {
25 Q_OBJECT
26 public:
31 explicit CaptureCardWidget(QWidget *parent = nullptr);
32
36 ~CaptureCardWidget();
37
42 InterfaceFrame *interfaceFrame();
43
48 const QString captureFilter();
49
54 void setCaptureFilter(const QString &filter);
55
60 void setCaptureFilterText(const QString &filter);
61
62 public slots:
66 void interfaceSelected();
67
68signals:
73 void startCapture(QStringList ifaces);
74
79 void captureFilterSyntaxChanged(bool valid);
80
86 void showExtcapOptions(QString device_name, bool startCaptureOnClose);
87
91 void interfacesChanged();
92
93 protected:
99 bool event(QEvent *event) override;
100
105 void resizeEvent(QResizeEvent *event) override;
106
107 private:
109 Ui::CaptureCardWidget *ui_;
110
114 void updateFilterRowVisibility();
115
122 void updateInterfaceTypeButton();
123
125 QStringList interfaceTypeButtonTexts_;
126
127 private 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
CaptureCardWidget::event
bool event(QEvent *event) override
Handles general events for the widget.
Definition capture_card_widget.cpp:294
CaptureCardWidget::setCaptureFilterText
void setCaptureFilterText(const QString &filter)
Sets the text of the capture filter input without necessarily applying it.
Definition capture_card_widget.cpp:115
CaptureCardWidget::interfaceSelected
void interfaceSelected()
Slot triggered when an interface is selected.
Definition capture_card_widget.cpp:255
CaptureCardWidget::showExtcapOptions
void showExtcapOptions(QString device_name, bool startCaptureOnClose)
Signal emitted to show extcap options for a specific device.
CaptureCardWidget::startCapture
void startCapture(QStringList ifaces)
Signal emitted to start a capture.
CaptureCardWidget::setCaptureFilter
void setCaptureFilter(const QString &filter)
Sets the current capture filter.
Definition capture_card_widget.cpp:110
CaptureCardWidget::interfacesChanged
void interfacesChanged()
Signal emitted when the list or state of available interfaces changes.
CaptureCardWidget::captureFilter
const QString captureFilter()
Gets the current capture filter.
Definition capture_card_widget.cpp:105
CaptureCardWidget::interfaceFrame
InterfaceFrame * interfaceFrame()
Retrieves the interface frame associated with this capture card.
Definition capture_card_widget.cpp:100
CaptureCardWidget::CaptureCardWidget
CaptureCardWidget(QWidget *parent=nullptr)
Constructs a new CaptureCardWidget.
Definition capture_card_widget.cpp:35
CaptureCardWidget::resizeEvent
void resizeEvent(QResizeEvent *event) override
Handles resize events for the widget.
Definition capture_card_widget.cpp:310
CaptureCardWidget::captureFilterSyntaxChanged
void captureFilterSyntaxChanged(bool valid)
Signal emitted when the syntax validity of the capture filter changes.
CaptureCardWidget::~CaptureCardWidget
~CaptureCardWidget()
Destroys the CaptureCardWidget.
Definition capture_card_widget.cpp:87
InterfaceFrame
A frame containing the list of interfaces available for capture, along with status and controls.
Definition interface_frame.h:39