GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / UnoControls / source / inc / OConnectionPointContainerHelper.hxx
blob09cce7499fc56d23b3c07ef4460439e75c56ea3f
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _OCONNECTIONPOINTCONTAINERHELPER_HXX
21 #define _OCONNECTIONPOINTCONTAINERHELPER_HXX
23 #include <com/sun/star/lang/XConnectionPointContainer.hpp>
24 #include <com/sun/star/lang/XConnectionPoint.hpp>
25 #include <cppuhelper/weak.hxx>
26 #include <cppuhelper/propshlp.hxx>
28 //______________________________________________________________________________________________________________
29 // namespaces
30 //______________________________________________________________________________________________________________
32 namespace unocontrols{
34 //______________________________________________________________________________________________________________
35 // class declaration OConnectionPointContainerHelper
36 //______________________________________________________________________________________________________________
38 class OConnectionPointContainerHelper : public ::com::sun::star::lang::XConnectionPointContainer
39 , public ::cppu::OWeakObject
42 //______________________________________________________________________________________________________________
43 // public methods
44 //______________________________________________________________________________________________________________
46 public:
48 //__________________________________________________________________________________________________________
49 // construct/destruct
50 //__________________________________________________________________________________________________________
52 /**_________________________________________________________________________________________________________
53 @short
54 @descr
56 @seealso
58 @param
60 @return
62 @onerror
65 OConnectionPointContainerHelper( ::osl::Mutex& aMutex );
67 /**_________________________________________________________________________________________________________
68 @short
69 @descr
71 @seealso
73 @param
75 @return
77 @onerror
80 virtual ~OConnectionPointContainerHelper();
82 //________________________________________________________________________________________________________
83 // XInterface
84 //________________________________________________________________________________________________________
86 /**_______________________________________________________________________________________________________
87 @short give answer, if interface is supported
88 @descr The interfaces are searched by type.
90 @seealso XInterface
92 @param "rType" is the type of searched interface.
94 @return Any information about found interface
96 @onerror A RuntimeException is thrown.
99 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType )
100 throw( ::com::sun::star::uno::RuntimeException );
102 /**_______________________________________________________________________________________________________
103 @short increment refcount
104 @descr -
106 @seealso XInterface
107 @seealso release()
109 @param -
111 @return -
113 @onerror A RuntimeException is thrown.
116 virtual void SAL_CALL acquire() throw();
118 /**_______________________________________________________________________________________________________
119 @short decrement refcount
120 @descr -
122 @seealso XInterface
123 @seealso acquire()
125 @param -
127 @return -
129 @onerror A RuntimeException is thrown.
132 virtual void SAL_CALL release() throw();
134 //__________________________________________________________________________________________________________
135 // XConnectionPointContainer
136 //__________________________________________________________________________________________________________
138 /**_________________________________________________________________________________________________________
139 @short
140 @descr
142 @seealso
144 @param
146 @return
148 @onerror
151 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getConnectionPointTypes()
152 throw( ::com::sun::star::uno::RuntimeException );
154 /**_________________________________________________________________________________________________________
155 @short
156 @descr
158 @seealso
160 @param
162 @return
164 @onerror
167 virtual ::com::sun::star::uno::Reference< ::com::sun::star::lang::XConnectionPoint > SAL_CALL queryConnectionPoint(
168 const ::com::sun::star::uno::Type& aType
169 ) throw( ::com::sun::star::uno::RuntimeException );
171 /**_________________________________________________________________________________________________________
172 @short
173 @descr
175 @seealso
177 @param
179 @return
181 @onerror
184 virtual void SAL_CALL advise(
185 const ::com::sun::star::uno::Type& aType ,
186 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener
187 ) throw( ::com::sun::star::uno::RuntimeException );
189 /**_________________________________________________________________________________________________________
190 @short
191 @descr
193 @seealso
195 @param
197 @return
199 @onerror
202 virtual void SAL_CALL unadvise(
203 const ::com::sun::star::uno::Type& aType ,
204 const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xListener
205 ) throw( ::com::sun::star::uno::RuntimeException );
207 /**_________________________________________________________________________________________________________
208 @short
209 @descr
211 @seealso
213 @param
215 @return
217 @onerror
220 ::cppu::OMultiTypeInterfaceContainerHelper& impl_getMultiTypeContainer();
222 //______________________________________________________________________________________________________________
223 // private variables
224 //______________________________________________________________________________________________________________
226 private:
228 ::osl::Mutex& m_aSharedMutex ;
229 ::cppu::OMultiTypeInterfaceContainerHelper m_aMultiTypeContainer ; // Container to hold listener
231 }; // class OConnectionPointContainerHelper
233 } // namespace unocontrols
235 #endif // #ifndef _OCONNECTIONPOINTCONTAINERHELPER_HXX
237 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */