10#ifndef VOIP_CALLS_DIALOG_H
11#define VOIP_CALLS_DIALOG_H
29#include <QAbstractButton>
183 bool eventFilter(QObject *obj, QEvent *event)
override;
204 static std::mutex init_mutex_;
207 Ui::VoipCallsDialog *ui;
216 QSortFilterProxyModel *sorted_model_;
228 QPushButton *prepare_button_;
231 QPushButton *sequence_button_;
234 QPushButton *player_button_;
237 QPushButton *copy_button_;
240 bool voip_calls_tap_listeners_removed_;
243 GQueue* shown_callsinfos_;
250 static void tapReset(
void *tapinfo_ptr);
262 static void tapDraw(
void *tapinfo_ptr);
270 static int compareCallNums(
const void *a,
const void *b);
280 void prepareFilter();
295 void removeAllCalls();
300 void invertSelection();
307 QList<QVariant> streamRowData(
int row)
const;
313 QVector<rtpstream_id_t *>getSelectedRtpIds();
339 void switchTimeOfDay();
345 void on_callTreeView_activated(
const QModelIndex &index);
351 void on_buttonBox_clicked(QAbstractButton *button);
356 void on_buttonBox_helpRequested();
373 void displayFilterCheckBoxToggled(
bool checked);
378 void on_actionSelectAll_triggered();
383 void on_actionSelectInvert_triggered();
388 void on_actionSelectNone_triggered();
393 void on_actionSelectRtpStreams_triggered();
398 void on_actionDeselectRtpStreams_triggered();
struct _capture_file capture_file
Represents a capture file and its associated metadata.
Caches any data read access to the source model, returning an older copy if the source model is inval...
Definition cache_proxy_model.h:26
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
Reference-counted wrapper for sequence analysis information.
Definition sequence_dialog.h:36
void rtpPlayerDialogAddRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Signal emitted to request adding RTP streams to the player dialog.
void changeEvent(QEvent *event) override
Handles generic state change events.
Definition voip_calls_dialog.cpp:286
void rtpPlayerDialogReplaceRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Signal emitted to request replacing RTP streams in the player dialog.
void rtpPlayerReplace()
Slot to trigger replacing streams in the RTP player.
Definition voip_calls_dialog.cpp:644
void contextMenuEvent(QContextMenuEvent *event) override
Handles context menu events.
Definition voip_calls_dialog.cpp:258
void rtpStreamsDialogDeselectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Signal emitted to request deselecting specific RTP streams in the streams dialog.
void updateFilter(QString filter, bool force=false)
Signal emitted to update the display filter.
void rtpStreamsDialogSelectRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Signal emitted to request selecting specific RTP streams in the streams dialog.
void captureFileClosing() override
Handles operations required just before the capture file closes.
Definition voip_calls_dialog.cpp:234
static VoipCallsDialog * openVoipCallsDialogVoip(QWidget &parent, CaptureFile &cf, QObject *packet_list)
Returns singleton instance for VoIP calls.
Definition voip_calls_dialog.cpp:48
void operator=(const VoipCallsDialog &)=delete
Should not be assignable.
VoipCallsDialog(VoipCallsDialog &other)=delete
Should not be cloneable.
void rtpPlayerDialogRemoveRtpStreams(QVector< rtpstream_id_t * > stream_ids)
Signal emitted to request removing RTP streams from the player dialog.
void captureFileClosed() override
Handles cleanup after the capture file is fully closed.
Definition voip_calls_dialog.cpp:248
void rtpPlayerRemove()
Slot to trigger removing streams from the RTP player.
Definition voip_calls_dialog.cpp:658
void goToPacket(int packet_num)
Signal emitted to navigate to a specific packet.
virtual void removeTapListeners() override
Safely removes all tap listeners used by the dialog.
Definition voip_calls_dialog.cpp:225
~VoipCallsDialog()
Destroys the VoipCallsDialog object.
Definition voip_calls_dialog.cpp:198
void rtpPlayerAdd()
Slot to trigger adding streams to the RTP player.
Definition voip_calls_dialog.cpp:651
bool eventFilter(QObject *obj, QEvent *event) override
Event filter for capturing specific events.
Definition voip_calls_dialog.cpp:162
static VoipCallsDialog * openVoipCallsDialogSip(QWidget &parent, CaptureFile &cf, QObject *packet_list)
Returns singleton instance for SIP calls.
Definition voip_calls_dialog.cpp:60
void captureFileChanged(capture_file *cf)
Signal emitted when the capture file changes.
Table model that exposes a list of VoIP call records for display in the VoIP Calls dialog,...
Definition voip_calls_info_model.h:27
virtual void updateWidgets()
Updates the state and contents of the dialog's widgets.
Definition wireshark_dialog.cpp:92
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
struct epan_dissect epan_dissect_t
Opaque type representing a single packet dissection context.
Definition epan.h:62
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
tap_packet_status
Definition tap.h:22
struct _voip_calls_tapinfo voip_calls_tapinfo_t
Aggregated tap state for the VoIP calls analysis, covering all detected calls and streams.