LibreOffice Module comphelper (master)  1
Protected Member Functions | Private Attributes | List of all members
comphelper::OWeakListenerAdapterBase Class Reference

(the base for) an adapter which allows to add as listener to a foreign component, without being held hard. More...

#include <weakeventlistener.hxx>

Inheritance diagram for comphelper::OWeakListenerAdapterBase:
[legend]
Collaboration diagram for comphelper::OWeakListenerAdapterBase:
[legend]

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

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

(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 45 of file weakeventlistener.hxx.

Constructor & Destructor Documentation

comphelper::OWeakListenerAdapterBase::OWeakListenerAdapterBase ( const css::uno::Reference< css::uno::XWeak > &  _rxListener,
const css::uno::Reference< css::uno::XInterface > &  _rxBroadcaster 
)
inlineprotected

Definition at line 73 of file weakeventlistener.hxx.

comphelper::OWeakListenerAdapterBase::~OWeakListenerAdapterBase ( )
protectedvirtual

Definition at line 31 of file weakeventlistener.cxx.

Member Function Documentation

const css::uno::Reference< css::uno::XInterface >& comphelper::OWeakListenerAdapterBase::getBroadcaster ( ) const
inlineprotected

Definition at line 61 of file weakeventlistener.hxx.

References m_xBroadcaster.

Referenced by comphelper::OWeakEventListenerAdapter::disposing().

css::uno::Reference< css::uno::XInterface > comphelper::OWeakListenerAdapterBase::getListener ( ) const
inlineprotected
void comphelper::OWeakListenerAdapterBase::resetListener ( )
inlineprotected

Definition at line 66 of file weakeventlistener.hxx.

References m_aListener.

Referenced by comphelper::OWeakEventListenerAdapter::disposing().

Member Data Documentation

css::uno::WeakReference< css::uno::XInterface > comphelper::OWeakListenerAdapterBase::m_aListener
private

Definition at line 49 of file weakeventlistener.hxx.

Referenced by getListener(), and resetListener().

css::uno::Reference< css::uno::XInterface > comphelper::OWeakListenerAdapterBase::m_xBroadcaster
private

Definition at line 51 of file weakeventlistener.hxx.

Referenced by getBroadcaster().


The documentation for this class was generated from the following files: