| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
io_graph_action.h
Go to the documentation of this file.
1
9
10#ifndef IO_GRAPH_ACTION_H
11#define IO_GRAPH_ACTION_H
12
13#include <ui/qt/utils/field_information.h>
14#include <ui/io_graph_item.h>
15
16#include <QAction>
17
21 class IOGraphAction : public QAction
22{
23 Q_OBJECT
24 public:
31 explicit IOGraphAction(QObject *parent, io_graph_item_unit_t unit = IOG_ITEM_UNIT_PACKETS, QString field = QString());
32
37 explicit IOGraphAction(QObject *parent);
38
43 io_graph_item_unit_t unit() const { return unit_; }
44
49 QString valueField() const { return field_; }
50
56 static const QString unitName(io_graph_item_unit_t unit);
57
63 static QList<io_graph_item_unit_t> unitTypes(const FieldInformation::HeaderInfo& headerinfo);
64
71 static QMenu * createMenu(const FieldInformation::HeaderInfo& headerinfo, QWidget * parent);
72
73signals:
79 void openIOGraphDialog(io_graph_item_unit_t unit, QString field);
80
81 public slots:
82
83 private:
85 io_graph_item_unit_t unit_;
86
88 QString field_;
89
90 private slots:
91
92};
93
94#endif // IO_GRAPH_ACTION_H
IOGraphAction::IOGraphAction
IOGraphAction(QObject *parent, io_graph_item_unit_t unit=IOG_ITEM_UNIT_PACKETS, QString field=QString())
Constructs a new IOGraphAction with a specific unit and field.
Definition io_graph_action.cpp:23
IOGraphAction::createMenu
static QMenu * createMenu(const FieldInformation::HeaderInfo &headerinfo, QWidget *parent)
Creates a context menu containing IO graph actions appropriate for a specific header field.
Definition io_graph_action.cpp:103
IOGraphAction::openIOGraphDialog
void openIOGraphDialog(io_graph_item_unit_t unit, QString field)
Signal emitted to open the IO Graph dialog with the specified parameters.
IOGraphAction::unitName
static const QString unitName(io_graph_item_unit_t unit)
Retrieves the string name of a specific IO graph unit type.
Definition io_graph_action.cpp:32
IOGraphAction::valueField
QString valueField() const
Retrieves the configured protocol field string.
Definition io_graph_action.h:49
IOGraphAction::unitTypes
static QList< io_graph_item_unit_t > unitTypes(const FieldInformation::HeaderInfo &headerinfo)
Retrieves a list of applicable unit types for a given header field.
Definition io_graph_action.cpp:64
IOGraphAction::unit
io_graph_item_unit_t unit() const
Retrieves the configured IO graph item unit type.
Definition io_graph_action.h:43
IOGraphAction::IOGraphAction
IOGraphAction(QObject *parent)
Constructs a new basic IOGraphAction.
field_information.h
io_graph_item.h
io_graph_item_unit_t
io_graph_item_unit_t
Selects the Y-axis value unit or aggregate calculation mode for an I/O graph plot.
Definition io_graph_item.h:29
IOG_ITEM_UNIT_PACKETS
@ IOG_ITEM_UNIT_PACKETS
Definition io_graph_item.h:31
FieldInformation::HeaderInfo
Structure holding header field information.
Definition field_information.h:36