/* rtp_stream_dialog.h * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef RTP_STREAM_DIALOG_H #define RTP_STREAM_DIALOG_H #include "wireshark_dialog.h" #include "ui/rtp_stream.h" #include "rtp_player_dialog.h" #include #include namespace Ui { class RtpStreamDialog; } class RtpStreamDialog : public WiresharkDialog { Q_OBJECT public: explicit RtpStreamDialog(QWidget &parent, CaptureFile &cf); ~RtpStreamDialog(); signals: // Tells the packet list to redraw. An alternative might be to add a // cf_packet_marked callback to file.[ch] but that's synchronous and // might incur too much overhead. void packetsMarked(); void updateFilter(QString filter, bool force = false); void goToPacket(int packet_num); public slots: void selectRtpStream(rtpstream_id_t *id); void deselectRtpStream(rtpstream_id_t *id); void displayFilterSuccess(bool success); protected: bool eventFilter(QObject *obj, QEvent *event); void captureFileClosing(); void captureFileClosed(); private: Ui::RtpStreamDialog *ui; rtpstream_tapinfo_t tapinfo_; QPushButton *find_reverse_button_; QPushButton *prepare_button_; QPushButton *export_button_; QPushButton *copy_button_; QPushButton *analyze_button_; QPushButton *player_button_; QMenu ctx_menu_; bool need_redraw_; QList last_selected_; static void tapReset(rtpstream_tapinfo_t *tapinfo); static void tapDraw(rtpstream_tapinfo_t *tapinfo); static void tapMarkPacket(rtpstream_tapinfo_t *tapinfo, frame_data *fd); void updateStreams(); void updateWidgets(); void showPlayer(); void setRtpStreamSelection(rtpstream_id_t *id, bool state); QList streamRowData(int row) const; void freeLastSelected(); private slots: void showStreamMenu(QPoint pos); void on_actionCopyAsCsv_triggered(); void on_actionCopyAsYaml_triggered(); void on_actionFindReverse_triggered(); void on_actionGoToSetup_triggered(); void on_actionMarkPackets_triggered(); void on_actionPrepareFilter_triggered(); void on_actionSelectNone_triggered(); void on_streamTreeWidget_itemSelectionChanged(); void on_buttonBox_helpRequested(); void on_buttonBox_clicked(QAbstractButton *button); void on_actionExportAsRtpDump_triggered(); void on_actionAnalyze_triggered(); void captureEvent(CaptureEvent e); void on_displayFilterCheckBox_toggled(bool checked); void on_todCheckBox_toggled(bool checked); }; #endif // RTP_STREAM_DIALOG_H