Kanzi 3.9.10
kanzi::NodePropertyNotificationHandler Class Reference

Node property notification handler. More...

#include <kanzi/core.ui/node/node_property_notification_handler.hpp>

Inheritance diagram for kanzi::NodePropertyNotificationHandler:
[legend]

Public Member Functions

NodegetNode () const
 Access the node.
 
void invalidate ()
 Invalidates the state of the notification handler.
 
bool isValid () const
 Tell if this notification handler is valid.
 
- Public Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
AbstractPropertyType getPropertyType () const
 Get the property type this handler is listening.
 
virtual void onPropertyChanged (PropertyNotificationReason reason)=0
 Method to be executed when property is changed.
 

Protected Member Functions

 NodePropertyNotificationHandler ()
 Empty constructor.
 
 NodePropertyNotificationHandler (AbstractPropertyType propertyType, Node *node)
 Constructor.
 
 NodePropertyNotificationHandler (const NodePropertyNotificationHandler &rhs)
 Copy constructor.
 
NodePropertyNotificationHandleroperator= (const NodePropertyNotificationHandler &rhs)
 Assignment operator.
 
 ~NodePropertyNotificationHandler () override
 Destructor.
 
- Protected Member Functions inherited from kanzi::AbstractPropertyNotificationHandler
 AbstractPropertyNotificationHandler ()
 Empty constructor.
 
 AbstractPropertyNotificationHandler (AbstractPropertyType propertyType)
 Constructor.
 
virtual ~AbstractPropertyNotificationHandler ()
 

Detailed Description

Node property notification handler.

Constructor & Destructor Documentation

◆ NodePropertyNotificationHandler() [1/3]

kanzi::NodePropertyNotificationHandler::NodePropertyNotificationHandler ( )
inlineexplicitprotected

Empty constructor.

◆ NodePropertyNotificationHandler() [2/3]

kanzi::NodePropertyNotificationHandler::NodePropertyNotificationHandler ( const NodePropertyNotificationHandler & rhs)
explicitprotected

Copy constructor.

Parameters
rhsHandler to copy from.

◆ NodePropertyNotificationHandler() [3/3]

kanzi::NodePropertyNotificationHandler::NodePropertyNotificationHandler ( AbstractPropertyType propertyType,
Node * node )
explicitprotected

Constructor.

Implicitly attaches to the node it's constructed on.

◆ ~NodePropertyNotificationHandler()

kanzi::NodePropertyNotificationHandler::~NodePropertyNotificationHandler ( )
overrideprotected

Destructor.

Implicitly detaches from the node it was constructed on.

Member Function Documentation

◆ getNode()

Node * kanzi::NodePropertyNotificationHandler::getNode ( ) const
inline

Access the node.

Returns
Pointer to node.

◆ invalidate()

void kanzi::NodePropertyNotificationHandler::invalidate ( )
inline

Invalidates the state of the notification handler.

Use this function to invalidate a node that you destroyed before destroying the NodePropertyNotificationHandler.

◆ isValid()

bool kanzi::NodePropertyNotificationHandler::isValid ( ) const
inline

Tell if this notification handler is valid.

Returns
True if yes, false if no.

◆ operator=()

NodePropertyNotificationHandler & kanzi::NodePropertyNotificationHandler::operator= ( const NodePropertyNotificationHandler & rhs)
protected

Assignment operator.

Parameters
rhsHandler to copy from.
Returns
Reference to assignee.

The documentation for this class was generated from the following file: