Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / rpc_service_response_time_dialog.h
blob4fa7306a1df233ab2a72a672f6fa5fd4b8b9d617
1 /** @file
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
8 */
10 #ifndef __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
11 #define __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__
13 #include "service_response_time_dialog.h"
15 class QComboBox;
17 struct _guid_key;
18 struct _dcerpc_uuid_value;
19 struct _e_guid_t;
20 struct _rpc_prog_info_value;
22 class RpcServiceResponseTimeDialog : public ServiceResponseTimeDialog
24 Q_OBJECT
26 public:
27 enum RpcFamily {
28 DceRpc,
29 OncRpc
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);
46 protected:
47 virtual void provideParameterData();
49 public slots:
50 void dceRpcProgramChanged(const QString &program_name);
51 void oncRpcProgramChanged(const QString &program_name);
53 private:
54 RpcFamily dlg_type_;
55 QComboBox *program_combo_;
56 QComboBox *version_combo_;
57 QList<unsigned> versions_;
59 // DCE-RPC
60 QMap<QString, struct _guid_key *> dce_name_to_uuid_key_;
62 // ONC-RPC
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__