CHAI SDK  Version 1.3
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
CPNS::IBaseLocalDevice_NotificationHandler Class Referenceabstract

Notification handler for BaseLocalDevice. More...

Public Member Functions

virtual void OnBaseLocalDevice_Notification (CPNS::IBaseLocalDevice *const pNotifiedObject, CPNS::Enums::BaseLocalDeviceNotificationTypes const notification)=0
 This to inform the application about some update related to a local device. More...
 

Detailed Description

Notification handler for BaseLocalDevice.

Member Function Documentation

virtual void CPNS::IBaseLocalDevice_NotificationHandler::OnBaseLocalDevice_Notification ( CPNS::IBaseLocalDevice *const  pNotifiedObject,
CPNS::Enums::BaseLocalDeviceNotificationTypes const  notification 
)
pure virtual

This to inform the application about some update related to a local device.

Parameters
[in]pNotifiedObjectPointer to the notified local device object
[in]notificationnotification type
Warning
this notification is called just before the device redeclaration with the new identity, so DO NOT CALL Declare() FROM HERE! It is safe to change custom name (for example), the network update will be done automatically. Calling Declare() here can result in a ghost device appearing on the network.