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_ucb_ContentProviderProxy_idl__
24#define __com_sun_star_ucb_ContentProviderProxy_idl__
25
26#ifndef __com_sun_star_ucb_XContentProviderSupplier_idl__
27#include <com/sun/star/ucb/XContentProviderSupplier.idl>
28#endif
29
30#ifndef __com_sun_star_ucb_XContentProvider_idl__
31#include <com/sun/star/ucb/XContentProvider.idl>
32#endif
33
34#ifndef __com_sun_star_ucb_XParameterizedContentProvider_idl__
35#include <com/sun/star/ucb/XParameterizedContentProvider.idl>
36#endif
37
38//=============================================================================
39
40module com { module sun { module star { module ucb {
41
42//=============================================================================
43/** is a proxy for a content provider.
44
45	<p>Implementing a content provider proxy can be useful if the creation of
46	the real content provider object shall be deferred for some reason
47	(i.e. performance) until the first method gets called on it. Instaead of
48	instanciating and registering the real provider at the UCB, a proxy for
49	the	real provider can be created and registered at the UCB.
50
51	@see XContentProviderProxyFactory
52*/
53published service ContentProviderProxy
54{
55	//-------------------------------------------------------------------------
56	/** The implementation of
57	    <member scope="com::sun::star::uno">XInterface::queryInterface</member>
58		must instanciate the real provider and return the return value
59		of a queryInterface call at the real provider, except for queries
60		for the interfaces implemented by the proxy itself. So the caller of
61		the queryInterface method at the proxy will get access to the real
62		provider in a completely transparent way.
63	 */
64	interface com::sun::star::uno::XInterface;
65
66	//-------------------------------------------------------------------------
67	/** gives access to the original content provider behind the proxy.
68
69	    <p>The implementation will instantiate the real content provider only
70		on demand using its UNO service name. This will load the content
71		providers implementation code (dynamic library), if not already done.
72	 */
73	interface com::sun::star::ucb::XContentProviderSupplier;
74
75	//-------------------------------------------------------------------------
76	/** a content provider implementation that wrappes the original provider.
77	 */
78	interface com::sun::star::ucb::XContentProvider;
79
80	//-------------------------------------------------------------------------
81	/** a parameterized content provider implementation that wrappes the
82	    original provider.
83	 */
84	interface com::sun::star::ucb::XParameterizedContentProvider;
85};
86
87//=============================================================================
88
89}; }; }; };
90
91#endif
92