 |
OpenZWave Library
1.6.1392
|
Go to the documentation of this file.
28 #ifndef _Notification_H
29 #define _Notification_H
42 class ApplicationStatus;
44 class ManufacturerSpecific;
46 class SceneActivation;
54 class ManufacturerSpecificDB;
118 Type_ControllerCommand,
122 Type_ManufacturerSpecificDBReady
132 Code_MsgComplete = 0,
175 return m_valueId.GetHomeId();
184 return m_valueId.GetNodeId();
202 assert(Type_Group == m_type);
212 assert((Type_NodeEvent == m_type) || (Type_ControllerCommand == m_type));
223 assert(Type_CreateButton == m_type || Type_DeleteButton == m_type || Type_ButtonOn == m_type || Type_ButtonOff == m_type);
234 assert(Type_SceneEvent == m_type);
244 assert((Type_Notification == m_type) || (Type_ControllerCommand == m_type));
254 assert(Type_ControllerCommand == m_type);
273 assert((Type_UserAlerts == m_type) && (Alert_ApplicationStatus_Retry == m_useralerttype));
281 string GetAsString()
const;
289 return m_useralerttype;
305 m_type(_type), m_byte(0), m_event(0), m_command(0), m_useralerttype(Alert_None)
312 void SetHomeAndNodeIds(
uint32 const _homeId,
uint8 const _nodeId)
314 m_valueId = ValueID(_homeId, _nodeId);
316 void SetHomeNodeIdAndInstance(
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _instance)
318 m_valueId = ValueID(_homeId, _nodeId, _instance);
320 void SetValueId(ValueID
const& _valueId)
322 m_valueId = _valueId;
324 void SetGroupIdx(
uint8 const _groupIdx)
326 assert(Type_Group == m_type);
329 void SetEvent(
uint8 const _event)
331 assert(Type_NodeEvent == m_type || Type_ControllerCommand == m_type);
334 void SetSceneId(
uint8 const _sceneId)
336 assert(Type_SceneEvent == m_type);
339 void SetButtonId(
uint8 const _buttonId)
341 assert(Type_CreateButton == m_type || Type_DeleteButton == m_type || Type_ButtonOn == m_type || Type_ButtonOff == m_type);
344 void SetNotification(
uint8 const _noteId)
346 assert((Type_Notification == m_type) || (Type_ControllerCommand == m_type));
349 void SetUserAlertNotification(UserAlertNotification
const alerttype)
351 assert(Type_UserAlerts == m_type);
352 m_useralerttype = alerttype;
354 void SetCommand(
uint8 const _command)
356 assert(Type_ControllerCommand == m_type);
357 m_command = _command;
359 void SetComPort(
string comport)
361 assert(Type_DriverFailed == m_type);
364 void SetRetry(
uint8 const timeout)
366 assert(Type_UserAlerts == m_type);
370 NotificationType m_type;
375 UserAlertNotification m_useralerttype;
384 #endif //_Notification_H
unsigned int uint32
Definition: Defs.h:91
uint8 GetCommand() const
Definition: Notification.h:252
@ Type_DriverReset
Definition: Notification.h:110
@ Type_Group
Definition: Notification.h:94
@ Alert_ApplicationStatus_Rejected
Definition: Notification.h:156
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:82
Implements COMMAND_CLASS_SCENEACTIVATION (0x2B), a Z-Wave device command class.
Definition: SceneActivation.h:45
@ Type_NodeNaming
Definition: Notification.h:99
@ Type_NodeReset
Definition: Notification.h:120
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:50
Provides a unique ID for a value reported by a Z-Wave device.
Definition: ValueID.h:77
@ Type_NodeQueriesComplete
Definition: Notification.h:112
@ Alert_ApplicationStatus_Queued
Definition: Notification.h:155
unsigned char uint8
Definition: Defs.h:85
@ Type_AwakeNodesQueried
Definition: Notification.h:113
@ Type_ValueChanged
Definition: Notification.h:92
@ Type_CreateButton
Definition: Notification.h:104
The _ManufacturerSpecificDB class handles the Config File Database that we use to configure devices.
Definition: ManufacturerSpecificDB.h:117
std::ostream & operator<<(std::ostream &os, const OpenZWave::Notification &dt)
Definition: Notification.cpp:345
UserAlertNotification GetUserAlertType() const
Definition: Notification.h:287
NotificationType
Definition: Notification.h:89
@ Code_Timeout
Definition: Notification.h:133
Implements COMMAND_CLASS_MANUFACTURER_SPECIFIC (0x72), a Z-Wave device command class.
Definition: ManufacturerSpecific.h:45
@ Alert_UnsupportedController
Definition: Notification.h:153
DEPRECATED uint8 GetSceneId() const
Definition: Notification.h:232
@ Type_NodeNew
Definition: Notification.h:95
@ Type_EssentialNodeQueriesComplete
Definition: Notification.h:111
uint8 GetRetry() const
Definition: Notification.h:271
uint8 GetNodeId() const
Definition: Notification.h:182
Provides a container for data sent via the notification callback handler installed by a call to Manag...
Definition: Notification.h:63
@ Alert_DNSError
Definition: Notification.h:151
@ Type_PollingEnabled
Definition: Notification.h:102
@ Code_Awake
Definition: Notification.h:135
@ Alert_ApplicationStatus_Retry
Definition: Notification.h:154
@ Alert_MFSOutOfDate
Definition: Notification.h:149
string GetComPort() const
Definition: Notification.h:297
@ Type_UserAlerts
Definition: Notification.h:121
@ Type_DriverRemoved
Definition: Notification.h:117
NotificationType GetType() const
Definition: Notification.h:164
@ Code_Sleep
Definition: Notification.h:136
@ Type_DriverReady
Definition: Notification.h:108
uint8 GetNotification() const
Definition: Notification.h:242
UserAlertNotification
Definition: Notification.h:146
@ Type_DriverFailed
Definition: Notification.h:109
ValueID const & GetValueID() const
Definition: Notification.h:191
@ Alert_ConfigFileDownloadFailed
Definition: Notification.h:150
uint8 GetButtonId() const
Definition: Notification.h:221
@ Type_DeleteButton
Definition: Notification.h:105
Implements COMMAND_CLASS_WAKE_UP (0x84), a Z-Wave device command class.
Definition: WakeUp.h:52
@ Type_ValueRefreshed
Definition: Notification.h:93
Implements COMMAND_CLASS_NODE_NAMING (0x77), a Z-Wave device command class.
Definition: NodeNaming.h:57
@ Type_PollingDisabled
Definition: Notification.h:101
@ Alert_None
Definition: Notification.h:147
The main public interface to OpenZWave.
Definition: Manager.h:109
uint8 GetGroupIdx() const
Definition: Notification.h:200
@ Alert_ConfigOutOfDate
Definition: Notification.h:148
@ Type_NodeProtocolInfo
Definition: Notification.h:98
uint8 GetByte() const
Definition: Notification.h:262
Implements COMMAND_CLASS_BASIC (0x20), a Z-Wave device command class.
Definition: Basic.h:43
@ Type_NodeRemoved
Definition: Notification.h:97
#define OPENZWAVE_EXPORT
Definition: Defs.h:52
Implements COMMAND_CLASS_APPLICATION_STATUS (0x22), a Z-Wave device command class.
Definition: ApplicationStatus.h:43
@ Type_ValueRemoved
Definition: Notification.h:91
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:85
@ Type_NodeEvent
Definition: Notification.h:100
@ Code_NoOperation
Definition: Notification.h:134
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:72
Base class for values associated with a node.
Definition: Value.h:55
@ Type_ButtonOff
Definition: Notification.h:107
@ Type_AllNodesQueried
Definition: Notification.h:115
NotificationCode
Definition: Notification.h:131
@ Type_NodeAdded
Definition: Notification.h:96
@ Alert_NodeReloadRequired
Definition: Notification.h:152
@ Type_Notification
Definition: Notification.h:116
uint8 GetEvent() const
Definition: Notification.h:210
@ Code_Dead
Definition: Notification.h:137
@ Type_ButtonOn
Definition: Notification.h:106
#define DEPRECATED
Definition: Defs.h:61
@ Type_SceneEvent
Definition: Notification.h:103
Definition: Bitfield.cpp:31
@ Type_AllNodesQueriedSomeDead
Definition: Notification.h:114
uint32 GetHomeId() const
Definition: Notification.h:173