LibreOffice Module comphelper (master)  1
Public Member Functions | Private Attributes | List of all members
OInstanceLocker Class Reference

#include <instancelocker.hxx>

Inheritance diagram for OInstanceLocker:
[legend]
Collaboration diagram for OInstanceLocker:
[legend]

Public Member Functions

 OInstanceLocker ()
 
virtual ~OInstanceLocker () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Attributes

::osl::Mutex m_aMutex
 
rtl::Reference< OLockListenerm_xLockListener
 
std::unique_ptr<::comphelper::OInterfaceContainerHelper2m_pListenersContainer
 
bool m_bDisposed
 
bool m_bInitialized
 

Detailed Description

Definition at line 42 of file instancelocker.hxx.

Constructor & Destructor Documentation

OInstanceLocker::OInstanceLocker ( )
explicit

Definition at line 45 of file instancelocker.cxx.

OInstanceLocker::~OInstanceLocker ( )
overridevirtual

Definition at line 52 of file instancelocker.cxx.

References dispose(), and m_bDisposed.

Member Function Documentation

void SAL_CALL OInstanceLocker::addEventListener ( const css::uno::Reference< css::lang::XEventListener > &  xListener)
overridevirtual

Definition at line 88 of file instancelocker.cxx.

References m_aMutex, m_bDisposed, and m_pListenersContainer.

void SAL_CALL OInstanceLocker::dispose ( void  )
overridevirtual

Definition at line 67 of file instancelocker.cxx.

References m_aMutex, m_bDisposed, m_pListenersContainer, and m_xLockListener.

Referenced by initialize(), and ~OInstanceLocker().

OUString SAL_CALL OInstanceLocker::getImplementationName ( )
overridevirtual

Definition at line 177 of file instancelocker.cxx.

uno::Sequence< OUString > SAL_CALL OInstanceLocker::getSupportedServiceNames ( )
overridevirtual

Definition at line 187 of file instancelocker.cxx.

void SAL_CALL OInstanceLocker::initialize ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 110 of file instancelocker.cxx.

References dispose(), m_aMutex, m_bDisposed, m_bInitialized, and m_xLockListener.

void SAL_CALL OInstanceLocker::removeEventListener ( const css::uno::Reference< css::lang::XEventListener > &  aListener)
overridevirtual

Definition at line 101 of file instancelocker.cxx.

References m_aMutex, and m_pListenersContainer.

sal_Bool SAL_CALL OInstanceLocker::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 182 of file instancelocker.cxx.

References cppu::supportsService().

Member Data Documentation

::osl::Mutex OInstanceLocker::m_aMutex
private

Definition at line 46 of file instancelocker.hxx.

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

bool OInstanceLocker::m_bDisposed
private

Definition at line 52 of file instancelocker.hxx.

Referenced by addEventListener(), dispose(), initialize(), and ~OInstanceLocker().

bool OInstanceLocker::m_bInitialized
private

Definition at line 53 of file instancelocker.hxx.

Referenced by initialize().

std::unique_ptr<::comphelper::OInterfaceContainerHelper2> OInstanceLocker::m_pListenersContainer
private

Definition at line 50 of file instancelocker.hxx.

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

rtl::Reference< OLockListener > OInstanceLocker::m_xLockListener
private

Definition at line 48 of file instancelocker.hxx.

Referenced by dispose(), and initialize().


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