is a specialization of OListenerContainer which saves you some additional type casts, by making the required listener and event types template arguments.
More...
#include <listenernotification.hxx>
|
virtual bool | implNotify (const css::uno::Reference< css::lang::XEventListener > &_rxListener, const css::lang::EventObject &_rEvent) override |
| call a single listener More...
|
|
virtual bool | implTypedNotify (const css::uno::Reference< ListenerClass > &_rxListener, const EventClass &_rEvent)=0 |
|
| OListenerContainer (::osl::Mutex &_rMutex) |
|
virtual | ~OListenerContainer () |
|
void | impl_addListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) |
|
void | impl_removeListener (const css::uno::Reference< css::lang::XEventListener > &_rxListener) |
|
bool | impl_notify (const css::lang::EventObject &_rEvent) |
| notifies all listeners of the given event, using THB's notification pattern More...
|
|
template<class ListenerClass, class EventClass>
class comphelper::OListenerContainerBase< ListenerClass, EventClass >
is a specialization of OListenerContainer which saves you some additional type casts, by making the required listener and event types template arguments.
Definition at line 220 of file listenernotification.hxx.
template<class ListenerClass , class EventClass >
template<class ListenerClass , class EventClass >
template<class ListenerClass , class EventClass >
virtual bool comphelper::OListenerContainerBase< ListenerClass, EventClass >::implNotify |
( |
const css::uno::Reference< css::lang::XEventListener > & |
_rxListener, |
|
|
const css::lang::EventObject & |
_rEvent |
|
) |
| |
|
inlineoverrideprotectedvirtual |
call a single listener
- Exceptions
-
css::uno::Exception | if the listener throws an exception during notification. Please don't catch any listener exceptions in your implementation of this method, simply let them pass to the caller. |
- Parameters
-
_rxListener | specifies the listener to call. Is guaranteed to not be <NULL> |
_rEvent | the event to broadcast. This is the same as passed to <member>notify</member>, so if your base class knows the type passed into <member>notify</member>, it can safely assume that <arg>_rEvent</arg> is also of this type. |
- Returns
- <TRUE> if the remaining listeners should be called, <FALSE> if the notification loop should be cancelled
- See also
- notify
Implements comphelper::OListenerContainer.
Definition at line 245 of file listenernotification.hxx.
References comphelper::OListenerContainerBase< ListenerClass, EventClass >::implTypedNotify().
template<class ListenerClass , class EventClass >
virtual bool comphelper::OListenerContainerBase< ListenerClass, EventClass >::implTypedNotify |
( |
const css::uno::Reference< ListenerClass > & |
_rxListener, |
|
|
const EventClass & |
_rEvent |
|
) |
| |
|
protectedpure virtual |
template<class ListenerClass , class EventClass >
template<class ListenerClass , class EventClass >
The documentation for this class was generated from the following file: