summaryrefslogtreecommitdiffstats
path: root/ui/qt/traffic_table_dialog.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/qt/traffic_table_dialog.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/traffic_table_dialog.h')
-rw-r--r--ui/qt/traffic_table_dialog.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/ui/qt/traffic_table_dialog.h b/ui/qt/traffic_table_dialog.h
new file mode 100644
index 0000000..b742a52
--- /dev/null
+++ b/ui/qt/traffic_table_dialog.h
@@ -0,0 +1,84 @@
+/** @file
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef TRAFFIC_TABLE_DIALOG_H
+#define TRAFFIC_TABLE_DIALOG_H
+
+#include <config.h>
+
+#include "file.h"
+
+#include "epan/conversation_table.h"
+
+#include "epan/follow.h"
+
+#include "capture_file.h"
+#include "filter_action.h"
+#include "wireshark_dialog.h"
+
+#include <QMenu>
+#include <QTreeWidgetItem>
+
+class QCheckBox;
+class QDialogButtonBox;
+class QPushButton;
+class QTabWidget;
+class QTreeWidget;
+class TrafficTab;
+class TrafficTypesList;
+
+namespace Ui {
+class TrafficTableDialog;
+}
+
+class TrafficTableDialog : public WiresharkDialog
+{
+ Q_OBJECT
+
+public:
+ /** Create a new conversation window.
+ *
+ * @param parent Parent widget.
+ * @param cf Capture file. No statistics will be calculated if this is NULL.
+ * @param table_name If valid, add this protocol and bring it to the front.
+ */
+ explicit TrafficTableDialog(QWidget &parent, CaptureFile &cf, const QString &table_name = tr("Unknown"));
+ ~TrafficTableDialog();
+
+signals:
+ void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
+ void openFollowStreamDialog(int proto_id);
+ void openTcpStreamGraph(int graph_type);
+
+protected:
+ Ui::TrafficTableDialog *ui;
+
+ QPushButton *copy_bt_;
+
+ void addProgressFrame(QObject *parent);
+
+ // UI getters
+ QDialogButtonBox *buttonBox() const;
+ QCheckBox *displayFilterCheckBox() const;
+ QCheckBox *absoluteTimeCheckBox() const;
+ TrafficTab *trafficTab() const;
+ TrafficTypesList *trafficList() const;
+
+protected slots:
+ virtual void currentTabChanged();
+
+private slots:
+ void on_nameResolutionCheckBox_toggled(bool checked);
+ void displayFilterCheckBoxToggled(bool checked);
+ void captureEvent(CaptureEvent e);
+
+ virtual void on_buttonBox_helpRequested() = 0;
+};
+
+#endif // TRAFFIC_TABLE_DIALOG_H