Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
traffic_table_dialog.h
Go to the documentation of this file.
1
10#ifndef TRAFFIC_TABLE_DIALOG_H
11#define TRAFFIC_TABLE_DIALOG_H
12
13#include <config.h>
14
15#include "file.h"
16
18
19#include "epan/follow.h"
20
21#include "capture_file.h"
22#include "filter_action.h"
23#include "wireshark_dialog.h"
24
25#include <QMenu>
26#include <QTreeWidgetItem>
27#include <QVBoxLayout>
28
29class QCheckBox;
30class QDialogButtonBox;
31class QPushButton;
32class QTabWidget;
33class QTreeWidget;
34class TrafficTab;
36
37namespace Ui {
39}
40
47{
48 Q_OBJECT
49
50public:
59 explicit TrafficTableDialog(QWidget &parent, CaptureFile &cf,
60 const QString &table_name = tr("Unknown"));
61
66
67signals:
75
80 void openFollowStreamDialog(int proto_id);
81
86 void openTcpStreamGraph(int graph_type);
87
88protected:
89 Ui::TrafficTableDialog *ui;
90 QPushButton *copy_bt_;
97 void addProgressFrame(QObject *parent);
98
103 QDialogButtonBox *buttonBox() const;
104
109 QCheckBox *displayFilterCheckBox() const;
110
115 QCheckBox *absoluteTimeCheckBox() const;
116
121 QVBoxLayout *getVerticalLayout() const;
122
127 TrafficTab *trafficTab() const;
128
134
135protected slots:
140 virtual void currentTabChanged();
141
142private slots:
147 void on_nameResolutionCheckBox_toggled(bool checked);
148
154 void displayFilterCheckBoxToggled(bool checked);
155
160 void aggregationSummaryOnlyCheckBoxToggled(bool checked);
161
167 void captureEvent(CaptureEvent e);
168
173 virtual void on_buttonBox_helpRequested() = 0;
174};
175
176#endif // TRAFFIC_TABLE_DIALOG_H
Represents an event occurring during a capture or file operation.
Definition capture_event.h:24
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Action
Defines an action to be taken with a filter.
Definition filter_action.h:30
ActionType
Defines how the new filter should be combined with the existing one.
Definition filter_action.h:43
A QTabWidget class, providing tap information.
Definition traffic_tab.h:106
Base dialog for traffic-statistics tables (Conversations, Endpoints, etc.), providing a shared tab ba...
Definition traffic_table_dialog.h:47
void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type)
Emitted when the user triggers a filter action from a table context menu.
QDialogButtonBox * buttonBox() const
Returns the dialog's button box.
Definition traffic_table_dialog.cpp:94
Ui::TrafficTableDialog * ui
Definition traffic_table_dialog.h:89
void addProgressFrame(QObject *parent)
Inserts a ProgressFrame into the dialog layout and connects it to the capture-file read progress sign...
Definition traffic_table_dialog.cpp:89
void openTcpStreamGraph(int graph_type)
Emitted to request that a TCP stream graph be opened.
TrafficTypesList * trafficList() const
Returns the protocol selector list widget.
Definition traffic_table_dialog.cpp:119
QVBoxLayout * getVerticalLayout() const
Returns the main vertical layout of the dialog for subclass use.
Definition traffic_table_dialog.cpp:99
TrafficTab * trafficTab() const
Returns the traffic tab widget that hosts per-protocol statistics tabs.
Definition traffic_table_dialog.cpp:114
~TrafficTableDialog()
Destroys the dialog and releases all associated resources.
Definition traffic_table_dialog.cpp:84
virtual void currentTabChanged()
Called when the active statistics tab changes; subclasses may override to update toolbar or button st...
Definition traffic_table_dialog.cpp:124
QCheckBox * displayFilterCheckBox() const
Returns the "Limit to display filter" check box.
Definition traffic_table_dialog.cpp:104
QPushButton * copy_bt_
Definition traffic_table_dialog.h:90
void openFollowStreamDialog(int proto_id)
Emitted to request that a Follow Stream dialog be opened for the given protocol.
QCheckBox * absoluteTimeCheckBox() const
Returns the "Absolute time" check box.
Definition traffic_table_dialog.cpp:109
Tree view widget that presents a filterable, sortable, checkable list of traffic-tap protocols and fo...
Definition traffic_types_list.h:229
Base class for Wireshark specific dialogs that require interaction with a CaptureFile.
Definition wireshark_dialog.h:38