xref: /aoo42x/main/udkapi/com/sun/star/bridge/Bridge.idl (revision 408a4873)
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_bridge_Bridge_idl__
24#define __com_sun_star_bridge_Bridge_idl__
25
26#ifndef __com_sun_star_lang_XInitialization_idl__
27#include <com/sun/star/lang/XInitialization.idl>
28#endif
29
30#ifndef __com_sun_star_lang_XComponent_idl__
31#include <com/sun/star/lang/XComponent.idl>
32#endif
33
34#ifndef __com_sun_star_bridge_XBridge_idl__
35#include <com/sun/star/bridge/XBridge.idl>
36#endif
37
38//=============================================================================
39
40module com {  module sun {  module star {  module bridge {
41
42//=============================================================================
43
44/** This meta service allows the bridgefactory service to instantiate an
45	interprocess bridge using a certain transfer protocol.
46
47	<p> Components, that support a certain protocol, must have at least two
48	service names: </p>
49
50	<ul>
51		<li> com.sun.star.bridge.Bridge </li>
52		<li> arbitrary-module-path.ProtocolnameBridge </li>
53	</ul>
54
55	<p>The protocol name should be written as common servicenames, first letter is a
56	capital letter, the rest in small letters postfixed by Bridge (e.g.:
57	<code>com.sun.star.bridge.UrpBridge</code> would be correct servicename for the
58	"urp" protocol).  However, the protocol names are compared case insensitive.
59	If there exist two services supporting the same protocol, it is arbitrary
60	which one is chosen, so this should be omitted. </p>
61 */
62published service Bridge
63{
64	/** allows to initialize the bridge service with the necessary
65		 arguments. The sequence&lt;any&gt; must have 4 members.
66
67		 <ol>
68			 <li> String: The unique name of the bridge or an empty string</li>
69			 <li> String: The protocol, that shall be instantiated</li>
70			 <li> XConnection: The bidirectional connection, the bridge should work on</li>
71			 <li> XInstanceProvider:
72				The instance provider, that shall be called to access the initial object.</li>
73		 </ol>
74	 */
75	interface com::sun::star::lang::XInitialization;
76
77	/** The main interface of the service
78	 */
79	interface com::sun::star::bridge::XBridge;
80
81	/** This interface allows to terminate the interprocess bridge.
82	 */
83	interface com::sun::star::lang::XComponent;
84
85};
86
87//=============================================================================
88
89}; }; }; };
90#endif
91