| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
distribution_dialog.h
Go to the documentation of this file.
1
9
10#ifndef DISTRIBUTIONDIALOG_H
11#define DISTRIBUTIONDIALOG_H
12
13#include "tap_parameter_dialog.h"
14
19 class DistributionDialog : public TapParameterDialog
20{
21 Q_OBJECT
22
23 public:
30 DistributionDialog(QWidget &parent, CaptureFile &cf, const QString &filter);
31
35 ~DistributionDialog();
36
37 protected:
42 void captureFileClosing() override;
43
48 void updateWidgets() override;
49
50 private:
51 int packet_count_;
52 QString displayFilter_;
53 bool tap_registered_;
54 int hf_index_;
55 bool needsQuotes_;
56 int field_type_;
57 wmem_map_t *fvalues_map;
58
64 static void tapReset(void *ws_dlg_ptr);
65
76 static tap_packet_status tapPacket(void *ws_dlg_ptr, struct _packet_info *pinfo,
77 struct epan_dissect *edt,
78 const void *dist_hdr_ptr, tap_flags_t flags);
79
85 static void tapDraw(void *ws_dlg_ptr);
86
90 static void tapRemoveAll(void *ws_dlg_ptr);
91
95 static void createItem(void*, void*, void*);
96
100 static void insertOccurence(void*, void*, void*);
101
105 void setFilterQuotes(int);
106
110 void setFieldType(int);
111
116 const QString filterExpression() override;
117
124 QList<QVariant> treeItemData(QTreeWidgetItem *it) const override;
125
126 private slots:
131 void fillTree() override;
132
136 void updateLabels();
137
143 void filterUpdated(QString filter);
144};
145
146#endif // DISTRIBUTIONDIALOG_H
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
DistributionDialog::~DistributionDialog
~DistributionDialog()
Destroys the dialog and deregisters the tap listener.
Definition distribution_dialog.cpp:254
DistributionDialog::updateWidgets
void updateWidgets() override
Inherit refresh of the enabled/disabled state of UI widgets based on current capture and filter state...
Definition distribution_dialog.cpp:267
DistributionDialog::DistributionDialog
DistributionDialog(QWidget &parent, CaptureFile &cf, const QString &filter)
Constructs the Distribution Statistics dialog and registers the tap listener.
Definition distribution_dialog.cpp:203
DistributionDialog::captureFileClosing
void captureFileClosing() override
Called when the associated capture file is being closed; stops the tap and disables any actions that ...
Definition distribution_dialog.cpp:497
TapParameterDialog::TapParameterDialog
TapParameterDialog(QWidget &parent, CaptureFile &cf, int help_topic=0)
Constructs the tap parameter dialog and registers it for retapping.
Definition tap_parameter_dialog.cpp:69
wmem_map_t
struct _wmem_map_t wmem_map_t
Opaque type representing a wmem-managed hash map.
Definition wmem_map.h:46
_packet_info
Represents the metadata and indexing information for a single captured frame.
Definition packet_info.h:43
epan_dissect
Holds all state for the dissection of a single byte array, including session, buffer,...
Definition epan_dissect.h:28
tap_packet_status
tap_packet_status
Definition tap.h:22
tap_parameter_dialog.h