LibreOffice Module UnoControls (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
unocontrols::OConnectionPointHelper Class Referencefinal

#include <OConnectionPointHelper.hxx>

Inheritance diagram for unocontrols::OConnectionPointHelper:
[legend]
Collaboration diagram for unocontrols::OConnectionPointHelper:
[legend]

Public Member Functions

 OConnectionPointHelper (::osl::Mutex &aMutex, OConnectionPointContainerHelper *pContainerImplementation, css::uno::Type const &aType)
 
virtual ~OConnectionPointHelper () 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. More...
 
virtual void SAL_CALL acquire () noexcept override
 increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () noexcept override
 decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown. More...
 
virtual css::uno::Type SAL_CALL getConnectionType () override
 
virtual css::uno::Reference< css::lang::XConnectionPointContainer > SAL_CALL getConnectionPointContainer () override
 
virtual void SAL_CALL advise (const css::uno::Reference< css::uno::XInterface > &xListener) override
 
virtual void SAL_CALL unadvise (const css::uno::Reference< css::uno::XInterface > &xListener) override
 
virtual css::uno::Sequence< css::uno::Reference< css::uno::XInterface > > SAL_CALL getConnections () override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Member Functions

bool impl_LockContainer ()
 
void impl_UnlockContainer ()
 

Private Attributes

::osl::Mutex & m_aSharedMutex
 
css::uno::WeakReference< css::lang::XConnectionPointContainer > m_oContainerWeakReference
 
OConnectionPointContainerHelperm_pContainerImplementation
 
css::uno::Type m_aInterfaceType
 
css::uno::Reference< css::uno::XInterface > m_xLock
 

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 31 of file OConnectionPointHelper.hxx.

Constructor & Destructor Documentation

◆ OConnectionPointHelper()

unocontrols::OConnectionPointHelper::OConnectionPointHelper ( ::osl::Mutex &  aMutex,
OConnectionPointContainerHelper pContainerImplementation,
css::uno::Type const &  aType 
)

Definition at line 39 of file OConnectionPointHelper.cxx.

References aMutex.

◆ ~OConnectionPointHelper()

unocontrols::OConnectionPointHelper::~OConnectionPointHelper ( )
overridevirtual

Definition at line 50 of file OConnectionPointHelper.cxx.

Member Function Documentation

◆ acquire()

void SAL_CALL unocontrols::OConnectionPointHelper::acquire ( )
overridevirtualnoexcept

increment refcount @seealso XInterface @seealso release() @onerror A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 79 of file OConnectionPointHelper.cxx.

◆ advise()

void SAL_CALL unocontrols::OConnectionPointHelper::advise ( const css::uno::Reference< css::uno::XInterface > &  xListener)
overridevirtual

◆ getConnectionPointContainer()

Reference< XConnectionPointContainer > SAL_CALL unocontrols::OConnectionPointHelper::getConnectionPointContainer ( )
overridevirtual

Definition at line 122 of file OConnectionPointHelper.cxx.

References m_aSharedMutex, and m_oContainerWeakReference.

◆ getConnections()

Sequence< Reference< XInterface > > SAL_CALL unocontrols::OConnectionPointHelper::getConnections ( )
overridevirtual

◆ getConnectionType()

Type SAL_CALL unocontrols::OConnectionPointHelper::getConnectionType ( )
overridevirtual

◆ impl_LockContainer()

bool unocontrols::OConnectionPointHelper::impl_LockContainer ( )
private

Definition at line 208 of file OConnectionPointHelper.cxx.

References m_oContainerWeakReference, and m_xLock.

Referenced by advise(), getConnections(), getConnectionType(), and unadvise().

◆ impl_UnlockContainer()

void unocontrols::OConnectionPointHelper::impl_UnlockContainer ( )
private

Definition at line 219 of file OConnectionPointHelper.cxx.

References m_xLock.

Referenced by advise(), getConnections(), getConnectionType(), and unadvise().

◆ queryInterface()

Any SAL_CALL unocontrols::OConnectionPointHelper::queryInterface ( const css::uno::Type &  aType)
overridevirtual

give answer, if interface is supported @descr The interfaces are searched by type.

@seealso XInterface

Parameters
rTypeis the type of searched interface.
Returns
Any information about found interface

@onerror A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 56 of file OConnectionPointHelper.cxx.

References Any.

◆ release()

void SAL_CALL unocontrols::OConnectionPointHelper::release ( )
overridevirtualnoexcept

decrement refcount @seealso XInterface @seealso acquire() @onerror A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 90 of file OConnectionPointHelper.cxx.

◆ unadvise()

void SAL_CALL unocontrols::OConnectionPointHelper::unadvise ( const css::uno::Reference< css::uno::XInterface > &  xListener)
overridevirtual

Member Data Documentation

◆ m_aInterfaceType

css::uno::Type unocontrols::OConnectionPointHelper::m_aInterfaceType
private

Definition at line 101 of file OConnectionPointHelper.hxx.

Referenced by advise(), getConnections(), getConnectionType(), and unadvise().

◆ m_aSharedMutex

::osl::Mutex& unocontrols::OConnectionPointHelper::m_aSharedMutex
private

◆ m_oContainerWeakReference

css::uno::WeakReference< css::lang::XConnectionPointContainer > unocontrols::OConnectionPointHelper::m_oContainerWeakReference
private

Definition at line 98 of file OConnectionPointHelper.hxx.

Referenced by getConnectionPointContainer(), and impl_LockContainer().

◆ m_pContainerImplementation

OConnectionPointContainerHelper* unocontrols::OConnectionPointHelper::m_pContainerImplementation
private

Definition at line 100 of file OConnectionPointHelper.hxx.

Referenced by advise(), getConnections(), and unadvise().

◆ m_xLock

css::uno::Reference< css::uno::XInterface > unocontrols::OConnectionPointHelper::m_xLock
private

Definition at line 102 of file OConnectionPointHelper.hxx.

Referenced by impl_LockContainer(), and impl_UnlockContainer().


The documentation for this class was generated from the following files: