10 #ifndef IAX2_ANALYSIS_DIALOG_H 11 #define IAX2_ANALYSIS_DIALOG_H 22 #include <epan/address.h> 26 #include <QAbstractButton> 29 #include "wireshark_dialog.h" 40 TAP_IAX2_NO_PACKET_SELECTED,
41 TAP_IAX2_WRONG_LENGTH,
42 TAP_IAX2_FILE_IO_ERROR
55 void goToPacket(
int packet_num);
59 virtual void updateWidgets();
62 void on_actionGoToPacket_triggered();
63 void on_actionNextProblem_triggered();
64 void on_fJitterCheckBox_toggled(
bool checked);
65 void on_fDiffCheckBox_toggled(
bool checked);
66 void on_rJitterCheckBox_toggled(
bool checked);
67 void on_rDiffCheckBox_toggled(
bool checked);
68 void on_actionSaveAudio_triggered();
69 void on_actionSaveForwardAudio_triggered();
70 void on_actionSaveReverseAudio_triggered();
71 void on_actionSaveCsv_triggered();
72 void on_actionSaveForwardCsv_triggered();
73 void on_actionSaveReverseCsv_triggered();
74 void on_actionSaveGraph_triggered();
75 void on_buttonBox_helpRequested();
76 void showStreamMenu(QPoint pos);
77 void graphClicked(QMouseEvent *event);
81 enum StreamDirection { dir_both_, dir_forward_, dir_reverse_ };
84 guint32 port_src_fwd_;
86 guint32 port_dst_fwd_;
88 guint32 port_src_rev_;
90 guint32 port_dst_rev_;
95 QTemporaryFile *fwd_tempfile_;
96 QTemporaryFile *rev_tempfile_;
99 QList<QCPGraph *>graphs_;
100 QVector<double> fwd_time_vals_;
101 QVector<double> fwd_jitter_vals_;
102 QVector<double> fwd_diff_vals_;
104 QVector<double> rev_time_vals_;
105 QVector<double> rev_jitter_vals_;
106 QVector<double> rev_diff_vals_;
109 iax2_error_type_t save_payload_error_;
111 QMenu stream_ctx_menu_;
112 QMenu graph_ctx_menu_;
115 static void tapReset(
void *tapinfo_ptr);
116 static gboolean tapPacket(
void *tapinfo_ptr,
packet_info *pinfo,
struct epan_dissect *,
const void *iax2info_ptr);
117 static void tapDraw(
void *tapinfo_ptr);
119 void resetStatistics();
122 void updateStatistics();
125 void saveAudio(StreamDirection direction);
126 void saveCsv(StreamDirection direction);
130 guint32 getIntFromProtoTree(
proto_tree *protocol_tree,
const gchar *proto_name,
const gchar *proto_field,
bool *ok);
133 bool eventFilter(QObject*, QEvent* event);
136 #endif // IAX2_ANALYSIS_DIALOG_H
Definition: packet_info.h:44
Definition: iax2_analysis_dialog.h:46
Definition: ui_about_dialog.h:291
A plottable representing a graph in a plot.
Definition: qcustomplot.h:2492
Definition: capture_event.h:19
Definition: ui_iax2_analysis_dialog.h:305
Definition: tap-iax2-analysis.h:43
Definition: epan_dissect.h:28
Definition: wireshark_dialog.h:32
Definition: packet-iax2.h:228
Definition: capture_file.h:22