LibreOffice Module comphelper (master) 1
|
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 <compbase.hxx>
Public Member Functions | |
virtual | ~WeakComponentImplHelperBase () 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 |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Called by dispose for subclasses to do dispose() work. More... | |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
OWeakObject (const OWeakObject &) | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Protected Member Functions | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
Protected Attributes | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed = false |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
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 32 of file compbase.hxx.
|
overridevirtual |
Definition at line 16 of file compbase.cxx.
|
overridevirtual |
Reimplemented in comphelper::WeakComponentImplHelper< Ifc >, and comphelper::WeakComponentImplHelper< LISTENER >.
Definition at line 34 of file compbase.cxx.
References comphelper::OInterfaceContainerHelper4< ListenerT >::addInterface(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, and maEventListeners.
Referenced by comphelper::WeakComponentImplHelper< Ifc >::addEventListener().
|
overridevirtual |
Reimplemented in comphelper::WeakComponentImplHelper< Ifc >, and comphelper::WeakComponentImplHelper< LISTENER >.
Definition at line 19 of file compbase.cxx.
References comphelper::OInterfaceContainerHelper4< ListenerT >::disposeAndClear(), disposing(), comphelper::UnoImplBase::m_aMutex, comphelper::UnoImplBase::m_bDisposed, maEventListeners, and cppu::OWeakObject::OWeakObject().
Referenced by comphelper::WeakComponentImplHelper< Ifc >::dispose(), and comphelper::OComponentProxyAggregation::dispose().
|
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 comphelper::OWeakListenerAdapter< BROADCASTER, LISTENER >.
Definition at line 32 of file compbase.cxx.
Referenced by dispose().
|
overridevirtual |
Reimplemented from cppu::OWeakObject.
Reimplemented in comphelper::WeakComponentImplHelper< Ifc >, and comphelper::WeakComponentImplHelper< LISTENER >.
Definition at line 50 of file compbase.cxx.
|
overridevirtual |
Reimplemented in comphelper::WeakComponentImplHelper< Ifc >, and comphelper::WeakComponentImplHelper< LISTENER >.
Definition at line 43 of file compbase.cxx.
References comphelper::UnoImplBase::m_aMutex, maEventListeners, and comphelper::OInterfaceContainerHelper4< ListenerT >::removeInterface().
Referenced by comphelper::WeakComponentImplHelper< Ifc >::removeEventListener().
|
inlineprotected |
Definition at line 55 of file compbase.hxx.
References m_bDisposed.
|
protected |
Definition at line 60 of file compbase.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().