| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
rpc_service_response_time_dialog.h
Go to the documentation of this file.
1
9
10#ifndef __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
11#define __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
12
13#include "service_response_time_dialog.h"
14
15 class QUuid;
16 class QComboBox;
17
18 struct _guid_key;
19 struct _dcerpc_uuid_value;
20 struct _rpc_prog_info_value;
21
25 class RpcServiceResponseTimeDialog : public ServiceResponseTimeDialog
26{
27 Q_OBJECT
28
29 public:
33 enum RpcFamily {
34 DceRpc,
35 OncRpc
36 };
37
46 RpcServiceResponseTimeDialog(QWidget &parent, CaptureFile &cf, struct register_srt *srt, RpcFamily dlg_type, const QString filter);
47
55 static TapParameterDialog *createDceRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf);
56
64 static TapParameterDialog *createOncRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf);
65
71 void addDceRpcProgram(_guid_key *key, struct _dcerpc_uuid_value *value);
72
77 void addDceRpcProgramVersion(_guid_key *key);
78
84 void addOncRpcProgram(uint32_t program, struct _rpc_prog_info_value *value);
85
91 void addOncRpcProgramVersion(uint32_t program, uint32_t version);
92
98 void setDceRpcUuidAndVersion(const QUuid &uuid, int version);
99
105 void setOncRpcProgramAndVersion(int program, int version);
106
112 void setRpcNameAndVersion(const QString &program_name, int version);
113
114 protected:
118 virtual void provideParameterData() override;
119
120 public slots:
125 void dceRpcProgramChanged(const QString &program_name);
126
131 void oncRpcProgramChanged(const QString &program_name);
132
133 private:
134 RpcFamily dlg_type_;
135 QComboBox *program_combo_;
136 QComboBox *version_combo_;
137 QList<unsigned> versions_;
138
139 // DCE-RPC
140 QMap<QString, struct _guid_key *> dce_name_to_uuid_key_;
141
142 // ONC-RPC
143 QMap<QString, uint32_t> onc_name_to_program_;
144
148 void clearVersionCombo();
149
153 void fillVersionCombo();
154
155};
156
157#endif // __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
RpcServiceResponseTimeDialog::addDceRpcProgram
void addDceRpcProgram(_guid_key *key, struct _dcerpc_uuid_value *value)
Adds a DCE-RPC program to the dialog.
Definition rpc_service_response_time_dialog.cpp:205
RpcServiceResponseTimeDialog::createDceRpcSrtDialog
static TapParameterDialog * createDceRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf)
Factory method to create a DCE-RPC SRT dialog.
Definition rpc_service_response_time_dialog.cpp:133
RpcServiceResponseTimeDialog::setRpcNameAndVersion
void setRpcNameAndVersion(const QString &program_name, int version)
Sets the RPC program by name and selects its version.
Definition rpc_service_response_time_dialog.cpp:279
RpcServiceResponseTimeDialog::dceRpcProgramChanged
void dceRpcProgramChanged(const QString &program_name)
Slot triggered when the DCE-RPC program selection changes.
Definition rpc_service_response_time_dialog.cpp:299
RpcServiceResponseTimeDialog::createOncRpcSrtDialog
static TapParameterDialog * createOncRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf)
Factory method to create an ONC-RPC SRT dialog.
Definition rpc_service_response_time_dialog.cpp:168
RpcServiceResponseTimeDialog::RpcFamily
RpcFamily
Defines the supported RPC families.
Definition rpc_service_response_time_dialog.h:33
RpcServiceResponseTimeDialog::OncRpc
@ OncRpc
Definition rpc_service_response_time_dialog.h:35
RpcServiceResponseTimeDialog::DceRpc
@ DceRpc
Definition rpc_service_response_time_dialog.h:34
RpcServiceResponseTimeDialog::addDceRpcProgramVersion
void addDceRpcProgramVersion(_guid_key *key)
Adds a specific version of a DCE-RPC program.
Definition rpc_service_response_time_dialog.cpp:210
RpcServiceResponseTimeDialog::addOncRpcProgram
void addOncRpcProgram(uint32_t program, struct _rpc_prog_info_value *value)
Adds an ONC-RPC program to the dialog.
Definition rpc_service_response_time_dialog.cpp:218
RpcServiceResponseTimeDialog::oncRpcProgramChanged
void oncRpcProgramChanged(const QString &program_name)
Slot triggered when the ONC-RPC program selection changes.
Definition rpc_service_response_time_dialog.cpp:310
RpcServiceResponseTimeDialog::setDceRpcUuidAndVersion
void setDceRpcUuidAndVersion(const QUuid &uuid, int version)
Sets the selected DCE-RPC UUID and version.
Definition rpc_service_response_time_dialog.cpp:239
RpcServiceResponseTimeDialog::RpcServiceResponseTimeDialog
RpcServiceResponseTimeDialog(QWidget &parent, CaptureFile &cf, struct register_srt *srt, RpcFamily dlg_type, const QString filter)
Constructs an RpcServiceResponseTimeDialog.
Definition rpc_service_response_time_dialog.cpp:94
RpcServiceResponseTimeDialog::setOncRpcProgramAndVersion
void setOncRpcProgramAndVersion(int program, int version)
Sets the selected ONC-RPC program and version.
Definition rpc_service_response_time_dialog.cpp:259
RpcServiceResponseTimeDialog::addOncRpcProgramVersion
void addOncRpcProgramVersion(uint32_t program, uint32_t version)
Adds a specific version of an ONC-RPC program.
Definition rpc_service_response_time_dialog.cpp:223
RpcServiceResponseTimeDialog::provideParameterData
virtual void provideParameterData() override
Provides parameter data required for the underlying SRT dialog.
Definition rpc_service_response_time_dialog.cpp:339
ServiceResponseTimeDialog::ServiceResponseTimeDialog
ServiceResponseTimeDialog(QWidget &parent, CaptureFile &cf, struct register_srt *srt, const QString filter, int help_topic=0)
Constructs a new ServiceResponseTimeDialog object.
Definition service_response_time_dialog.cpp:171
TapParameterDialog
Base class for statistics dialogs driven by a tap and an optional display filter, presenting results ...
Definition tap_parameter_dialog.h:58
service_response_time_dialog.h
_dcerpc_uuid_value
Definition packet-dcerpc.h:432
_guid_key
Lookup key for GUID-indexed dissector tables, combining a GUID with an optional version field.
Definition packet.h:503
_rpc_prog_info_value
Definition packet-rpc.h:192
register_srt
Definition srt_table.c:20