Helper class for observing certain property in nodes. More...
#include <kanzi/ui/node/concept/activity/property_observer.hpp>
Public Member Functions | |
PropertyObserver (AbstractPropertyType propertyType) | |
Constructor. | |
void | removeAllBindings () |
Removes all bindings for the observed nodes. | |
void | startObserving (NodeSharedPtr hostNode, NodeSharedPtr observedNode, CallbackBindingProcessorSharedPtr callbackBindingProcessor) |
Creates a binding for a property type in observed node with the given callbackBindingProcessor. | |
void | stopObserving (NodeSharedPtr observedNode) |
Removes from the observedNode the binding to the observed property type. | |
virtual | ~PropertyObserver ()=default |
Destructor. | |
Helper class for observing certain property in nodes.
|
explicit |
Constructor.
propertyType | The property type that Kanzi observes in nodes. |
|
virtualdefault |
Destructor.
void kanzi::PropertyObserver::startObserving | ( | NodeSharedPtr | hostNode, |
NodeSharedPtr | observedNode, | ||
CallbackBindingProcessorSharedPtr | callbackBindingProcessor ) |
void kanzi::PropertyObserver::stopObserving | ( | NodeSharedPtr | observedNode | ) |
Removes from the observedNode the binding to the observed property type.
observedNode | Node where Kanzi observes the property type. |
void kanzi::PropertyObserver::removeAllBindings | ( | ) |
Removes all bindings for the observed nodes.