| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
sctp_graph_byte_dialog.h
Go to the documentation of this file.
1
9
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
19 namespace Ui {
20 class SCTPGraphByteDialog;
21}
22
23 class QCPAbstractPlottable;
24
25 struct _sctp_assoc_info;
26
31 class SCTPGraphByteDialog : public QDialog
32{
33 Q_OBJECT
34
35 public:
43 explicit SCTPGraphByteDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL,
44 capture_file *cf = NULL, int dir = 0);
45
49 ~SCTPGraphByteDialog();
50
51 public slots:
56 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
57
58 private slots:
62 void on_pushButton_4_clicked();
63
71 void graphClicked(QCPAbstractPlottable *plottable, int index, QMouseEvent *event);
72
76 void on_saveButton_clicked();
77
78 private:
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;
87
91 void drawGraph();
92
98 void drawBytesGraph(const _sctp_assoc_info *selected_assoc);
99};
100
101#endif // SCTP_GRAPH_DIALOG_H
cfile.h
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
SCTPGraphByteDialog::setCaptureFile
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::SCTPGraphByteDialog
SCTPGraphByteDialog(QWidget *parent=0, const _sctp_assoc_info *assoc=NULL, capture_file *cf=NULL, int dir=0)
Constructs an SCTPGraphByteDialog and renders the initial bytes graph.
Definition sctp_graph_byte_dialog.cpp:25
SCTPGraphByteDialog::~SCTPGraphByteDialog
~SCTPGraphByteDialog()
Destroys the dialog and releases the associated UI resources.
Definition sctp_graph_byte_dialog.cpp:54
_sctp_assoc_info
Complete statistics and metadata record for a single SCTP association.
Definition tap-sctp-analysis.h:213