Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / sctp_graph_byte_dialog.h
blobb331ad9ff70d06091b523640ddcfcb41cf71d9bd
1 /** @file
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
10 #ifndef SCTP_GRAPH_BYTE_DIALOG_H
11 #define SCTP_GRAPH_BYTE_DIALOG_H
13 #include <config.h>
15 #include "cfile.h"
17 #include <QDialog>
19 namespace Ui {
20 class SCTPGraphByteDialog;
23 class QCPAbstractPlottable;
25 struct _sctp_assoc_info;
27 class SCTPGraphByteDialog : public QDialog
29 Q_OBJECT
31 public:
32 explicit SCTPGraphByteDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL,
33 capture_file *cf = NULL, int dir = 0);
34 ~SCTPGraphByteDialog();
36 public slots:
37 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
39 private slots:
40 void on_pushButton_4_clicked();
42 void graphClicked(QCPAbstractPlottable* plottable, int, QMouseEvent* event);
44 void on_saveButton_clicked();
46 private:
47 Ui::SCTPGraphByteDialog *ui;
48 uint16_t selected_assoc_id;
49 capture_file *cap_file_;
50 int frame_num;
51 int direction;
52 QVector<double> xb, yb;
53 QVector<uint32_t> fb;
55 void drawGraph();
56 void drawBytesGraph(const _sctp_assoc_info *selected_assoc);
59 #endif // SCTP_GRAPH_DIALOG_H