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_registry_XImplementationRegistration_idl__
24#define __com_sun_star_registry_XImplementationRegistration_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30#ifndef __com_sun_star_registry_XSimpleRegistry_idl__
31#include <com/sun/star/registry/XSimpleRegistry.idl>
32#endif
33
34#ifndef __com_sun_star_registry_CannotRegisterImplementationException_idl__
35#include <com/sun/star/registry/CannotRegisterImplementationException.idl>
36#endif
37
38
39//=============================================================================
40
41 module com {  module sun {  module star {  module registry {
42
43//=============================================================================
44
45// DocMerge from xml: interface com::sun::star::registry::XImplementationRegistration
46/** offers a registry for implementation objects and provides information
47	about the registered implementations.
48 */
49published interface XImplementationRegistration: com::sun::star::uno::XInterface
50{
51	//-------------------------------------------------------------------------
52
53	// DocMerge from xml: method com::sun::star::registry::XImplementationRegistration::registerImplementation
54	/** registers a component which provides one or more implementations.
55
56		@param aLocation
57			specifies the location of the component with the URL.
58
59		@param xReg
60			specifies the registry where the component should be installed.
61			If it is a NULL interface, then the component will be installed
62			in the system registry (if this feature is supported).
63	 */
64	void registerImplementation( [in] string aImplementationLoader,
65			 [in] string aLocation,
66			 [in] com::sun::star::registry::XSimpleRegistry xReg )
67			raises( com::sun::star::registry::CannotRegisterImplementationException );
68
69	//-------------------------------------------------------------------------
70
71	// DocMerge from xml: method com::sun::star::registry::XImplementationRegistration::revokeImplementation
72	/** revokes a component and all their provided implementations from the registry.
73
74		@param aLocation
75			specifies the location of the component with the URL.
76
77		@param xReg
78			specifies the registry where the component should be installed.
79			If it is a NULL interface, then the component will be revoked
80			from the system registry (if this feature is supported).
81	 */
82	boolean revokeImplementation( [in] string aLocation,
83			 [in] com::sun::star::registry::XSimpleRegistry xReg );
84
85	//-------------------------------------------------------------------------
86	// DOCUMENTATION CHANGED FOR XImplementationRegistration::getImplementations
87
88	// DocMerge from idl: method com::sun::star::registry::XImplementationRegistration::getImplementations
89	/** @returns
90			the names of the implementations registered by the url location.
91
92		@param aImplementationLoader
93			specifies the name of the needed loader for this type of implementation. For
94			example, the loader "com.sun.star.loader.SharedLibrary" for implementations
95			that are realized as an SharedLibrary.
96
97		@param aLocation
98			specifies the location of the component with the URL.
99	 */
100	sequence<string> getImplementations( [in] string aImplementationLoader,
101			 [in] string aLocation );
102
103	//-------------------------------------------------------------------------
104	// DOCUMENTATION CHANGED FOR XImplementationRegistration::checkInstantiation
105
106	// DocMerge from idl: method com::sun::star::registry::XImplementationRegistration::checkInstantiation
107	/** @returns
108		 	a sequence with names of the missing services to create an instance of this implementation.
109
110        @param implementationName
111            specifies the name of the checked implementation.
112	 */
113	sequence<string> checkInstantiation( [in] string implementationName );
114
115};
116
117//=============================================================================
118
119}; }; }; };
120
121/*=============================================================================
122
123=============================================================================*/
124#endif
125