30using namespace ::
cppu;
39 : m_aSharedMutex (
aMutex )
40 , m_aMultiTypeContainer (
aMutex )
56 Any aReturn ( ::cppu::queryInterface( aType ,
57 static_cast< XConnectionPointContainer*
> (
this )
62 if ( !aReturn.hasValue() )
65 aReturn = OWeakObject::queryInterface( aType );
79 OWeakObject::acquire();
90 OWeakObject::release();
106 Reference< XConnectionPoint > xConnectionPoint;
110 if ( pSpecialContainer && pSpecialContainer->
getLength() > 0 )
118 return xConnectionPoint;
124 const Reference< XInterface >& xListener )
133 const Reference< XInterface >& xListener )
sal_Int32 getLength() const
OInterfaceContainerHelper2 * getContainer(const css::uno::Type &rKey) const
sal_Int32 removeInterface(const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &rxIFace)
sal_Int32 addInterface(const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &r)
std::vector< css::uno::Type > getContainedTypes() const
::osl::Mutex & m_aSharedMutex
virtual ~OConnectionPointContainerHelper() override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
give answer, if interface is supported @descr The interfaces are searched by type.
virtual void SAL_CALL release() noexcept override
decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getConnectionPointTypes() override
virtual void SAL_CALL unadvise(const css::uno::Type &aType, const css::uno::Reference< css::uno::XInterface > &xListener) override
virtual void SAL_CALL advise(const css::uno::Type &aType, const css::uno::Reference< css::uno::XInterface > &xListener) override
OConnectionPointContainerHelper(::osl::Mutex &aMutex)
virtual void SAL_CALL acquire() noexcept override
increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.
comphelper::OMultiTypeInterfaceContainerHelper2 m_aMultiTypeContainer
virtual css::uno::Reference< css::lang::XConnectionPoint > SAL_CALL queryConnectionPoint(const css::uno::Type &aType) override
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)