Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
sctp_graph_byte_dialog.h
Go to the documentation of this file.
1
10#ifndef SCTP_GRAPH_BYTE_DIALOG_H
11#define SCTP_GRAPH_BYTE_DIALOG_H
12
13#include <config.h>
14
15#include <epan/cfile.h>
16
17#include <QDialog>
18
19namespace Ui {
21}
22
23class QCPAbstractPlottable;
24
25struct _sctp_assoc_info;
26
31class SCTPGraphByteDialog : public QDialog
32{
33 Q_OBJECT
34
35public:
43 explicit SCTPGraphByteDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL,
44 capture_file *cf = NULL, int dir = 0);
45
50
51public slots:
56 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
57
58private slots:
62 void on_pushButton_4_clicked();
63
71 void graphClicked(QCPAbstractPlottable *plottable, int index, QMouseEvent *event);
72
76 void on_saveButton_clicked();
77
78private:
79 Ui::SCTPGraphByteDialog *ui;
80 uint16_t selected_assoc_id;
81 capture_file *cap_file_;
82 int frame_num;
83 int direction;
84 QVector<double> xb;
85 QVector<double> yb;
86 QVector<uint32_t> fb;
91 void drawGraph();
92
98 void drawBytesGraph(const _sctp_assoc_info *selected_assoc);
99};
100
101#endif // SCTP_GRAPH_DIALOG_H
Dialog that plots cumulative bytes sent over time for a single direction of an SCTP association.
Definition sctp_graph_byte_dialog.h:32
void setCaptureFile(capture_file *cf)
Updates the capture file pointer, e.g. after a file is closed or reloaded.
Definition sctp_graph_byte_dialog.h:56
~SCTPGraphByteDialog()
Destroys the dialog and releases the associated UI resources.
Definition sctp_graph_byte_dialog.cpp:54
Represents a capture file and its associated metadata.
Definition cfile.h:84
Definition tap-sctp-analysis.h:192