LibreOffice Module comphelper (master)
1
|
(the base for) an adapter which allows to add as listener to a foreign component, without being held hard. More...
#include <weakeventlistener.hxx>
Protected Member Functions | |
css::uno::Reference< css::uno::XInterface > | getListener () const |
const css::uno::Reference< css::uno::XInterface > & | getBroadcaster () const |
void | resetListener () |
OWeakListenerAdapterBase (const css::uno::Reference< css::uno::XWeak > &_rxListener, const css::uno::Reference< css::uno::XInterface > &_rxBroadcaster) | |
virtual | ~OWeakListenerAdapterBase () |
Private Attributes | |
css::uno::WeakReference< css::uno::XInterface > | m_aListener |
css::uno::Reference< css::uno::XInterface > | m_xBroadcaster |
Additional Inherited Members | |
![]() | |
mutable::osl::Mutex | m_aMutex |
(the base for) an adapter which allows to add as listener to a foreign component, without being held hard.
The idea is that this adapter is added as listener to a foreign component, which usually holds it's listener hard. The adapter itself knows the real listener as weak reference, thus not affecting its life time.
Definition at line 46 of file weakeventlistener.hxx.
|
inlineprotected |
Definition at line 74 of file weakeventlistener.hxx.
|
protectedvirtual |
Definition at line 31 of file weakeventlistener.cxx.
|
inlineprotected |
Definition at line 62 of file weakeventlistener.hxx.
References m_xBroadcaster.
|
inlineprotected |
Definition at line 56 of file weakeventlistener.hxx.
References m_aListener.
Referenced by comphelper::OWeakListenerAdapter< BROADCASTER, LISTENER >::getListener().
|
inlineprotected |
Definition at line 67 of file weakeventlistener.hxx.
References m_aListener.
|
private |
Definition at line 50 of file weakeventlistener.hxx.
Referenced by getListener(), and resetListener().
|
private |
Definition at line 52 of file weakeventlistener.hxx.
Referenced by getBroadcaster().