119 typedef void (*pfnOnNotification_t)(
Notification const* _pNotification,
void* _context );
153 static void Destroy();
159 static std::string getVersionAsString();
194 void WriteConfig(
uint32 const _homeId );
239 bool RemoveDriver(
string const& _controllerPath );
269 bool IsPrimaryController(
uint32 const _homeId );
278 bool IsStaticUpdateController(
uint32 const _homeId );
287 bool IsBridgeController(
uint32 const _homeId );
294 string GetLibraryVersion(
uint32 const _homeId );
314 string GetLibraryTypeName(
uint32 const _homeId );
327 void LogDriverStatistics(
uint32 const _homeId );
339 string GetControllerPath(
uint32 const _homeId );
344 void SetDriverReady(
Driver* _driver,
bool success );
347 list<Driver*> m_pendingDrivers;
348 map<uint32,Driver*> m_readyDrivers;
364 int32 GetPollInterval();
377 void SetPollInterval(
int32 _milliseconds,
bool _bIntervalBetweenPolls );
384 bool EnablePoll(
ValueID const &_valueId,
uint8 const _intensity = 1 );
391 bool DisablePoll(
ValueID const &_valueId );
398 bool isPolled(
ValueID const &_valueId );
404 void SetPollIntensity(
ValueID const &_valueId,
uint8 const _intensity );
434 bool RefreshNodeInfo(
uint32 const _homeId,
uint8 const _nodeId );
444 bool RequestNodeState(
uint32 const _homeId,
uint8 const _nodeId );
454 bool RequestNodeDynamic(
uint32 const _homeId,
uint8 const _nodeId );
462 bool IsNodeListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
471 bool IsNodeFrequentListeningDevice(
uint32 const _homeId,
uint8 const _nodeId );
479 bool IsNodeBeamingDevice(
uint32 const _homeId,
uint8 const _nodeId );
487 bool IsNodeRoutingDevice(
uint32 const _homeId,
uint8 const _nodeId );
495 bool IsNodeSecurityDevice(
uint32 const _homeId,
uint8 const _nodeId );
552 string GetNodeType(
uint32 const _homeId,
uint8 const _nodeId );
576 string GetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId );
591 string GetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId );
605 string GetNodeName(
uint32 const _homeId,
uint8 const _nodeId );
618 string GetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId );
633 string GetNodeManufacturerId(
uint32 const _homeId,
uint8 const _nodeId );
648 string GetNodeProductType(
uint32 const _homeId,
uint8 const _nodeId );
663 string GetNodeProductId(
uint32 const _homeId,
uint8 const _nodeId );
678 void SetNodeManufacturerName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _manufacturerName );
693 void SetNodeProductName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _productName );
708 void SetNodeName(
uint32 const _homeId,
uint8 const _nodeId,
string const& _nodeName );
722 void SetNodeLocation(
uint32 const _homeId,
uint8 const _nodeId,
string const& _location );
734 void SetNodeOn(
uint32 const _homeId,
uint8 const _nodeId );
745 void SetNodeOff(
uint32 const _homeId,
uint8 const _nodeId );
758 void SetNodeLevel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _level );
766 bool IsNodeInfoReceived(
uint32 const _homeId,
uint8 const _nodeId );
775 bool GetNodeClassInformation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _commandClassId,
783 bool IsNodeAwake(
uint32 const _homeId,
uint8 const _nodeId );
791 bool IsNodeFailed(
uint32 const _homeId,
uint8 const _nodeId );
799 string GetNodeQueryStage(
uint32 const _homeId,
uint8 const _nodeId );
818 string GetValueLabel(
ValueID const& _id );
826 void SetValueLabel(
ValueID const& _id,
string const& _value );
834 string GetValueUnits(
ValueID const& _id );
842 void SetValueUnits(
ValueID const& _id,
string const& _value );
850 string GetValueHelp(
ValueID const& _id );
858 void SetValueHelp(
ValueID const& _id,
string const& _value );
882 bool IsValueReadOnly(
ValueID const& _id );
890 bool IsValueWriteOnly(
ValueID const& _id );
898 bool IsValueSet(
ValueID const& _id );
906 bool IsValuePolled(
ValueID const& _id );
915 bool GetValueAsBool(
ValueID const& _id,
bool* o_value );
924 bool GetValueAsByte(
ValueID const& _id,
uint8* o_value );
933 bool GetValueAsFloat(
ValueID const& _id,
float* o_value );
942 bool GetValueAsInt(
ValueID const& _id,
int32* o_value );
951 bool GetValueAsShort(
ValueID const& _id,
int16* o_value );
961 bool GetValueAsString(
ValueID const& _id,
string* o_value );
980 bool GetValueListSelection(
ValueID const& _id,
string* o_value );
989 bool GetValueListSelection(
ValueID const& _id,
int32* o_value );
998 bool GetValueListItems(
ValueID const& _id, vector<string>* o_value );
1007 bool GetValueFloatPrecision(
ValueID const& _id,
uint8* o_value );
1018 bool SetValue(
ValueID const& _id,
bool const _value );
1029 bool SetValue(
ValueID const& _id,
uint8 const _value );
1041 bool SetValue(
ValueID const& _id,
float const _value );
1052 bool SetValue(
ValueID const& _id,
int32 const _value );
1063 bool SetValue(
ValueID const& _id,
int16 const _value );
1085 bool SetValue(
ValueID const& _id,
string const& _value );
1097 bool SetValueListSelection(
ValueID const& _id,
string const& _selectedItem );
1106 bool RefreshValue(
ValueID const& _id);
1115 void SetChangeVerified(
ValueID const& _id,
bool _verify );
1123 bool PressButton(
ValueID const& _id );
1131 bool ReleaseButton(
ValueID const& _id );
1174 bool SetSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes,
int8 const _setback );
1188 bool RemoveSwitchPoint(
ValueID const& _id,
uint8 const _hours,
uint8 const _minutes );
1195 void ClearSwitchPoints(
ValueID const& _id );
1230 void SwitchAllOn(
uint32 const _homeId );
1236 void SwitchAllOff(
uint32 const _homeId );
1285 void RequestConfigParam(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _param );
1293 void RequestAllConfigParams(
uint32 const _homeId,
uint8 const _nodeId );
1346 string GetGroupLabel(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx );
1359 void AddAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId );
1372 void RemoveAssociation(
uint32 const _homeId,
uint8 const _nodeId,
uint8 const _groupIdx,
uint8 const _targetNodeId );
1394 bool AddWatcher( pfnOnNotification_t _watcher,
void* _context );
1403 bool RemoveWatcher( pfnOnNotification_t _watcher,
void* _context );
1411 pfnOnNotification_t m_callback;
1416 pfnOnNotification_t _callback,
1419 m_callback( _callback ),
1420 m_context( _context )
1426 list<Watcher*> m_watchers;
1428 Mutex* m_notificationMutex;
1444 void ResetController(
uint32 const _homeId );
1452 void SoftReset(
uint32 const _homeId );
1509 bool CancelControllerCommand(
uint32 const _homeId );
1528 void TestNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
uint32 const _count );
1537 void TestNetwork(
uint32 const _homeId,
uint32 const _count );
1546 void HealNetworkNode(
uint32 const _homeId,
uint8 const _nodeId,
bool _doRR );
1555 void HealNetwork(
uint32 const _homeId,
bool _doRR );
1572 uint8 GetNumScenes( );
1587 void RemoveAllScenes(
uint32 const _homeId );
1595 uint8 CreateScene();
1603 bool RemoveScene(
uint8 const _sceneId );
1613 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
bool const _value );
1623 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
uint8 const _value );
1633 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
float const _value );
1643 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
1653 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int16 const _value );
1663 bool AddSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
1673 bool AddSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
1683 bool AddSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
1692 bool RemoveSceneValue(
uint8 const _sceneId,
ValueID const& _valueId );
1701 int SceneGetValues(
uint8 const _sceneId, vector<ValueID>* o_value );
1711 bool SceneGetValueAsBool(
uint8 const _sceneId,
ValueID const& _valueId,
bool* o_value );
1721 bool SceneGetValueAsByte(
uint8 const _sceneId,
ValueID const& _valueId,
uint8* o_value );
1731 bool SceneGetValueAsFloat(
uint8 const _sceneId,
ValueID const& _valueId,
float* o_value );
1741 bool SceneGetValueAsInt(
uint8 const _sceneId,
ValueID const& _valueId,
int32* o_value );
1751 bool SceneGetValueAsShort(
uint8 const _sceneId,
ValueID const& _valueId,
int16* o_value );
1761 bool SceneGetValueAsString(
uint8 const _sceneId,
ValueID const& _valueId,
string* o_value );
1771 bool SceneGetValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string* o_value );
1781 bool SceneGetValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32* o_value );
1791 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
bool const _value );
1801 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
uint8 const _value );
1811 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
float const _value );
1821 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
1831 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
int16 const _value );
1841 bool SetSceneValue(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
1851 bool SetSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
string const& _value );
1861 bool SetSceneValueListSelection(
uint8 const _sceneId,
ValueID const& _valueId,
int32 const _value );
1869 string GetSceneLabel(
uint8 const _sceneId );
1877 void SetSceneLabel(
uint8 const _sceneId,
string const& _value );
1885 bool SceneExists(
uint8 const _sceneId );
1893 bool ActivateScene(
uint8 const _sceneId );
1924 #endif // _Manager_H Definition: Bitfield.h:34
Container that holds all of the values associated with a given node.
Definition: ValueStore.h:43
#define OPENZWAVE_EXPORT
Definition: Defs.h:51
#define OPENZWAVE_EXPORT_WARNINGS_ON
Definition: Defs.h:53
The main public interface to OpenZWave.
Definition: Manager.h:108
#define OPENZWAVE_EXPORT_WARNINGS_OFF
Definition: Defs.h:52
The Node class describes a Z-Wave node object...typically a device on the Z-Wave network.
Definition: Node.h:63
#define NULL
Definition: Defs.h:59
ControllerCommand
Definition: Driver.h:443
Base class for all Z-Wave command classes.
Definition: CommandClass.h:46
signed short int16
Definition: Defs.h:65
ControllerInterface
Definition: Driver.h:79
signed char int8
Definition: Defs.h:62
The Driver class handles communication between OpenZWave and a device attached via a serial port (typ...
Definition: Driver.h:56
Manages library options read from XML files or the command line.
Definition: Options.h:66
signed int int32
Definition: Defs.h:68
unsigned int uint32
Definition: Defs.h:69
Manages a group of devices (various nodes associated with each other).
Definition: Group.h:44
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
Options * GetOptions() const
Gets a pointer to the locked Options object.
Definition: Manager.h:201
Implements a platform-independent mutex–for serializing access to a shared resource.
Definition: Mutex.h:39
static Manager * Get()
Gets a pointer to the Manager object.
Definition: Manager.h:147
Base class for values associated with a node.
Definition: Value.h:44
void(* pfnControllerCallback_t)(ControllerState _state, ControllerError _err, void *_context)
Definition: Driver.h:505
unsigned char uint8
Definition: Defs.h:63