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

#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 The interfaces are searched by type. More...
 
virtual void SAL_CALL acquire () override throw ()
 increment refcount XInterface release() A RuntimeException is thrown. More...
 
virtual void SAL_CALL release () override throw ()
 decrement refcount XInterface acquire() 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::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 const 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 32 of file OConnectionPointHelper.hxx.

Constructor & Destructor Documentation

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

Definition at line 38 of file OConnectionPointHelper.cxx.

unocontrols::OConnectionPointHelper::~OConnectionPointHelper ( )
overridevirtual

Definition at line 49 of file OConnectionPointHelper.cxx.

Member Function Documentation

void SAL_CALL unocontrols::OConnectionPointHelper::acquire ( )
throw (
)
overridevirtual

increment refcount XInterface release() A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 78 of file OConnectionPointHelper.cxx.

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

Definition at line 122 of file OConnectionPointHelper.cxx.

References m_aSharedMutex, and m_oContainerWeakReference.

Sequence< Reference< XInterface > > SAL_CALL unocontrols::OConnectionPointHelper::getConnections ( )
overridevirtual
Type SAL_CALL unocontrols::OConnectionPointHelper::getConnectionType ( )
overridevirtual
bool unocontrols::OConnectionPointHelper::impl_LockContainer ( )
private

Definition at line 211 of file OConnectionPointHelper.cxx.

References m_oContainerWeakReference, and m_xLock.

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

void unocontrols::OConnectionPointHelper::impl_UnlockContainer ( )
private

Definition at line 222 of file OConnectionPointHelper.cxx.

References m_xLock.

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

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

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

XInterface

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

A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 55 of file OConnectionPointHelper.cxx.

References Any, and cppu::queryInterface().

void SAL_CALL unocontrols::OConnectionPointHelper::release ( )
throw (
)
overridevirtual

decrement refcount XInterface acquire() A RuntimeException is thrown.

Reimplemented from cppu::OWeakObject.

Definition at line 89 of file OConnectionPointHelper.cxx.

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

Member Data Documentation

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

Definition at line 102 of file OConnectionPointHelper.hxx.

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

::osl::Mutex& unocontrols::OConnectionPointHelper::m_aSharedMutex
private
css::uno::WeakReference< css::lang::XConnectionPointContainer > unocontrols::OConnectionPointHelper::m_oContainerWeakReference
private

Definition at line 99 of file OConnectionPointHelper.hxx.

Referenced by getConnectionPointContainer(), and impl_LockContainer().

OConnectionPointContainerHelper* unocontrols::OConnectionPointHelper::m_pContainerImplementation
private

Definition at line 101 of file OConnectionPointHelper.hxx.

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

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

Definition at line 103 of file OConnectionPointHelper.hxx.

Referenced by impl_LockContainer(), and impl_UnlockContainer().


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