3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
11 #define __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
13 #include "service_response_time_dialog.h"
18 struct _dcerpc_uuid_value
;
20 struct _rpc_prog_info_value
;
22 class RpcServiceResponseTimeDialog
: public ServiceResponseTimeDialog
32 RpcServiceResponseTimeDialog(QWidget
&parent
, CaptureFile
&cf
, struct register_srt
*srt
, RpcFamily dlg_type
, const QString filter
);
33 static TapParameterDialog
*createDceRpcSrtDialog(QWidget
&parent
, const QString
, const QString opt_arg
, CaptureFile
&cf
);
34 static TapParameterDialog
*createOncRpcSrtDialog(QWidget
&parent
, const QString
, const QString opt_arg
, CaptureFile
&cf
);
36 void addDceRpcProgram(_guid_key
*key
, struct _dcerpc_uuid_value
*value
);
37 void addDceRpcProgramVersion(_guid_key
*key
);
38 void addOncRpcProgram(uint32_t program
, struct _rpc_prog_info_value
*value
);
39 void addOncRpcProgramVersion(uint32_t program
, uint32_t version
);
40 void updateOncRpcProcedureCount(uint32_t program
, uint32_t version
, int procedure
);
42 void setDceRpcUuidAndVersion(struct _e_guid_t
*uuid
, int version
);
43 void setOncRpcProgramAndVersion(int program
, int version
);
44 void setRpcNameAndVersion(const QString
&program_name
, int version
);
47 virtual void provideParameterData();
50 void dceRpcProgramChanged(const QString
&program_name
);
51 void oncRpcProgramChanged(const QString
&program_name
);
55 QComboBox
*program_combo_
;
56 QComboBox
*version_combo_
;
57 QList
<unsigned> versions_
;
60 QMap
<QString
, struct _guid_key
*> dce_name_to_uuid_key_
;
63 QMap
<QString
, uint32_t> onc_name_to_program_
;
64 int onc_rpc_num_procedures_
;
66 void clearVersionCombo();
67 void fillVersionCombo();
71 #endif // __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__