Wireshark  4.3.0
The Wireshark network protocol analyzer
io_graph_action.h
Go to the documentation of this file.
1 
10 #ifndef IO_GRAPH_ACTION_H
11 #define IO_GRAPH_ACTION_H
12 
14 #include <ui/io_graph_item.h>
15 
16 #include <QAction>
17 
18 class IOGraphAction : public QAction
19 {
20  Q_OBJECT
21 public:
22  explicit IOGraphAction(QObject *parent, io_graph_item_unit_t unit = IOG_ITEM_UNIT_PACKETS, QString field = QString());
23  explicit IOGraphAction(QObject *parent);
24 
25  io_graph_item_unit_t unit() const { return unit_; }
26 
27  QString valueField() const { return field_; }
28 
29  static const QString unitName(io_graph_item_unit_t unit);
30 
31  static QList<io_graph_item_unit_t> unitTypes(const FieldInformation::HeaderInfo& headerinfo);
32  static QMenu * createMenu(const FieldInformation::HeaderInfo& headerinfo, QWidget * parent);
33 
34 signals:
35  void openIOGraphDialog(io_graph_item_unit_t, QString);
36 
37 public slots:
38 
39 private:
40  io_graph_item_unit_t unit_;
41  QString field_;
42 
43 private slots:
44 
45 };
46 
47 #endif // IO_GRAPH_ACTION_H
Definition: io_graph_action.h:19
Definition: field_information.h:30