3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef VOIP_CALLS_DIALOG_H
23 #define VOIP_CALLS_DIALOG_H
29 #include "ui/voip_calls.h"
31 #include "wireshark_dialog.h"
37 class QAbstractButton;
38 class QTreeWidgetItem;
43 class VoipCallsDialog;
46 class QTreeWidgetItem;
47 class VoipCallsDialog : public WiresharkDialog
52 explicit VoipCallsDialog(QWidget &parent, CaptureFile &cf, bool all_flows = false);
56 void endRetapPackets();
59 void updateFilter(QString filter, bool force = false);
60 void captureFileChanged(struct _capture_file *cf);
61 void goToPacket(int packet_num);
64 void contextMenuEvent(QContextMenuEvent *event);
67 void changeEvent(QEvent* event);
70 Ui::VoipCallsDialog *ui;
73 voip_calls_tapinfo_t tapinfo_;
74 SequenceInfo *sequence_info_;
75 QPushButton *prepare_button_;
76 QPushButton *sequence_button_;
77 QPushButton *player_button_;
78 QPushButton *copy_button_;
82 // static void tapReset(void *tapinfo_ptr);
83 static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data);
84 static void tapDraw(void *tapinfo_ptr);
92 QList<QVariant> streamRowData(int row) const;
95 void captureFileClosing();
96 void on_callTreeWidget_itemActivated(QTreeWidgetItem *item, int);
97 void on_callTreeWidget_itemSelectionChanged();
98 void on_actionSelect_All_triggered();
99 void on_actionCopyAsCsv_triggered();
100 void on_actionCopyAsYaml_triggered();
101 void on_buttonBox_clicked(QAbstractButton *button);
102 void on_buttonBox_helpRequested();
105 #endif // VOIP_CALLS_DIALOG_H
113 * indent-tabs-mode: nil
116 * ex: set shiftwidth=4 tabstop=8 expandtab:
117 * :indentSize=4:tabSize=8:noTabs=true: