1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XRemoteContentProviderDistributor.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_ucb_XRemoteContentProviderDistributor_idl__
31 #define __com_sun_star_ucb_XRemoteContentProviderDistributor_idl__
33 #ifndef __com_sun_star_connection_ConnectionSetupException_idl__
34 #include
<com
/sun
/star
/connection
/ConnectionSetupException.idl
>
37 #ifndef __com_sun_star_connection_NoConnectException_idl__
38 #include
<com
/sun
/star
/connection
/NoConnectException.idl
>
41 #ifndef __com_sun_star_lang_IllegalArgumentException_idl__
42 #include
<com
/sun
/star
/lang
/IllegalArgumentException.idl
>
45 #ifndef __com_sun_star_uno_XInterface_idl__
46 #include
<com
/sun
/star
/uno
/XInterface.idl
>
50 //=============================================================================
52 module com
{ module sun
{ module star
{ module ucb
{
54 //=============================================================================
55 /** Distribute a content broker to variuos
56 <type>XRemoteContentProviderAcceptor</type>s.
59 @author Stephan Bergmann
60 @see XRemoteContentProviderAcceptor
62 published
interface XRemoteContentProviderDistributor
: com
::sun
::star
::uno
::XInterface
64 //-------------------------------------------------------------------------
65 /** Offer the local content broker to a remote content provider acceptor.
67 <p> The Uno Url is handed to the
68 <type scope="com::sun::star::bridge">UnoUrlResolver</type> service,
69 which is responsible for raising any of the advertised exceptions. </p>
71 @param Url A Uno Url to address the
72 <type>XRemoteContentProviderAcceptor</type>.
74 @param Identifier An identifier handed to the
75 <type>XRemoteContentProviderAcceptor</type>.
77 @returns success indicator. Escpecially, if there's already a
78 connection to the given Url, the call will fail, no matter whether
79 that connection uses the same identifier as the given one or not.
81 boolean connectToRemoteAcceptor
([in] string Url
,
82 [in] string Identifier
)
83 raises
(com
::sun
::star
::connection
::NoConnectException
,
84 com
::sun
::star
::connection
::ConnectionSetupException
,
85 com
::sun
::star
::lang
::IllegalArgumentException
);
87 //-------------------------------------------------------------------------
88 /** Undo the offering of the local content broker to a specific remote
89 content provider acceptor.
91 @param Url A Uno Url to address the
92 <type>XRemoteContentProviderAcceptor</type>.
94 @returns success indicator.
96 boolean disconnectFromRemoteAcceptor
([in] string Url
);
98 //-------------------------------------------------------------------------
99 /** Undo the offering of the local content broker to all remote content
102 void disconnectFromAll
();
105 //=============================================================================