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. More... | |
bool | isGlobalNotificationInstalled () const |
Tells if this a global notification has been registered. More... | |
bool | isLocalNotificationInstalled () const |
Tells if this a local notification has been registered. More... | |
virtual void | onGlobalLookupNotification ()=0 |
Called when global notification is triggered. More... | |
virtual void | onLocalLookupNotification ()=0 |
Called when local notification is triggered. More... | |
void | registerGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Installs a global notification listener. More... | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Installs a local notification listener. More... | |
void | registerLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Installs a local notification listener. More... | |
void | unregisterGlobalNotification (BindingLookupContext &lookupContext, string_view path) |
Uninstalls a global notification listener. More... | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject *object, string_view path) |
Removes a local notification listener. More... | |
void | unregisterLocalNotification (BindingLookupContext &lookupContext, PropertyObject &object, string_view path) |
Removes a local notification listener. More... | |
~BindingLookupNotificationBase () | |
Destructor. More... | |
Protected Member Functions | |
BindingLookupNotificationBase () | |
Constructor. More... | |
Protected Attributes | |
bool | m_globalNotificationInstalled |
Is the global notification listener installed? More... | |
bool | m_localNotificationInstalled |
Is the local notification listener installed? More... | |
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. |
|
pure virtual |
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 >.
|
pure virtual |
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?