LibreOffice Module cppuhelper (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 <compbase2.hxx>
Public Member Functions | |
virtual | ~WeakComponentImplHelperBase2 () 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 |
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More... | |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Called by dispose for subclasses to do dispose() work. More... | |
Public Member Functions inherited from cppuhelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Public Member Functions inherited from cppu::OWeakObject | |
OWeakObject () | |
Default Constructor. More... | |
OWeakObject (const OWeakObject &) | |
Dummy copy constructor. More... | |
OWeakObject &SAL_CALL | operator= (const OWeakObject &) |
Dummy assignment operator. More... | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) SAL_OVERRIDE |
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface. More... | |
virtual void SAL_CALL | acquire () SAL_NOEXCEPT SAL_OVERRIDE |
increasing m_refCount More... | |
virtual void SAL_CALL | release () SAL_NOEXCEPT SAL_OVERRIDE |
decreasing m_refCount More... | |
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL | queryAdapter () SAL_OVERRIDE |
XWeak::queryAdapter() implementation. More... | |
SAL_CALL | operator css::uno::Reference< css::uno::XInterface > () |
Cast operator to XInterface reference. More... | |
Protected Member Functions | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Member Functions inherited from cppu::OWeakObject | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
Virtual dtor. More... | |
void | disposeWeakConnectionPoint () |
disposes and resets m_pWeakConnectionPoint More... | |
Protected Attributes | |
OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from cppuhelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed = false |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
reference count. More... | |
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 37 of file cppuhelper/inc/compbase2.hxx.
|
overridevirtual |
Definition at line 16 of file compbase.cxx.
|
overridevirtual |
Reimplemented in cppuhelper::WeakComponentImplHelper2< Ifc >.
Definition at line 34 of file compbase.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), cppuhelper::UnoImplBase::m_aMutex, cppuhelper::UnoImplBase::m_bDisposed, and maEventListeners.
Referenced by cppuhelper::WeakComponentImplHelper2< Ifc >::addEventListener().
|
overridevirtual |
Reimplemented in cppuhelper::WeakComponentImplHelper2< Ifc >.
Definition at line 19 of file compbase.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), disposing(), cppuhelper::UnoImplBase::m_aMutex, cppuhelper::UnoImplBase::m_bDisposed, maEventListeners, and cppu::OWeakObject::OWeakObject().
Referenced by cppuhelper::WeakComponentImplHelper2< Ifc >::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 cppuhelper::ServiceManager.
Definition at line 32 of file compbase.cxx.
Referenced by dispose().
|
overridevirtual |
Basic queryInterface() implementation supporting com::sun::star::uno::XWeak and com::sun::star::uno::XInterface.
rType | demanded type |
Reimplemented from cppu::OWeakObject.
Reimplemented in cppuhelper::WeakComponentImplHelper2< Ifc >.
Definition at line 50 of file compbase.cxx.
References cppu::queryInterface().
|
overridevirtual |
Reimplemented in cppuhelper::WeakComponentImplHelper2< Ifc >.
Definition at line 43 of file compbase.cxx.
References cppuhelper::UnoImplBase::m_aMutex, maEventListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
Referenced by cppuhelper::WeakComponentImplHelper2< Ifc >::removeEventListener().
|
inlineprotected |
Definition at line 60 of file cppuhelper/inc/compbase2.hxx.
References m_bDisposed.
|
protected |
Definition at line 65 of file cppuhelper/inc/compbase2.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().