LibreOffice Module comphelper (master) 1
Public Member Functions | Protected Attributes | List of all members
comphelper::WeakComponentImplHelperBase Class Reference

Serves two purposes (1) extracts code that doesn't need to be templated (2) helps to handle the custom where we have conflicting interfaces e.g. More...

#include <compbase.hxx>

Inheritance diagram for comphelper::WeakComponentImplHelperBase:
[legend]
Collaboration diagram for comphelper::WeakComponentImplHelperBase:
[legend]

Public Member Functions

virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 Called by dispose for subclasses to do dispose() work. More...
 
- 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 > ()
 

Protected Attributes

comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
std::mutex m_aMutex
 
bool m_bDisposed = false
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Additional Inherited Members

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

Detailed Description

Serves two purposes (1) extracts code that doesn't need to be templated (2) helps to handle the custom where we have conflicting interfaces e.g.

multiple UNO interfaces that extend css::lang::XComponent

Definition at line 31 of file compbase.hxx.

Constructor & Destructor Documentation

◆ ~WeakComponentImplHelperBase()

comphelper::WeakComponentImplHelperBase::~WeakComponentImplHelperBase ( )
overridevirtual

Definition at line 16 of file compbase.cxx.

Member Function Documentation

◆ addEventListener()

void SAL_CALL comphelper::WeakComponentImplHelperBase::addEventListener ( css::uno::Reference< css::lang::XEventListener > const &  rxListener)
overridevirtual

◆ dispose()

void SAL_CALL comphelper::WeakComponentImplHelperBase::dispose ( void  )
overridevirtual

◆ disposing()

void comphelper::WeakComponentImplHelperBase::disposing ( std::unique_lock< std::mutex > &  )
virtual

Called by dispose for subclasses to do dispose() work.

The mutex is held when called, and subclasses can unlock() the guard if necessary.

Definition at line 32 of file compbase.cxx.

Referenced by dispose().

◆ queryInterface()

css::uno::Any SAL_CALL comphelper::WeakComponentImplHelperBase::queryInterface ( css::uno::Type const &  rType)
overridevirtual

Reimplemented from cppu::OWeakObject.

Reimplemented in comphelper::WeakComponentImplHelper< Ifc >.

Definition at line 50 of file compbase.cxx.

◆ removeEventListener()

void SAL_CALL comphelper::WeakComponentImplHelperBase::removeEventListener ( css::uno::Reference< css::lang::XEventListener > const &  rxListener)
overridevirtual

Member Data Documentation

◆ m_aMutex

std::mutex comphelper::WeakComponentImplHelperBase::m_aMutex
mutableprotected

Definition at line 54 of file compbase.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

◆ m_bDisposed

bool comphelper::WeakComponentImplHelperBase::m_bDisposed = false
protected

Definition at line 55 of file compbase.hxx.

Referenced by addEventListener(), and dispose().

◆ maEventListeners

comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> comphelper::WeakComponentImplHelperBase::maEventListeners
protected

Definition at line 53 of file compbase.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().


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