29 using namespace ::
osl;
30 using namespace ::
cppu;
39 : m_aSharedMutex ( aMutex )
40 , m_aMultiTypeContainer ( aMutex )
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 removeInterface(const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &rxIFace)
virtual void SAL_CALL advise(const css::uno::Type &aType, const css::uno::Reference< css::uno::XInterface > &xListener) override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &aType) override
give answer, if interface is supported The interfaces are searched by type.
virtual void SAL_CALL release() noexcept override
decrement refcount XInterface acquire() A RuntimeException is thrown.
virtual void SAL_CALL acquire() noexcept override
increment refcount XInterface release() A RuntimeException is thrown.
virtual ~OConnectionPointContainerHelper() override
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 css::uno::Reference< css::lang::XConnectionPoint > SAL_CALL queryConnectionPoint(const css::uno::Type &aType) override
comphelper::OMultiTypeInterfaceContainerHelper2 m_aMultiTypeContainer
OConnectionPointContainerHelper(::osl::Mutex &aMutex)
::osl::Mutex & m_aSharedMutex
std::vector< css::uno::Type > getContainedTypes() const
css::uno::Sequence< DstElementType > containerToSequence(const SrcType &i_Container)
OInterfaceContainerHelper2 * getContainer(const css::uno::Type &rKey) const
sal_Int32 addInterface(const css::uno::Type &rKey, const css::uno::Reference< css::uno::XInterface > &r)
sal_Int32 getLength() const
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)