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_XRemoteContentProviderConnectionControl_idl__ 25#define __com_sun_star_ucb_XRemoteContentProviderConnectionControl_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 published interface XRemoteContentProviderAcceptor; 33}; }; }; }; 34 35module com { module sun { module star { module ucb { 36 37//============================================================================ 38/** A simple mechanism to find out if the connection between a remote content 39 provider distributor and acceptor gets lost. 40 41 <p>This interface should be supported by the <var>DoneListener</var> 42 parameter of 43 <member>XRemoteContentProviderAcceptor::addRemoteContentProvider</member>. 44 45 @version 1.0 46 @author Stephan Bergmann 47 */ 48published interface XRemoteContentProviderConnectionControl: 49 com::sun::star::uno::XInterface 50{ 51 //------------------------------------------------------------------------ 52 /** Enable connection control, using as a token some object implemented on 53 the remote content provider acceptor's side. 54 55 <p>The implementation of this interface must hold a reference to the 56 supplied token. If the connection gets lost, the reference count of 57 the token will drop, which the remote content provider acceptor can 58 observe. 59 60 @param Acceptor 61 The remote content provider acceptor on the other side of the 62 connection. 63 64 @param Token 65 Some object implemented on the remote content provider acceptor's side 66 of the connection. 67 */ 68 void 69 enableConnectionControl([in] XRemoteContentProviderAcceptor Acceptor, 70 [in] com::sun::star::uno::XInterface Token); 71}; 72 73}; }; }; }; 74 75#endif 76