28#ifndef _Notification_H
29#define _Notification_H
102 Type_ControllerCommand,
106 Type_ManufacturerSpecificDBReady
116 Code_MsgComplete = 0,
178 uint8 GetEvent()
const{ assert((Type_NodeEvent==m_type) || (Type_ControllerCommand == m_type));
return m_event; }
185 uint8 GetButtonId()
const{ assert(Type_CreateButton==m_type || Type_DeleteButton==m_type || Type_ButtonOn==m_type || Type_ButtonOff==m_type);
return m_byte; }
198 uint8 GetNotification()
const{ assert((Type_Notification==m_type) || (Type_ControllerCommand == m_type));
return m_byte; }
204 uint8 GetCommand()
const{ assert(Type_ControllerCommand == m_type);
return m_command; }
216 uint8 GetRetry()
const{ assert((Type_UserAlerts == m_type) && (Alert_ApplicationStatus_Retry == m_useralerttype));
return m_byte; }
222 string GetAsString()
const;
237 Notification( NotificationType _type ): m_type( _type ), m_byte(0), m_event(0), m_command(0), m_useralerttype(Alert_None) {}
240 void SetHomeAndNodeIds(
uint32 const _homeId,
uint8 const _nodeId ){ m_valueId = ValueID( _homeId, _nodeId ); }
241 void SetHomeNodeIdAndInstance (
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _instance ){ m_valueId = ValueID( _homeId, _nodeId, _instance ); }
242 void SetValueId( ValueID
const& _valueId ){ m_valueId = _valueId; }
243 void SetGroupIdx(
uint8 const _groupIdx ){ assert(Type_Group==m_type); m_byte = _groupIdx; }
244 void SetEvent(
uint8 const _event ){ assert(Type_NodeEvent==m_type || Type_ControllerCommand == m_type); m_event = _event; }
245 void SetSceneId(
uint8 const _sceneId ){ assert(Type_SceneEvent==m_type); m_byte = _sceneId; }
246 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; }
247 void SetNotification(
uint8 const _noteId ){ assert((Type_Notification==m_type) || (Type_ControllerCommand == m_type)); m_byte = _noteId; }
248 void SetUserAlertNofification(UserAlertNofification
const alerttype){ assert(Type_UserAlerts==m_type); m_useralerttype = alerttype; }
249 void SetCommand(
uint8 const _command ){ assert(Type_ControllerCommand == m_type); m_command = _command; }
250 void SetComPort(
string comport) { assert(Type_DriverFailed == m_type); m_comport = comport; }
251 void SetRetry (
uint8 const timeout) { assert(Type_UserAlerts == m_type); m_byte = timeout; }
253 NotificationType m_type;
258 UserAlertNofification m_useralerttype;
unsigned int uint32
Definition: Defs.h:95
#define OPENZWAVE_EXPORT
Definition: Defs.h:51
#define DEPRECATED
Definition: Defs.h:62
unsigned char uint8
Definition: Defs.h:89
std::ostream & operator<<(std::ostream &os, const OpenZWave::Notification &dt)
Definition: Notification.cpp:324
Implements COMMAND_CLASS_APPLICATION_STATUS (0x22), a Z-Wave device command class.
Definition: ApplicationStatus.h:39
Implements COMMAND_CLASS_BASIC (0x20), a Z-Wave device command class.
Definition: Basic.h:41
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:65
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:50
The main public interface to OpenZWave.
Definition: Manager.h:111
The _ManufacturerSpecificDB class handles the Config File Database that we use to configure devices.
Definition: ManufacturerSpecificDB.h:106
Implements COMMAND_CLASS_MANUFACTURER_SPECIFIC (0x72), a Z-Wave device command class.
Definition: ManufacturerSpecific.h:40
Implements COMMAND_CLASS_NO_OPERATION (0x00), a Z-Wave device command class.
Definition: NoOperation.h:39
Implements COMMAND_CLASS_NODE_NAMING (0x77), a Z-Wave device command class.
Definition: NodeNaming.h:55
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:66
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition: Notification.h:45
string GetComPort() const
Definition: Notification.h:234
UserAlertNofification GetUserAlertType() const
Definition: Notification.h:228
UserAlertNofification
Definition: Notification.h:130
@ Alert_MFSOutOfDate
Definition: Notification.h:133
@ Alert_ConfigFileDownloadFailed
Definition: Notification.h:134
@ Alert_DNSError
Definition: Notification.h:135
@ Alert_ApplicationStatus_Queued
Definition: Notification.h:139
@ Alert_NodeReloadReqired
Definition: Notification.h:136
@ Alert_UnsupportedController
Definition: Notification.h:137
@ Alert_ApplicationStatus_Rejected
Definition: Notification.h:140
@ Alert_ConfigOutOfDate
Definition: Notification.h:132
@ Alert_ApplicationStatus_Retry
Definition: Notification.h:138
@ Alert_None
Definition: Notification.h:131
NotificationType
Definition: Notification.h:73
@ Type_SceneEvent
Definition: Notification.h:87
@ Type_DriverReady
Definition: Notification.h:92
@ Type_DriverReset
Definition: Notification.h:94
@ Type_NodeProtocolInfo
Definition: Notification.h:82
@ Type_NodeAdded
Definition: Notification.h:80
@ Type_CreateButton
Definition: Notification.h:88
@ Type_EssentialNodeQueriesComplete
Definition: Notification.h:95
@ Type_ValueRefreshed
Definition: Notification.h:77
@ Type_ButtonOff
Definition: Notification.h:91
@ Type_DriverFailed
Definition: Notification.h:93
@ Type_AwakeNodesQueried
Definition: Notification.h:97
@ Type_ButtonOn
Definition: Notification.h:90
@ Type_NodeEvent
Definition: Notification.h:84
@ Type_DriverRemoved
Definition: Notification.h:101
@ Type_Group
Definition: Notification.h:78
@ Type_PollingDisabled
Definition: Notification.h:85
@ Type_NodeQueriesComplete
Definition: Notification.h:96
@ Type_AllNodesQueried
Definition: Notification.h:99
@ Type_ValueChanged
Definition: Notification.h:76
@ Type_PollingEnabled
Definition: Notification.h:86
@ Type_NodeNew
Definition: Notification.h:79
@ Type_DeleteButton
Definition: Notification.h:89
@ Type_UserAlerts
Definition: Notification.h:105
@ Type_AllNodesQueriedSomeDead
Definition: Notification.h:98
@ Type_Notification
Definition: Notification.h:100
@ Type_NodeReset
Definition: Notification.h:104
@ Type_NodeNaming
Definition: Notification.h:83
@ Type_NodeRemoved
Definition: Notification.h:81
@ Type_ValueRemoved
Definition: Notification.h:75
uint8 GetEvent() const
Definition: Notification.h:178
uint8 GetGroupIdx() const
Definition: Notification.h:172
DEPRECATED uint8 GetSceneId() const
Definition: Notification.h:192
uint8 GetButtonId() const
Definition: Notification.h:185
uint8 GetRetry() const
Definition: Notification.h:216
ValueID const & GetValueID() const
Definition: Notification.h:166
uint8 GetCommand() const
Definition: Notification.h:204
uint8 GetNodeId() const
Definition: Notification.h:160
uint8 GetNotification() const
Definition: Notification.h:198
NotificationCode
Definition: Notification.h:115
@ Code_Dead
Definition: Notification.h:121
@ Code_NoOperation
Definition: Notification.h:118
@ Code_Timeout
Definition: Notification.h:117
@ Code_Sleep
Definition: Notification.h:120
@ Code_Awake
Definition: Notification.h:119
NotificationType GetType() const
Definition: Notification.h:148
uint32 GetHomeId() const
Definition: Notification.h:154
uint8 GetByte() const
Definition: Notification.h:210
Implements COMMAND_CLASS_SCENEACTIVATION (0x2B), a Z-Wave device command class.
Definition: SceneActivation.h:42
Provides a unique ID for a value reported by a Z-Wave device.
Definition: ValueID.h:63
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:45
Base class for values associated with a node.
Definition: Value.h:49
Implements COMMAND_CLASS_WAKE_UP (0x84), a Z-Wave device command class.
Definition: WakeUp.h:46
Definition: Bitfield.h:35