LibreOffice Module comphelper (master) 1
|
#include <propmultiplex2.hxx>
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::mutex & | m_rMutex |
std::vector< OUString > | m_aProperties |
css::uno::Reference< css::beans::XPropertySet > | m_xSet |
OPropertyChangeListener2 * | m_pListener |
sal_Int32 | m_nLockCount |
bool | m_bListening: 1 |
Friends | |
class | OPropertyChangeListener2 |
Definition at line 73 of file propmultiplex2.hxx.
|
overrideprivatevirtual |
Definition at line 64 of file propmultiplex2.cxx.
comphelper::OPropertyChangeMultiplexer2::OPropertyChangeMultiplexer2 | ( | std::mutex & | rMutex, |
std::unique_lock< std::mutex > & | rGuard, | ||
OPropertyChangeListener2 * | _pListener, | ||
const css::uno::Reference< css::beans::XPropertySet > & | _rxSet | ||
) |
Definition at line 51 of file propmultiplex2.cxx.
References m_pListener, m_rMutex, and comphelper::OPropertyChangeListener2::setAdapter().
void comphelper::OPropertyChangeMultiplexer2::addProperty | ( | const OUString & | aPropertyName | ) |
Definition at line 125 of file propmultiplex2.cxx.
References m_aProperties, m_bListening, and m_xSet.
void comphelper::OPropertyChangeMultiplexer2::dispose | ( | std::unique_lock< std::mutex > & | rGuard | ) |
Definition at line 70 of file propmultiplex2.cxx.
References m_aProperties, m_bListening, m_pListener, m_xSet, and comphelper::OPropertyChangeListener2::setAdapter().
|
overridevirtual |
Definition at line 101 of file propmultiplex2.cxx.
References m_bListening, m_pListener, m_rMutex, m_xSet, and comphelper::OPropertyChangeListener2::setAdapter().
void comphelper::OPropertyChangeMultiplexer2::lock | ( | ) |
|
inline |
get the lock count
Definition at line 103 of file propmultiplex2.hxx.
Referenced by propertyChange().
|
private |
Definition at line 88 of file propmultiplex2.cxx.
References m_aProperties, m_bListening, and m_xSet.
|
overridevirtual |
Definition at line 119 of file propmultiplex2.cxx.
References comphelper::OPropertyChangeListener2::_propertyChanged(), locked(), and m_pListener.
void comphelper::OPropertyChangeMultiplexer2::unlock | ( | ) |
|
friend |
Definition at line 76 of file propmultiplex2.hxx.
|
private |
Definition at line 78 of file propmultiplex2.hxx.
Referenced by addProperty(), dispose(), and onListenerDestruction().
|
private |
Definition at line 82 of file propmultiplex2.hxx.
Referenced by addProperty(), dispose(), disposing(), and onListenerDestruction().
|
private |
Definition at line 81 of file propmultiplex2.hxx.
|
private |
Definition at line 80 of file propmultiplex2.hxx.
Referenced by dispose(), disposing(), OPropertyChangeMultiplexer2(), and propertyChange().
|
private |
Definition at line 77 of file propmultiplex2.hxx.
Referenced by disposing().
|
private |
Definition at line 79 of file propmultiplex2.hxx.
Referenced by addProperty(), dispose(), disposing(), and onListenerDestruction().