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, css::uno::Reference< css::uno::XInterface > _xBroadcaster) | |
virtual | ~OWeakListenerAdapterBase () |
Private Attributes | |
css::uno::WeakReference< css::uno::XInterface > | m_aListener |
css::uno::Reference< css::uno::XInterface > | m_xBroadcaster |
(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 47 of file weakeventlistener.hxx.
|
inlineprotected |
Definition at line 75 of file weakeventlistener.hxx.
|
protectedvirtual |
Definition at line 31 of file weakeventlistener.cxx.
|
inlineprotected |
Definition at line 63 of file weakeventlistener.hxx.
References m_xBroadcaster.
|
inlineprotected |
Definition at line 57 of file weakeventlistener.hxx.
References m_aListener.
Referenced by comphelper::OWeakListenerAdapter< BROADCASTER, LISTENER >::getListener().
|
inlineprotected |
Definition at line 68 of file weakeventlistener.hxx.
References m_aListener.
|
private |
Definition at line 51 of file weakeventlistener.hxx.
Referenced by getListener(), and resetListener().
|
private |
Definition at line 53 of file weakeventlistener.hxx.
Referenced by getBroadcaster().