1*408a4873SAndrew Rist/************************************************************** 2cdf0e10cSrcweir * 3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*408a4873SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*408a4873SAndrew Rist * distributed with this work for additional information 6*408a4873SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance 9*408a4873SAndrew Rist * with the License. You may obtain a copy of the License at 10*408a4873SAndrew Rist * 11*408a4873SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*408a4873SAndrew Rist * 13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*408a4873SAndrew Rist * software distributed under the License is distributed on an 15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*408a4873SAndrew Rist * KIND, either express or implied. See the License for the 17*408a4873SAndrew Rist * specific language governing permissions and limitations 18*408a4873SAndrew Rist * under the License. 19*408a4873SAndrew Rist * 20*408a4873SAndrew Rist *************************************************************/ 21*408a4873SAndrew Rist 22*408a4873SAndrew Rist 23cdf0e10cSrcweir#ifndef __com_sun_star_beans_MethodConcept_idl__ 24cdf0e10cSrcweir#define __com_sun_star_beans_MethodConcept_idl__ 25cdf0e10cSrcweir 26cdf0e10cSrcweir 27cdf0e10cSrcweir//============================================================================= 28cdf0e10cSrcweir 29cdf0e10cSrcweir module com { module sun { module star { module beans { 30cdf0e10cSrcweir 31cdf0e10cSrcweir//============================================================================= 32cdf0e10cSrcweir/** These constants are used to specify concepts of the 33cdf0e10cSrcweir introspection which apply to methods. 34cdf0e10cSrcweir 35cdf0e10cSrcweir <p>This list is not necessarily complete; new constants 36cdf0e10cSrcweir may be added.</p> 37cdf0e10cSrcweir @see Introspection 38cdf0e10cSrcweir @see XIntrospection 39cdf0e10cSrcweir @see XIntrospectionAccess 40cdf0e10cSrcweir 41cdf0e10cSrcweir*/ 42cdf0e10cSrcweirpublished constants MethodConcept 43cdf0e10cSrcweir{ 44cdf0e10cSrcweir //------------------------------------------------------------------------- 45cdf0e10cSrcweir /** This value is used to query for all methods, see 46cdf0e10cSrcweir <member>XIntrospectionAccess::getMethod()</member> and 47cdf0e10cSrcweir <member>XIntrospectionAccess::getMethods()</member> 48cdf0e10cSrcweir */ 49cdf0e10cSrcweir const long ALL = -1; 50cdf0e10cSrcweir 51cdf0e10cSrcweir //------------------------------------------------------------------------- 52cdf0e10cSrcweir /** specifies methods which can result in an unstable state 53cdf0e10cSrcweir (i.e. deadlock, application crash, security hole, etc.) 54cdf0e10cSrcweir when called directly by the user. 55cdf0e10cSrcweir */ 56cdf0e10cSrcweir const long DANGEROUS = 1; 57cdf0e10cSrcweir 58cdf0e10cSrcweir //------------------------------------------------------------------------- 59cdf0e10cSrcweir /** specifies methods which are used to set and get the 60cdf0e10cSrcweir value of properties/attributes. 61cdf0e10cSrcweir 62cdf0e10cSrcweir <p>These methods have the signature <code>type get...() 63cdf0e10cSrcweir </code>, <code>void set...()</code> or <code>boolean is...() 64cdf0e10cSrcweir </code>. </p> 65cdf0e10cSrcweir */ 66cdf0e10cSrcweir const long PROPERTY = 2; 67cdf0e10cSrcweir 68cdf0e10cSrcweir //------------------------------------------------------------------------- 69cdf0e10cSrcweir /** specifies methods of the <em>listener concept</em>. 70cdf0e10cSrcweir 71cdf0e10cSrcweir <p>These methods have the signature <code>add...Listener() 72cdf0e10cSrcweir </code> or <code>remove...Listener()</code>. </p> 73cdf0e10cSrcweir */ 74cdf0e10cSrcweir const long LISTENER = 4; 75cdf0e10cSrcweir 76cdf0e10cSrcweir //------------------------------------------------------------------------- 77cdf0e10cSrcweir /** specifies methods of the <em>enumeration concept</em>. 78cdf0e10cSrcweir 79cdf0e10cSrcweir <p>These methods have the signature 80cdf0e10cSrcweir <code>create...Enumeration</code> and return an interface 81cdf0e10cSrcweir that is derived from <type scope="com::sun::star::container"> 82cdf0e10cSrcweir XEnumeration</type> Additionally, the method 83cdf0e10cSrcweir <method scope="com::sun::star::container">XEnumerationAccess::getElementType</method> 84cdf0e10cSrcweir belongs to this concept.</p> 85cdf0e10cSrcweir */ 86cdf0e10cSrcweir const long ENUMERATION = 8; 87cdf0e10cSrcweir 88cdf0e10cSrcweir //------------------------------------------------------------------------- 89cdf0e10cSrcweir /** specifies methods of the <em>name container concept</em>. 90cdf0e10cSrcweir 91cdf0e10cSrcweir <p>These methods have the signature 92cdf0e10cSrcweir <code>get...ByName()</code>, 93cdf0e10cSrcweir <code>set...ByName()</code>, 94cdf0e10cSrcweir <code>replace...ByName()</code>, 95cdf0e10cSrcweir <code>remove...ByName()</code>, 96cdf0e10cSrcweir <code>has...ByName()</code>, or 97cdf0e10cSrcweir <code>get...Names</code>. In addition, the method 98cdf0e10cSrcweir <method scope="com::sun::star::container">XEnumerationAccess::getElementType</method> 99cdf0e10cSrcweir belongs to this concept. </p> 100cdf0e10cSrcweir */ 101cdf0e10cSrcweir const long NAMECONTAINER = 16; 102cdf0e10cSrcweir 103cdf0e10cSrcweir //------------------------------------------------------------------------- 104cdf0e10cSrcweir /** specifies methods of the <em>index container concept</em>. 105cdf0e10cSrcweir 106cdf0e10cSrcweir <p>These methods have the signature 107cdf0e10cSrcweir <code>get...ByIndex()</code>, 108cdf0e10cSrcweir <code>insert...ByIndex()</code>, 109cdf0e10cSrcweir <code>replace...ByIndex()</code>, or 110cdf0e10cSrcweir <code>remove...ByIndex()</code>. 111cdf0e10cSrcweir The method <member scope="com::sun::star::container"> 112cdf0e10cSrcweir XIndexAccess::getCount()</member> 113cdf0e10cSrcweir also belongs to this concept. </p> 114cdf0e10cSrcweir */ 115cdf0e10cSrcweir const long INDEXCONTAINER = 32; 116cdf0e10cSrcweir 117cdf0e10cSrcweir}; 118cdf0e10cSrcweir 119cdf0e10cSrcweir//============================================================================= 120cdf0e10cSrcweir 121cdf0e10cSrcweir}; }; }; }; 122cdf0e10cSrcweir 123cdf0e10cSrcweir#endif 124