1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_script_InvocationInfo_idl__
24#define __com_sun_star_script_InvocationInfo_idl__
25
26#ifndef __com_sun_star_script_MemberType_idl__
27#include <com/sun/star/script/MemberType.idl>
28#endif
29
30#ifndef __com_sun_star_reflection_ParamMode_idl__
31#include <com/sun/star/reflection/ParamMode.idl>
32#endif
33
34//=============================================================================
35
36 module com {  module sun {  module star {  module script {
37
38//=============================================================================
39
40/**
41	This struct is used to specify information about object members
42	(methods or properties) accessed via XInvocation, such as names,
43	types, or parameters.
44	</p>
45 */
46published struct InvocationInfo
47{
48
49	/** Name of the method or property.
50	 */
51	string aName;
52
53	/** Kind of the member (method or property).
54	 */
55	MemberType eMemberType;
56
57	/** Only for property members:
58		This field may contain zero or more constants of the
59		<type scope="com::sun::star::beans">PropertyAttribute</type>
60		constants group. It is not guaranteed that all necessary
61		constants are set to describe the property completely,
62		but a flag will only be set, if the corresponding charac-
63		teristic really exists. Example: If the READONLY flag
64		is set, the property is readonly. If it isn't set, the
65		property nevertheless can be readonly.
66
67		For methods this field is irrelevant and is set to 0.
68	 */
69 	short PropertyAttribute;
70
71	/** Type of the member, for methods the return type
72	 */
73	type aType;
74
75	/** Types method parameters, for properties this sequence is empty
76	 */
77	sequence< type > aParamTypes;
78
79	/** Mode of method parameters (IN, OUT, INOUT),
80		for properties this sequence is empty.
81	 */
82	sequence< com::sun::star::reflection::ParamMode > aParamModes;
83};
84
85//=============================================================================
86
87}; }; }; };
88
89#endif
90