Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
capture_info_dialog.h
Go to the documentation of this file.
1
10#ifndef CAPTURE_INFO_DIALOG_H
11#define CAPTURE_INFO_DIALOG_H
12
14
15#include <QAbstractTableModel>
16#include <QElapsedTimer>
17
18struct _capture_info;
19struct _capture_session;
20
21namespace Ui {
23}
24
25class CaptureInfoModel : public QAbstractTableModel
26{
27 Q_OBJECT
28
29public:
30 explicit CaptureInfoModel(struct _capture_info *cap_info, QObject * parent = Q_NULLPTR);
31 virtual ~CaptureInfoModel() {}
32 void updateInfo();
33
34 virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
35 virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
36 virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
37// virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
38
39private:
40 struct _capture_info *cap_info_;
41 int samples_;
42 QMap<int, int> last_count_;
43 QMap<int, QList<int> > points_;
44 int last_other_;
45 QList<int> other_points_;
46};
47
49{
50 Q_OBJECT
51
52public:
53 explicit CaptureInfoDialog(struct _capture_info *cap_info, struct _capture_session *cap_session, QWidget *parent = 0);
55 void updateInfo(void);
56
57signals:
58
59public slots:
60
61private slots:
62 void stopCapture();
63
64private:
65 Ui::CaptureInfoDialog *ui;
66 struct _capture_info *cap_info_;
67 struct _capture_session *cap_session_;
68 CaptureInfoModel *ci_model_;
69 QElapsedTimer duration_;
70};
71
72#endif // CAPTURE_INFO_DIALOG_H
Definition capture_info_dialog.h:49
Definition capture_info_dialog.h:26
Definition geometry_state_dialog.h:17
Definition capinfos.c:182
Definition capture_session.h:137