LibreOffice Module comphelper (master) 1
Public Member Functions | Protected 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 comphelper::UnoImplBase
virtual ~UnoImplBase ()
 
- 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 Member Functions

void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Protected Attributes

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

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 32 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.

Reimplemented in comphelper::OWeakListenerAdapter< BROADCASTER, LISTENER >.

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

◆ removeEventListener()

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

◆ throwIfDisposed()

void comphelper::WeakComponentImplHelperBase::throwIfDisposed ( std::unique_lock< std::mutex > &  )
inlineprotected

Definition at line 55 of file compbase.hxx.

References m_bDisposed.

Member Data Documentation

◆ maEventListeners

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

Definition at line 60 of file compbase.hxx.

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


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