LibreOffice Module cppuhelper (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cppuhelper::WeakComponentImplHelperBase2 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 <compbase2.hxx>

Inheritance diagram for cppuhelper::WeakComponentImplHelperBase2:
[legend]
Collaboration diagram for cppuhelper::WeakComponentImplHelperBase2:
[legend]

Public Member Functions

virtual ~WeakComponentImplHelperBase2 () 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
 Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More...
 
virtual void disposing (std::unique_lock< std::mutex > &)
 Called by dispose for subclasses to do dispose() work. More...
 
- Public Member Functions inherited from cppuhelper::UnoImplBase
virtual ~UnoImplBase ()
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 Default Constructor. More...
 
 OWeakObject (const OWeakObject &)
 Dummy copy constructor. More...
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 Dummy assignment operator. More...
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More...
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 increasing m_refCount More...
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 decreasing m_refCount More...
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 XWeak::queryAdapter() implementation. More...
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 Cast operator to XInterface reference. More...
 

Protected Member Functions

void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 Virtual dtor. More...
 
void disposeWeakConnectionPoint ()
 disposes and resets m_pWeakConnectionPoint More...
 

Protected Attributes

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

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 37 of file cppuhelper/inc/compbase2.hxx.

Constructor & Destructor Documentation

◆ ~WeakComponentImplHelperBase2()

cppuhelper::WeakComponentImplHelperBase2::~WeakComponentImplHelperBase2 ( )
overridevirtual

Definition at line 16 of file compbase.cxx.

Member Function Documentation

◆ addEventListener()

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

◆ dispose()

void SAL_CALL cppuhelper::WeakComponentImplHelperBase2::dispose ( void  )
overridevirtual

◆ disposing()

void cppuhelper::WeakComponentImplHelperBase2::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 cppuhelper::ServiceManager.

Definition at line 32 of file compbase.cxx.

Referenced by dispose().

◆ queryInterface()

css::uno::Any SAL_CALL cppuhelper::WeakComponentImplHelperBase2::queryInterface ( css::uno::Type const &  rType)
overridevirtual

Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface.

Parameters
rTypedemanded type
Returns
demanded type or empty any

Reimplemented from cppu::OWeakObject.

Reimplemented in cppuhelper::WeakComponentImplHelper2< Ifc >.

Definition at line 50 of file compbase.cxx.

References cppu::queryInterface().

◆ removeEventListener()

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

◆ throwIfDisposed()

void cppuhelper::WeakComponentImplHelperBase2::throwIfDisposed ( std::unique_lock< std::mutex > &  )
inlineprotected

Definition at line 60 of file cppuhelper/inc/compbase2.hxx.

References m_bDisposed.

Member Data Documentation

◆ maEventListeners

OInterfaceContainerHelper4<css::lang::XEventListener> cppuhelper::WeakComponentImplHelperBase2::maEventListeners
protected

Definition at line 65 of file cppuhelper/inc/compbase2.hxx.

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


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