LibreOffice Module comphelper (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
comphelper::OPropertyChangeMultiplexer2 Class Referencefinal

#include <propmultiplex2.hxx>

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

Public Member Functions

 OPropertyChangeMultiplexer2 (std::mutex &rMutex, std::unique_lock< std::mutex > &rGuard, OPropertyChangeListener2 *_pListener, const css::uno::Reference< css::beans::XPropertySet > &_rxSet)
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
void lock ()
 incremental lock More...
 
void unlock ()
 incremental unlock More...
 
sal_Int32 locked () const
 get the lock count More...
 
void addProperty (const OUString &aPropertyName)
 
void dispose (std::unique_lock< std::mutex > &rGuard)
 

Private Member Functions

void onListenerDestruction ()
 
virtual ~OPropertyChangeMultiplexer2 () override
 

Private Attributes

std::mutexm_rMutex
 
std::vector< OUString > m_aProperties
 
css::uno::Reference< css::beans::XPropertySetm_xSet
 
OPropertyChangeListener2m_pListener
 
sal_Int32 m_nLockCount
 
bool m_bListening: 1
 

Friends

class OPropertyChangeListener2
 

Detailed Description

Definition at line 73 of file propmultiplex2.hxx.

Constructor & Destructor Documentation

◆ ~OPropertyChangeMultiplexer2()

comphelper::OPropertyChangeMultiplexer2::~OPropertyChangeMultiplexer2 ( )
overrideprivatevirtual

Definition at line 64 of file propmultiplex2.cxx.

◆ OPropertyChangeMultiplexer2()

comphelper::OPropertyChangeMultiplexer2::OPropertyChangeMultiplexer2 ( std::mutex rMutex,
std::unique_lock< std::mutex > &  rGuard,
OPropertyChangeListener2 _pListener,
const css::uno::Reference< css::beans::XPropertySet > &  _rxSet 
)

Member Function Documentation

◆ addProperty()

void comphelper::OPropertyChangeMultiplexer2::addProperty ( const OUString &  aPropertyName)

Definition at line 125 of file propmultiplex2.cxx.

References m_aProperties, m_bListening, and m_xSet.

◆ dispose()

void comphelper::OPropertyChangeMultiplexer2::dispose ( std::unique_lock< std::mutex > &  rGuard)

◆ disposing()

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

◆ lock()

void comphelper::OPropertyChangeMultiplexer2::lock ( )

incremental lock

Definition at line 66 of file propmultiplex2.cxx.

References m_nLockCount.

◆ locked()

sal_Int32 comphelper::OPropertyChangeMultiplexer2::locked ( ) const
inline

get the lock count

Definition at line 103 of file propmultiplex2.hxx.

Referenced by propertyChange().

◆ onListenerDestruction()

void comphelper::OPropertyChangeMultiplexer2::onListenerDestruction ( )
private

Definition at line 88 of file propmultiplex2.cxx.

References m_aProperties, m_bListening, and m_xSet.

◆ propertyChange()

void SAL_CALL comphelper::OPropertyChangeMultiplexer2::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual

◆ unlock()

void comphelper::OPropertyChangeMultiplexer2::unlock ( )

incremental unlock

Definition at line 68 of file propmultiplex2.cxx.

References m_nLockCount.

Friends And Related Function Documentation

◆ OPropertyChangeListener2

friend class OPropertyChangeListener2
friend

Definition at line 76 of file propmultiplex2.hxx.

Member Data Documentation

◆ m_aProperties

std::vector<OUString> comphelper::OPropertyChangeMultiplexer2::m_aProperties
private

Definition at line 78 of file propmultiplex2.hxx.

Referenced by addProperty(), dispose(), and onListenerDestruction().

◆ m_bListening

bool comphelper::OPropertyChangeMultiplexer2::m_bListening
private

Definition at line 82 of file propmultiplex2.hxx.

Referenced by addProperty(), dispose(), disposing(), and onListenerDestruction().

◆ m_nLockCount

sal_Int32 comphelper::OPropertyChangeMultiplexer2::m_nLockCount
private

Definition at line 81 of file propmultiplex2.hxx.

Referenced by lock(), and unlock().

◆ m_pListener

OPropertyChangeListener2* comphelper::OPropertyChangeMultiplexer2::m_pListener
private

Definition at line 80 of file propmultiplex2.hxx.

Referenced by dispose(), disposing(), OPropertyChangeMultiplexer2(), and propertyChange().

◆ m_rMutex

std::mutex& comphelper::OPropertyChangeMultiplexer2::m_rMutex
private

Definition at line 77 of file propmultiplex2.hxx.

Referenced by disposing().

◆ m_xSet

css::uno::Reference<css::beans::XPropertySet> comphelper::OPropertyChangeMultiplexer2::m_xSet
private

Definition at line 79 of file propmultiplex2.hxx.

Referenced by addProperty(), dispose(), disposing(), and onListenerDestruction().


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