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_XRemoteContentProviderDistributor_idl__ 28#define __com_sun_star_ucb_XRemoteContentProviderDistributor_idl__ 29 30#ifndef __com_sun_star_connection_ConnectionSetupException_idl__ 31#include <com/sun/star/connection/ConnectionSetupException.idl> 32#endif 33 34#ifndef __com_sun_star_connection_NoConnectException_idl__ 35#include <com/sun/star/connection/NoConnectException.idl> 36#endif 37 38#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 39#include <com/sun/star/lang/IllegalArgumentException.idl> 40#endif 41 42#ifndef __com_sun_star_uno_XInterface_idl__ 43#include <com/sun/star/uno/XInterface.idl> 44#endif 45 46 47//============================================================================= 48 49module com { module sun { module star { module ucb { 50 51//============================================================================= 52/** Distribute a content broker to variuos 53 <type>XRemoteContentProviderAcceptor</type>s. 54 55 @version 1.0 56 @author Stephan Bergmann 57 @see XRemoteContentProviderAcceptor 58*/ 59published interface XRemoteContentProviderDistributor: com::sun::star::uno::XInterface 60{ 61 //------------------------------------------------------------------------- 62 /** Offer the local content broker to a remote content provider acceptor. 63 64 <p> The Uno Url is handed to the 65 <type scope="com::sun::star::bridge">UnoUrlResolver</type> service, 66 which is responsible for raising any of the advertised exceptions. </p> 67 68 @param Url A Uno Url to address the 69 <type>XRemoteContentProviderAcceptor</type>. 70 71 @param Identifier An identifier handed to the 72 <type>XRemoteContentProviderAcceptor</type>. 73 74 @returns success indicator. Escpecially, if there's already a 75 connection to the given Url, the call will fail, no matter whether 76 that connection uses the same identifier as the given one or not. 77 */ 78 boolean connectToRemoteAcceptor([in] string Url, 79 [in] string Identifier) 80 raises (com::sun::star::connection::NoConnectException, 81 com::sun::star::connection::ConnectionSetupException, 82 com::sun::star::lang::IllegalArgumentException); 83 84 //------------------------------------------------------------------------- 85 /** Undo the offering of the local content broker to a specific remote 86 content provider acceptor. 87 88 @param Url A Uno Url to address the 89 <type>XRemoteContentProviderAcceptor</type>. 90 91 @returns success indicator. 92 */ 93 boolean disconnectFromRemoteAcceptor([in] string Url); 94 95 //------------------------------------------------------------------------- 96 /** Undo the offering of the local content broker to all remote content 97 provider acceptors. 98 */ 99 void disconnectFromAll(); 100}; 101 102//============================================================================= 103 104}; }; }; }; 105 106#endif 107