28 #ifndef _Notification_H 29 #define _Notification_H 95 Type_ControllerCommand,
107 Code_MsgComplete = 0,
151 uint8 GetEvent()
const{ assert((Type_NodeEvent==m_type) || (Type_ControllerCommand == m_type));
return m_event; }
158 uint8 GetButtonId()
const{ assert(Type_CreateButton==m_type || Type_DeleteButton==m_type || Type_ButtonOn==m_type || Type_ButtonOff==m_type);
return m_byte; }
170 uint8 GetNotification()
const{ assert((Type_Notification==m_type) || (Type_ControllerCommand == m_type));
return m_byte; }
182 string GetAsString()
const;
186 Notification( NotificationType _type ): m_type( _type ), m_byte(0), m_event(0) {}
189 void SetHomeAndNodeIds(
uint32 const _homeId,
uint8 const _nodeId ){ m_valueId = ValueID( _homeId, _nodeId ); }
190 void SetHomeNodeIdAndInstance (
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _instance ){ m_valueId = ValueID( _homeId, _nodeId, _instance ); }
191 void SetValueId( ValueID
const& _valueId ){ m_valueId = _valueId; }
192 void SetGroupIdx(
uint8 const _groupIdx ){ assert(Type_Group==m_type); m_byte = _groupIdx; }
193 void SetEvent(
uint8 const _event ){ assert(Type_NodeEvent==m_type || Type_ControllerCommand == m_type); m_event = _event; }
194 void SetSceneId(
uint8 const _sceneId ){ assert(Type_SceneEvent==m_type); m_byte = _sceneId; }
195 void SetButtonId(
uint8 const _buttonId ){ assert(Type_CreateButton==m_type||Type_DeleteButton==m_type||Type_ButtonOn==m_type||Type_ButtonOff==m_type); m_byte = _buttonId; }
196 void SetNotification(
uint8 const _noteId ){ assert((Type_Notification==m_type) || (Type_ControllerCommand == m_type)); m_byte = _noteId; }
198 NotificationType m_type;
206 #endif //_Notification_H Implements COMMAND_CLASS_NO_OPERATION (0x00), a Z-Wave device command class.
Definition: NoOperation.h:37
Definition: Bitfield.h:34
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:43
Definition: Notification.h:70
Definition: Notification.h:78
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Implements COMMAND_CLASS_MANUFACTURER_SPECIFIC (0x72), a Z-Wave device command class.
Definition: ManufacturerSpecific.h:38
Definition: Notification.h:75
Definition: Notification.h:82
Implements COMMAND_CLASS_WAKE_UP (0x84), a Z-Wave device command class.
Definition: WakeUp.h:43
The main public interface to OpenZWave.
Definition: Manager.h:109
ValueID const & GetValueID() const
Definition: Notification.h:139
uint8 GetSceneId() const
Definition: Notification.h:164
uint8 GetNodeId() const
Definition: Notification.h:133
Definition: Notification.h:77
uint32 GetHomeId() const
Definition: Notification.h:127
Definition: Notification.h:109
Definition: Notification.h:84
Definition: Notification.h:73
Definition: Notification.h:93
Definition: Notification.h:74
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:64
NotificationType
Definition: Notification.h:65
Definition: Notification.h:68
Definition: Notification.h:83
Definition: Notification.h:92
Definition: Notification.h:91
Definition: Notification.h:71
Definition: Notification.h:112
NotificationType GetType() const
Definition: Notification.h:121
Definition: Notification.h:80
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:58
Implements COMMAND_CLASS_SCENEACTIVATION (0x2B), a Z-Wave device command class.
Definition: SceneActivation.h:39
unsigned int uint32
Definition: Defs.h:80
uint8 GetByte() const
Definition: Notification.h:176
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:49
Definition: Notification.h:87
Definition: Notification.h:90
uint8 GetButtonId() const
Definition: Notification.h:158
Definition: Notification.h:76
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition: Notification.h:42
Provides a unique ID for a value reported by a Z-Wave device.
Definition: ValueID.h:53
Definition: Notification.h:89
Definition: Notification.h:81
Definition: Notification.h:69
uint8 GetGroupIdx() const
Definition: Notification.h:145
uint8 GetNotification() const
Definition: Notification.h:170
Definition: Notification.h:72
NotificationCode
Definition: Notification.h:105
Definition: Notification.h:108
uint8 GetEvent() const
Definition: Notification.h:151
Base class for values associated with a node.
Definition: Value.h:47
Definition: Notification.h:88
Implements COMMAND_CLASS_NODE_NAMING (0x77), a Z-Wave device command class.
Definition: NodeNaming.h:37
Definition: Notification.h:111
Definition: Notification.h:79
Definition: Notification.h:110
Definition: Notification.h:94
Implements COMMAND_CLASS_BASIC (0x20), a Z-Wave device command class.
Definition: Basic.h:39
Definition: Notification.h:86
Definition: Notification.h:85
unsigned char uint8
Definition: Defs.h:74