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_lang_XConnectionPointContainer_idl__
24#define __com_sun_star_lang_XConnectionPointContainer_idl__
25
26#ifndef __com_sun_star_uno_XInterface_idl__
27#include <com/sun/star/uno/XInterface.idl>
28#endif
29
30//=============================================================================
31
32module com {  module sun {  module star {  module lang {
33
34 published interface XConnectionPoint;
35
36//=============================================================================
37
38// DocMerge from xml: interface com::sun::star::lang::XConnectionPointContainer
39/** makes it possible to locate a specific connection point
40	for a specified UIK and manages a sequence of connections points.
41
42	<p>An implementation of this interface <strong>must</strong>
43	support the <type scope="com::sun::star::uno">XWeak</type> interface.
44	Look at the language binding for a superclass or something else.  </p>
45
46	@see XConnectionPoint
47	@see com::sun::star::uno::XWeak
48 */
49published interface XConnectionPointContainer: com::sun::star::uno::XInterface
50{
51	//-------------------------------------------------------------------------
52
53	// DocMerge from idl: method com::sun::star::lang::XConnectionPointContainer::getConnectionPointTypes
54	/** @returns
55			a sequence of all outgoing types; specifies which are supported
56			by this connectable object.
57	 */
58	sequence<type> getConnectionPointTypes();
59
60	//-------------------------------------------------------------------------
61
62	// DocMerge from idl: method com::sun::star::lang::XConnectionPointContainer::queryConnectionPoint
63	/** @returns
64			an <type>XConnectionPoint</type> interface of a
65			connection point for a specified type if that type
66			describes a supported outgoing interface. It is
67			<const>NULL</const> on failure of the call.
68
69		@param aType
70			specifies the connection point's type.
71	 */
72	XConnectionPoint queryConnectionPoint( [in] type aType );
73
74	//-------------------------------------------------------------------------
75
76	// DocMerge from xml: method com::sun::star::lang::XConnectionPointContainer::advise
77	/** creates a connection between this object and a
78		client's sink, where the sink implements the outgoing
79		interface specified with ID.
80
81		<p>The interface is advised under the connection point you
82		get with <code>queryConnectionPoint( id )</code>.  </p>
83
84		<p>Use this method instead of the advise method at the
85		connection point, only if you know that the broadcaster supports
86		the outgoing interface, or if it does not matter that the
87		outgoing interface is not supported.  </p>
88
89		@see XConnectionPoint::advise
90	 */
91	[oneway] void advise( [in] type aType,
92			 [in] com::sun::star::uno::XInterface xListener );
93
94	//-------------------------------------------------------------------------
95
96	// DocMerge from xml: method com::sun::star::lang::XConnectionPointContainer::unadvise
97	/** terminates a notification previously set up with
98		advise at the container or at the suitable connection point.
99
100		@see XConnectionPoint::unadvise
101	 */
102	[oneway] void unadvise( [in] type aType,
103			 [in] com::sun::star::uno::XInterface xListener );
104
105};
106
107//=============================================================================
108
109}; }; }; };
110
111/*=============================================================================
112
113=============================================================================*/
114#endif
115