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. More... | |
void | removeAllBindings () |
Removes all bindings for the observed nodes. More... | |
void | startObserving (NodeSharedPtr hostNode, NodeSharedPtr observedNode, CallbackBindingProcessorSharedPtr callbackBindingProcessor) |
Creates a binding for a property type in observed node with the given callbackBindingProcessor. More... | |
void | stopObserving (NodeSharedPtr observedNode) |
Removes from the observedNode the binding to the observed property type. More... | |
virtual | ~PropertyObserver ()=default |
Destructor. More... | |
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.