1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_ucb_ContentProviderProxy_idl__
28#define __com_sun_star_ucb_ContentProviderProxy_idl__
29
30#ifndef __com_sun_star_ucb_XContentProviderSupplier_idl__
31#include <com/sun/star/ucb/XContentProviderSupplier.idl>
32#endif
33
34#ifndef __com_sun_star_ucb_XContentProvider_idl__
35#include <com/sun/star/ucb/XContentProvider.idl>
36#endif
37
38#ifndef __com_sun_star_ucb_XParameterizedContentProvider_idl__
39#include <com/sun/star/ucb/XParameterizedContentProvider.idl>
40#endif
41
42//=============================================================================
43
44module com { module sun { module star { module ucb {
45
46//=============================================================================
47/** is a proxy for a content provider.
48
49	<p>Implementing a content provider proxy can be useful if the creation of
50	the real content provider object shall be deferred for some reason
51	(i.e. performance) until the first method gets called on it. Instaead of
52	instanciating and registering the real provider at the UCB, a proxy for
53	the	real provider can be created and registered at the UCB.
54
55	@see XContentProviderProxyFactory
56*/
57published service ContentProviderProxy
58{
59	//-------------------------------------------------------------------------
60	/** The implementation of
61	    <member scope="com::sun::star::uno">XInterface::queryInterface</member>
62		must instanciate the real provider and return the return value
63		of a queryInterface call at the real provider, except for queries
64		for the interfaces implemented by the proxy itself. So the caller of
65		the queryInterface method at the proxy will get access to the real
66		provider in a completely transparent way.
67	 */
68	interface com::sun::star::uno::XInterface;
69
70	//-------------------------------------------------------------------------
71	/** gives access to the original content provider behind the proxy.
72
73	    <p>The implementation will instantiate the real content provider only
74		on demand using its UNO service name. This will load the content
75		providers implementation code (dynamic library), if not already done.
76	 */
77	interface com::sun::star::ucb::XContentProviderSupplier;
78
79	//-------------------------------------------------------------------------
80	/** a content provider implementation that wrappes the original provider.
81	 */
82	interface com::sun::star::ucb::XContentProvider;
83
84	//-------------------------------------------------------------------------
85	/** a parameterized content provider implementation that wrappes the
86	    original provider.
87	 */
88	interface com::sun::star::ucb::XParameterizedContentProvider;
89};
90
91//=============================================================================
92
93}; }; }; };
94
95#endif
96