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
24#ifndef __com_sun_star_reflection_XServiceTypeDescription_idl__
25#define __com_sun_star_reflection_XServiceTypeDescription_idl__
26
27#ifndef __com_sun_star_uno_XInterface_idl__
28#include <com/sun/star/uno/XInterface.idl>
29#endif
30#ifndef __com_sun_star_reflection_XInterfaceTypeDescription_idl__
31#include <com/sun/star/reflection/XInterfaceTypeDescription.idl>
32#endif
33#ifndef __com_sun_star_reflection_XPropertyTypeDescription_idl__
34#include <com/sun/star/reflection/XPropertyTypeDescription.idl>
35#endif
36
37//=============================================================================
38
39 module com {  module sun {  module star {  module reflection {
40
41//=============================================================================
42
43/** Reflects a service.
44
45    <p>This type is superseded by <type>XServiceTypeDescription2</type>, which
46    supports single-interface&ndash;based services, in addition to the obsolete,
47    accumulation-based services.</p>
48
49    <p>The type class of this type is
50    <member scope="com::sun::star::uno">TypeClass::SERVICE</member>.
51
52    @since OpenOffice 1.1.2
53  */
54published interface XServiceTypeDescription : com::sun::star::reflection::XTypeDescription
55{
56    /** Returns the type descriptions of the mandatory services
57        defined for this service.
58
59        @return a sequence containing service type descriptions, for an
60            obsolete, accumulation-based service; for a
61            single-interface&ndash;based service, an empty sequence is returned
62      */
63    sequence< XServiceTypeDescription > getMandatoryServices();
64
65    /** Returns the type descriptions of the optional services
66        defined for this service.
67
68        @return a sequence containing service type descriptions, for an
69            obsolete, accumulation-based service; for a
70            single-interface&ndash;based service, an empty sequence is returned
71      */
72    sequence< XServiceTypeDescription > getOptionalServices();
73
74    /** Returns the type descriptions of the mandatory interfaces
75        defined for this service.
76
77        @return a sequence containing interface type descriptions, for an
78            obsolete, accumulation-based service; for a
79            single-interface&ndash;based service, an empty sequence is returned
80      */
81    sequence< XInterfaceTypeDescription > getMandatoryInterfaces();
82
83    /** Returns the type descriptions of the optional interface
84        defined for this service.
85
86        @return a sequence containing interface type descriptions, for an
87            obsolete, accumulation-based service; for a
88            single-interface&ndash;based service, an empty sequence is returned
89      */
90    sequence< XInterfaceTypeDescription > getOptionalInterfaces();
91
92    /** Returns the properties defined for this service.
93
94        @return a sequence containing property descriptions, for an obsolete,
95            accumulation-based service; for a single-interface&ndash;based
96            service, an empty sequence is returned
97      */
98    sequence< XPropertyTypeDescription > getProperties();
99};
100
101//=============================================================================
102
103}; }; }; };
104
105#endif
106