xref: /AOO41X/main/udkapi/com/sun/star/lang/XConnectionPointContainer.idl (revision 408a4873fc8bcc602c90ea4598886bb71abf0675)
1*408a4873SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*408a4873SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*408a4873SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*408a4873SAndrew Rist * distributed with this work for additional information
6*408a4873SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*408a4873SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*408a4873SAndrew Rist * "License"); you may not use this file except in compliance
9*408a4873SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11*408a4873SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir *
13*408a4873SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*408a4873SAndrew Rist * software distributed under the License is distributed on an
15*408a4873SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*408a4873SAndrew Rist * KIND, either express or implied.  See the License for the
17*408a4873SAndrew Rist * specific language governing permissions and limitations
18*408a4873SAndrew Rist * under the License.
19cdf0e10cSrcweir *
20*408a4873SAndrew Rist *************************************************************/
21*408a4873SAndrew Rist
22*408a4873SAndrew Rist
23cdf0e10cSrcweir#ifndef __com_sun_star_lang_XConnectionPointContainer_idl__
24cdf0e10cSrcweir#define __com_sun_star_lang_XConnectionPointContainer_idl__
25cdf0e10cSrcweir
26cdf0e10cSrcweir#ifndef __com_sun_star_uno_XInterface_idl__
27cdf0e10cSrcweir#include <com/sun/star/uno/XInterface.idl>
28cdf0e10cSrcweir#endif
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweirmodule com {  module sun {  module star {  module lang {
33cdf0e10cSrcweir
34cdf0e10cSrcweir published interface XConnectionPoint;
35cdf0e10cSrcweir
36cdf0e10cSrcweir//=============================================================================
37cdf0e10cSrcweir
38cdf0e10cSrcweir// DocMerge from xml: interface com::sun::star::lang::XConnectionPointContainer
39cdf0e10cSrcweir/** makes it possible to locate a specific connection point
40cdf0e10cSrcweir	for a specified UIK and manages a sequence of connections points.
41cdf0e10cSrcweir
42cdf0e10cSrcweir	<p>An implementation of this interface <strong>must</strong>
43cdf0e10cSrcweir	support the <type scope="com::sun::star::uno">XWeak</type> interface.
44cdf0e10cSrcweir	Look at the language binding for a superclass or something else.  </p>
45cdf0e10cSrcweir
46cdf0e10cSrcweir	@see XConnectionPoint
47cdf0e10cSrcweir	@see com::sun::star::uno::XWeak
48cdf0e10cSrcweir */
49cdf0e10cSrcweirpublished interface XConnectionPointContainer: com::sun::star::uno::XInterface
50cdf0e10cSrcweir{
51cdf0e10cSrcweir	//-------------------------------------------------------------------------
52cdf0e10cSrcweir
53cdf0e10cSrcweir	// DocMerge from idl: method com::sun::star::lang::XConnectionPointContainer::getConnectionPointTypes
54cdf0e10cSrcweir	/** @returns
55cdf0e10cSrcweir			a sequence of all outgoing types; specifies which are supported
56cdf0e10cSrcweir			by this connectable object.
57cdf0e10cSrcweir	 */
58cdf0e10cSrcweir	sequence<type> getConnectionPointTypes();
59cdf0e10cSrcweir
60cdf0e10cSrcweir	//-------------------------------------------------------------------------
61cdf0e10cSrcweir
62cdf0e10cSrcweir	// DocMerge from idl: method com::sun::star::lang::XConnectionPointContainer::queryConnectionPoint
63cdf0e10cSrcweir	/** @returns
64cdf0e10cSrcweir			an <type>XConnectionPoint</type> interface of a
65cdf0e10cSrcweir			connection point for a specified type if that type
66cdf0e10cSrcweir			describes a supported outgoing interface. It is
67cdf0e10cSrcweir			<const>NULL</const> on failure of the call.
68cdf0e10cSrcweir
69cdf0e10cSrcweir		@param aType
70cdf0e10cSrcweir			specifies the connection point's type.
71cdf0e10cSrcweir	 */
72cdf0e10cSrcweir	XConnectionPoint queryConnectionPoint( [in] type aType );
73cdf0e10cSrcweir
74cdf0e10cSrcweir	//-------------------------------------------------------------------------
75cdf0e10cSrcweir
76cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::lang::XConnectionPointContainer::advise
77cdf0e10cSrcweir	/** creates a connection between this object and a
78cdf0e10cSrcweir		client's sink, where the sink implements the outgoing
79cdf0e10cSrcweir		interface specified with ID.
80cdf0e10cSrcweir
81cdf0e10cSrcweir		<p>The interface is advised under the connection point you
82cdf0e10cSrcweir		get with <code>queryConnectionPoint( id )</code>.  </p>
83cdf0e10cSrcweir
84cdf0e10cSrcweir		<p>Use this method instead of the advise method at the
85cdf0e10cSrcweir		connection point, only if you know that the broadcaster supports
86cdf0e10cSrcweir		the outgoing interface, or if it does not matter that the
87cdf0e10cSrcweir		outgoing interface is not supported.  </p>
88cdf0e10cSrcweir
89cdf0e10cSrcweir		@see XConnectionPoint::advise
90cdf0e10cSrcweir	 */
91cdf0e10cSrcweir	[oneway] void advise( [in] type aType,
92cdf0e10cSrcweir			 [in] com::sun::star::uno::XInterface xListener );
93cdf0e10cSrcweir
94cdf0e10cSrcweir	//-------------------------------------------------------------------------
95cdf0e10cSrcweir
96cdf0e10cSrcweir	// DocMerge from xml: method com::sun::star::lang::XConnectionPointContainer::unadvise
97cdf0e10cSrcweir	/** terminates a notification previously set up with
98cdf0e10cSrcweir		advise at the container or at the suitable connection point.
99cdf0e10cSrcweir
100cdf0e10cSrcweir		@see XConnectionPoint::unadvise
101cdf0e10cSrcweir	 */
102cdf0e10cSrcweir	[oneway] void unadvise( [in] type aType,
103cdf0e10cSrcweir			 [in] com::sun::star::uno::XInterface xListener );
104cdf0e10cSrcweir
105cdf0e10cSrcweir};
106cdf0e10cSrcweir
107cdf0e10cSrcweir//=============================================================================
108cdf0e10cSrcweir
109cdf0e10cSrcweir}; }; }; };
110cdf0e10cSrcweir
111cdf0e10cSrcweir/*=============================================================================
112cdf0e10cSrcweir
113cdf0e10cSrcweir=============================================================================*/
114cdf0e10cSrcweir#endif
115