2014-11-19 00:21:42 +00:00
|
|
|
/* voip_calls_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VOIP_CALLS_DIALOG_H
|
|
|
|
#define VOIP_CALLS_DIALOG_H
|
|
|
|
|
2015-04-26 17:21:09 +00:00
|
|
|
#include <config.h>
|
2014-11-19 00:21:42 +00:00
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
|
2017-12-03 18:53:58 +00:00
|
|
|
#include "cfile.h"
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
#include "ui/voip_calls.h"
|
|
|
|
|
2017-07-25 14:47:16 +00:00
|
|
|
#include <ui/qt/models/voip_calls_info_model.h>
|
|
|
|
#include <ui/qt/models/cache_proxy_model.h>
|
2014-12-29 19:42:01 +00:00
|
|
|
#include "wireshark_dialog.h"
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
#include <QMenu>
|
|
|
|
|
|
|
|
class QAbstractButton;
|
|
|
|
|
2015-11-15 21:57:43 +00:00
|
|
|
class SequenceInfo;
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
namespace Ui {
|
|
|
|
class VoipCallsDialog;
|
|
|
|
}
|
|
|
|
|
2014-12-29 19:42:01 +00:00
|
|
|
class VoipCallsDialog : public WiresharkDialog
|
2014-11-19 00:21:42 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2014-12-29 19:42:01 +00:00
|
|
|
explicit VoipCallsDialog(QWidget &parent, CaptureFile &cf, bool all_flows = false);
|
2014-11-19 00:21:42 +00:00
|
|
|
~VoipCallsDialog();
|
|
|
|
|
|
|
|
public slots:
|
2015-12-06 21:29:53 +00:00
|
|
|
void endRetapPackets();
|
2014-11-19 00:21:42 +00:00
|
|
|
|
|
|
|
signals:
|
2015-09-18 21:33:41 +00:00
|
|
|
void updateFilter(QString filter, bool force = false);
|
2017-12-03 18:53:58 +00:00
|
|
|
void captureFileChanged(capture_file *cf);
|
2014-11-19 00:21:42 +00:00
|
|
|
void goToPacket(int packet_num);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void contextMenuEvent(QContextMenuEvent *event);
|
|
|
|
|
|
|
|
protected slots:
|
|
|
|
void changeEvent(QEvent* event);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::VoipCallsDialog *ui;
|
2017-02-13 00:36:58 +00:00
|
|
|
VoipCallsInfoModel *call_infos_model_;
|
2017-03-16 23:51:08 +00:00
|
|
|
CacheProxyModel *cache_model_;
|
2017-02-13 00:36:58 +00:00
|
|
|
QSortFilterProxyModel *sorted_model_;
|
2014-11-19 00:21:42 +00:00
|
|
|
|
2015-02-14 00:18:57 +00:00
|
|
|
QWidget &parent_;
|
2014-11-19 00:21:42 +00:00
|
|
|
voip_calls_tapinfo_t tapinfo_;
|
2015-11-15 21:57:43 +00:00
|
|
|
SequenceInfo *sequence_info_;
|
2014-11-19 00:21:42 +00:00
|
|
|
QPushButton *prepare_button_;
|
|
|
|
QPushButton *sequence_button_;
|
|
|
|
QPushButton *player_button_;
|
2016-06-16 21:09:28 +00:00
|
|
|
QPushButton *copy_button_;
|
2014-11-19 00:21:42 +00:00
|
|
|
QMenu ctx_menu_;
|
|
|
|
|
|
|
|
// Tap callbacks
|
|
|
|
// static void tapReset(void *tapinfo_ptr);
|
|
|
|
static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data);
|
|
|
|
static void tapDraw(void *tapinfo_ptr);
|
|
|
|
|
|
|
|
void updateCalls();
|
|
|
|
void prepareFilter();
|
|
|
|
void showSequence();
|
2014-12-13 00:51:40 +00:00
|
|
|
void showPlayer();
|
2014-11-19 00:21:42 +00:00
|
|
|
|
2016-06-16 21:09:28 +00:00
|
|
|
QList<QVariant> streamRowData(int row) const;
|
|
|
|
|
2014-11-19 00:21:42 +00:00
|
|
|
private slots:
|
2014-12-29 19:42:01 +00:00
|
|
|
void captureFileClosing();
|
2017-02-13 00:36:58 +00:00
|
|
|
void on_callTreeView_activated(const QModelIndex &index);
|
2014-11-19 00:21:42 +00:00
|
|
|
void on_actionSelect_All_triggered();
|
2016-06-16 21:09:28 +00:00
|
|
|
void on_actionCopyAsCsv_triggered();
|
|
|
|
void on_actionCopyAsYaml_triggered();
|
2014-11-19 00:21:42 +00:00
|
|
|
void on_buttonBox_clicked(QAbstractButton *button);
|
|
|
|
void on_buttonBox_helpRequested();
|
2017-02-13 00:36:58 +00:00
|
|
|
void on_todCheckBox_stateChanged(int state);
|
|
|
|
void updateWidgets();
|
2014-11-19 00:21:42 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // VOIP_CALLS_DIALOG_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|