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_ucb_XRemoteContentProviderActivator_idl__
25#define __com_sun_star_ucb_XRemoteContentProviderActivator_idl__
26
27#ifndef __com_sun_star_uno_XInterface_idl__
28#include <com/sun/star/uno/XInterface.idl>
29#endif
30
31module com { module sun { module star { module ucb {
32
33 published interface XContentProviderManager;
34
35//============================================================================
36/** This interface should be implemented together with
37	<type>XRemoteContentProviderAcceptor</type>	and allows for a lazy
38    implementation of
39	<member>XRemoteContentProviderAcceptor::addRemoteContentProvider</member>.
40
41	The way this works might change, therefore this interface is marked as
42	deprectated.
43
44	@deprecated
45 */
46published interface XRemoteContentProviderActivator: com::sun::star::uno::XInterface
47{
48	//------------------------------------------------------------------------
49	/** Activate (i.e., register at the broker) the remote content providers
50		that until now have only been remembered by
51		<member>XRemoteContentProviderAcceptor::addRemoteContentProvider</member>,
52        but not registered.
53
54        <p>This allows for
55		<member>XRemoteContentProviderAcceptor::addRemoteContentProvider</member>
56		to be implemented in a layz fashion (remember the remote content
57		providers, but do not register them right away), which can increase
58		performance in certain situations.  But it is not required that an
59		implementation of <type>XRemoteContentProviderAcceptor</type> uses this
60        lazy strategy (and thus also implements this interface).
61
62		@return
63		the broker at which the remote content providers have been registered.
64	 */
65	XContentProviderManager activateRemoteContentProviders();
66};
67
68}; }; }; };
69
70#endif
71