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

#include <instancelocker.hxx>

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

Public Member Functions

 OLockListener (css::uno::WeakReference< css::lang::XComponent > xWrapper, css::uno::Reference< css::uno::XInterface > xInstance, sal_Int32 nMode, css::uno::Reference< css::embed::XActionsApproval > xApproval)
 
virtual ~OLockListener () override
 
void Init ()
 
void Dispose ()
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL queryClosing (const css::lang::EventObject &Source, sal_Bool GetsOwnership) override
 
virtual void SAL_CALL notifyClosing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL queryTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL notifyTermination (const css::lang::EventObject &Event) override
 

Private Attributes

std::mutex m_aMutex
 
css::uno::Reference< css::uno::XInterface > m_xInstance
 
css::uno::Reference< css::embed::XActionsApproval > m_xApproval
 
css::uno::WeakReference< css::lang::XComponent > m_xWrapper
 
bool m_bDisposed
 
bool m_bInitialized
 
sal_Int32 m_nMode
 

Detailed Description

Definition at line 73 of file instancelocker.hxx.

Constructor & Destructor Documentation

◆ OLockListener()

OLockListener::OLockListener ( css::uno::WeakReference< css::lang::XComponent >  xWrapper,
css::uno::Reference< css::uno::XInterface >  xInstance,
sal_Int32  nMode,
css::uno::Reference< css::embed::XActionsApproval >  xApproval 
)

Definition at line 192 of file instancelocker.cxx.

References m_bDisposed.

◆ ~OLockListener()

OLockListener::~OLockListener ( )
overridevirtual

Definition at line 206 of file instancelocker.cxx.

Member Function Documentation

◆ Dispose()

void OLockListener::Dispose ( )

Definition at line 211 of file instancelocker.cxx.

References m_aMutex, m_bDisposed, m_nMode, and m_xInstance.

◆ disposing()

void SAL_CALL OLockListener::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 253 of file instancelocker.cxx.

References aEvent, m_aMutex, m_nMode, m_xInstance, and m_xWrapper.

◆ Init()

void OLockListener::Init ( void  )

Definition at line 399 of file instancelocker.cxx.

References m_aMutex, m_bDisposed, m_bInitialized, m_nMode, m_xInstance, and m_xWrapper.

◆ notifyClosing()

void SAL_CALL OLockListener::notifyClosing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 306 of file instancelocker.cxx.

References aEvent, m_aMutex, m_nMode, m_xInstance, and m_xWrapper.

◆ notifyTermination()

void SAL_CALL OLockListener::notifyTermination ( const css::lang::EventObject &  Event)
overridevirtual

Definition at line 364 of file instancelocker.cxx.

References aEvent, m_aMutex, m_nMode, m_xInstance, and m_xWrapper.

◆ queryClosing()

void SAL_CALL OLockListener::queryClosing ( const css::lang::EventObject &  Source,
sal_Bool  GetsOwnership 
)
overridevirtual

Definition at line 277 of file instancelocker.cxx.

References aEvent, m_aMutex, m_bDisposed, m_nMode, m_xApproval, and m_xInstance.

◆ queryTermination()

void SAL_CALL OLockListener::queryTermination ( const css::lang::EventObject &  Event)
overridevirtual

Definition at line 336 of file instancelocker.cxx.

References aEvent, m_aMutex, m_nMode, m_xApproval, and m_xInstance.

Member Data Documentation

◆ m_aMutex

std::mutex OLockListener::m_aMutex
private

◆ m_bDisposed

bool OLockListener::m_bDisposed
private

Definition at line 82 of file instancelocker.hxx.

Referenced by Dispose(), Init(), and queryClosing().

◆ m_bInitialized

bool OLockListener::m_bInitialized
private

Definition at line 83 of file instancelocker.hxx.

Referenced by Init().

◆ m_nMode

sal_Int32 OLockListener::m_nMode
private

◆ m_xApproval

css::uno::Reference< css::embed::XActionsApproval > OLockListener::m_xApproval
private

Definition at line 78 of file instancelocker.hxx.

Referenced by queryClosing(), and queryTermination().

◆ m_xInstance

css::uno::Reference< css::uno::XInterface > OLockListener::m_xInstance
private

◆ m_xWrapper

css::uno::WeakReference< css::lang::XComponent > OLockListener::m_xWrapper
private

Definition at line 80 of file instancelocker.hxx.

Referenced by disposing(), Init(), notifyClosing(), and notifyTermination().


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