Base class for notifications on binding lookup. More...
#include <kanzi/core.ui/binding/binding_lookup_notification_base.hpp>
Public Member Functions | |
void | clearLocalNotificationFlag () |
Clears local notification flag. | |
bool | isGlobalNotificationInstalled () const |
Tells if this a global notification has been registered. | |
bool | isLocalNotificationInstalled () const |
Tells if this a local notification has been registered. | |
virtual void | onGlobalLookupNotification ()=0 |
Called when global notification is triggered. | |
virtual void | onLocalLookupNotification ()=0 |
Called when local notification is triggered. | |
void | registerGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Installs a global notification listener. | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Installs a local notification listener. | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Installs a local notification listener. | |
void | unregisterGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Uninstalls a global notification listener. | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Removes a local notification listener. | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Removes a local notification listener. | |
~BindingLookupNotificationBase () | |
Destructor. | |
Protected Member Functions | |
BindingLookupNotificationBase () | |
Constructor. | |
Protected Attributes | |
bool | m_globalNotificationInstalled |
Is the global notification listener installed? | |
bool | m_localNotificationInstalled |
Is the local notification listener installed? | |
Base class for notifications on binding lookup.
Implementing classes have virtual functions to react to either object globally becoming available, or locally potentially changing availability.
|
inlineexplicitprotected |
Constructor.
|
inline |
Destructor.
|
inline |
Tells if this a global notification has been registered.
|
inline |
Tells if this a local notification has been registered.
|
inline |
Clears local notification flag.
Should be done if the object local notification was installed for is lost.
void kanzi::BindingLookupNotificationBase::registerGlobalNotification | ( | BindingLookupContext & | lookupContext, |
string_view | path ) |
Installs a global notification listener.
lookupContext | Lookup context to use. |
path | Path associated with lookup. |
void kanzi::BindingLookupNotificationBase::unregisterGlobalNotification | ( | BindingLookupContext & | lookupContext, |
string_view | path ) |
Uninstalls a global notification listener.
lookupContext | Lookup context to use. |
path | Path associated with lookup. |
void kanzi::BindingLookupNotificationBase::registerLocalNotification | ( | BindingLookupContext & | lookupContext, |
PropertyObject * | object, | ||
string_view | path ) |
|
inline |
Installs a local notification listener.
lookupContext | Lookup context to use. |
object | Object to listen on. |
path | Path associated with lookup. |
void kanzi::BindingLookupNotificationBase::unregisterLocalNotification | ( | BindingLookupContext & | lookupContext, |
PropertyObject * | object, | ||
string_view | path ) |
|
inline |
Removes a local notification listener.
lookupContext | Lookup context to use. |
object | Object to listen on. |
path | Path associated with lookup. |
Called when global notification is triggered.
This usually means a target object may have become available.
Implemented in kanzi::TypedObjectPropertyBindingSourceRuntime< T >, and kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >.
Called when local notification is triggered.
This usually means a target object may have become unavailable.
Implemented in kanzi::TypedObjectPropertyBindingSourceRuntime< T >, and kanzi::TypedObjectPropertyExpressionValueSourceRuntime< T >.
|
protected |
Is the global notification listener installed?
|
protected |
Is the local notification listener installed?