Helper class for observing certain property in nodes.
More...
#include <kanzi/ui/node/concept/activity/property_observer.hpp>
Helper class for observing certain property in nodes.
- Since
- Kanzi 3.9.0
◆ PropertyObserver()
Constructor.
- Parameters
-
propertyType | The property type that Kanzi observes in nodes. |
◆ ~PropertyObserver()
virtual kanzi::PropertyObserver::~PropertyObserver |
( |
| ) |
|
|
virtualdefault |
◆ startObserving()
Creates a binding for a property type in observed node with the given callbackBindingProcessor.
- Parameters
-
hostNode | Node that owns the property type. |
observedNode | Node where Kanzi observes the property type. |
callbackBindingProcessor | A callback when the value of the observed property type changes. |
◆ stopObserving()
void kanzi::PropertyObserver::stopObserving |
( |
NodeSharedPtr |
observedNode | ) |
|
Removes from the observedNode the binding to the observed property type.
- Parameters
-
observedNode | Node where Kanzi observes the property type. |
◆ removeAllBindings()
void kanzi::PropertyObserver::removeAllBindings |
( |
| ) |
|
Removes all bindings for the observed nodes.
The documentation for this class was generated from the following file: