Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
conversation_dialog.h
1 /* conversation_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef CONVERSATION_DIALOG_H
11 #define CONVERSATION_DIALOG_H
12 
13 #include "traffic_table_dialog.h"
14 
16 {
17  Q_OBJECT
18 public:
19  explicit ConversationTreeWidget(QWidget *parent, register_ct_t* table);
21 
22  static void tapReset(void *conv_hash_ptr);
23  static void tapDraw(void *conv_hash_ptr);
24  double minRelStartTime() { return min_rel_start_time_; }
25  double maxRelStopTime() { return max_rel_stop_time_; }
26 
27 public slots:
28  void updateStartTime(bool absolute);
29 
30 private:
31  void initDirectionMap();
32  void updateItems();
33  double min_rel_start_time_; // seconds
34  double max_rel_stop_time_; // seconds
35 
36 private slots:
37  void filterActionTriggered();
38 };
39 
41 {
42  Q_OBJECT
43 
44 public:
52  explicit ConversationDialog(QWidget &parent, CaptureFile &cf, int cli_proto_id = -1, const char *filter = NULL);
54 
55 public slots:
56  void captureFileClosing();
57 
58 signals:
59  void filterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
60  void openFollowStreamDialog(follow_type_t type, int stream_num);
61  void openTcpStreamGraph(int graph_type);
62 
63 private:
64  QPushButton *follow_bt_;
65  QPushButton *graph_bt_;
66 
67  bool addTrafficTable(register_ct_t* table);
68  conv_item_t *currentConversation();
69 
70 private slots:
71  void currentTabChanged();
72  void conversationSelectionChanged();
73  void on_displayFilterCheckBox_toggled(bool checked);
74  void followStream();
75  void graphTcp();
76  void on_buttonBox_helpRequested();
77 };
78 
79 void init_conversation_table(struct register_ct* ct, const char *filter);
80 
81 #endif // CONVERSATION_DIALOG_H
82 
83 /*
84  * Editor modelines
85  *
86  * Local Variables:
87  * c-basic-offset: 4
88  * tab-width: 8
89  * indent-tabs-mode: nil
90  * End:
91  *
92  * ex: set shiftwidth=4 tabstop=8 expandtab:
93  * :indentSize=4:tabSize=8:noTabs=true:
94  */
Definition: traffic_table_dialog.h:47
Definition: conversation_table.c:24
Definition: conversation_dialog.h:15
Definition: conversation_dialog.h:40
Definition: traffic_table_dialog.h:90
Definition: capture_file.h:22
Definition: conversation_table.h:99