nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* rpc_service_response_time_dialog.h |
2 | * |
||
3 | * Wireshark - Network traffic analyzer |
||
4 | * By Gerald Combs <gerald@wireshark.org> |
||
5 | * Copyright 1998 Gerald Combs |
||
6 | * |
||
7 | * This program is free software; you can redistribute it and/or |
||
8 | * modify it under the terms of the GNU General Public License |
||
9 | * as published by the Free Software Foundation; either version 2 |
||
10 | * of the License, or (at your option) any later version. |
||
11 | * |
||
12 | * This program is distributed in the hope that it will be useful, |
||
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
15 | * GNU General Public License for more details. |
||
16 | * |
||
17 | * You should have received a copy of the GNU General Public License |
||
18 | * along with this program; if not, write to the Free Software |
||
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
||
20 | */ |
||
21 | |||
22 | #ifndef __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__ |
||
23 | #define __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__ |
||
24 | |||
25 | #include "service_response_time_dialog.h" |
||
26 | |||
27 | class QComboBox; |
||
28 | |||
29 | struct _guid_key; |
||
30 | struct _dcerpc_uuid_value; |
||
31 | struct _e_guid_t; |
||
32 | struct _rpc_prog_info_value; |
||
33 | |||
34 | class RpcServiceResponseTimeDialog : public ServiceResponseTimeDialog |
||
35 | { |
||
36 | Q_OBJECT |
||
37 | |||
38 | public: |
||
39 | enum RpcFamily { |
||
40 | DceRpc, |
||
41 | OncRpc |
||
42 | }; |
||
43 | |||
44 | RpcServiceResponseTimeDialog(QWidget &parent, CaptureFile &cf, struct register_srt *srt, RpcFamily dlg_type, const QString filter); |
||
45 | static TapParameterDialog *createDceRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf); |
||
46 | static TapParameterDialog *createOncRpcSrtDialog(QWidget &parent, const QString, const QString opt_arg, CaptureFile &cf); |
||
47 | |||
48 | void addDceRpcProgram(_guid_key *key, struct _dcerpc_uuid_value *value); |
||
49 | void addDceRpcProgramVersion(_guid_key *key); |
||
50 | void addOncRpcProgram(guint32 program, struct _rpc_prog_info_value *value); |
||
51 | void addOncRpcProgramVersion(guint32 program, guint32 version); |
||
52 | void updateOncRpcProcedureCount(guint32 program, guint32 version, int procedure); |
||
53 | |||
54 | void setDceRpcUuidAndVersion(struct _e_guid_t *uuid, int version); |
||
55 | void setOncRpcProgramAndVersion(int program, int version); |
||
56 | void setRpcNameAndVersion(const QString &program_name, int version); |
||
57 | |||
58 | public slots: |
||
59 | void dceRpcProgramChanged(const QString &program_name); |
||
60 | void oncRpcProgramChanged(const QString &program_name); |
||
61 | |||
62 | protected slots: |
||
63 | virtual void fillTree(); |
||
64 | |||
65 | private: |
||
66 | RpcFamily dlg_type_; |
||
67 | QComboBox *program_combo_; |
||
68 | QComboBox *version_combo_; |
||
69 | QList<unsigned> versions_; |
||
70 | |||
71 | // DCE-RPC |
||
72 | QMap<QString, struct _guid_key *> dce_name_to_uuid_key_; |
||
73 | |||
74 | // ONC-RPC |
||
75 | QMap<QString, guint32> onc_name_to_program_; |
||
76 | int onc_rpc_num_procedures_; |
||
77 | |||
78 | void clearVersionCombo(); |
||
79 | void fillVersionCombo(); |
||
80 | |||
81 | }; |
||
82 | |||
83 | #endif // __RPC_SERVICE_RESPONSE_TIME_DIALOG_H__ |
||
84 | |||
85 | /* |
||
86 | * Editor modelines |
||
87 | * |
||
88 | * Local Variables: |
||
89 | * c-basic-offset: 4 |
||
90 | * tab-width: 8 |
||
91 | * indent-tabs-mode: nil |
||
92 | * End: |
||
93 | * |
||
94 | * ex: set shiftwidth=4 tabstop=8 expandtab: |
||
95 | * :indentSize=4:tabSize=8:noTabs=true: |
||
96 | */ |