|
void | setRpcDevice (std::shared_ptr< HomegearDevice > value) |
|
std::shared_ptr< HomegearDevice > | getRpcDevice () |
|
| Peer (BaseLib::SharedObjects *baseLib, uint32_t parentId, IPeerEventSink *eventHandler) |
|
| Peer (BaseLib::SharedObjects *baseLib, uint64_t id, int32_t address, std::string serialNumber, uint32_t parentId, IPeerEventSink *eventHandler) |
|
virtual | ~Peer () |
|
virtual void | dispose () |
|
virtual bool | wireless ()=0 |
|
virtual uint32_t | getParentID () |
|
virtual int32_t | getAddress () |
|
virtual uint64_t | getID () |
|
virtual void | setID (uint64_t id) |
|
virtual void | setAddress (int32_t value) |
|
virtual std::string | getSerialNumber () |
|
virtual void | setSerialNumber (std::string serialNumber) |
|
virtual int32_t | getFirmwareVersion () |
|
virtual void | setFirmwareVersion (int32_t value) |
|
virtual std::string | getFirmwareVersionString () |
|
virtual void | setFirmwareVersionString (std::string value) |
|
virtual uint64_t | getDeviceType () |
|
virtual void | setDeviceType (uint64_t value) |
|
virtual std::string | getName () |
|
virtual std::string | getName (int32_t channel) |
|
virtual void | setName (std::string value) |
|
virtual void | setName (int32_t channel, std::string value) |
|
virtual std::string | getIp () |
|
virtual void | setIp (std::string value) |
|
virtual std::string | getIdString () |
|
virtual void | setIdString (std::string value) |
|
virtual std::string | getTypeString () |
|
virtual void | setTypeString (std::string value) |
|
virtual std::set< int32_t > | getChannelsInRoom (uint64_t roomId) |
|
virtual uint64_t | getRoom (int32_t channel) |
|
virtual bool | hasRoomInChannels (uint64_t roomId) |
|
bool | roomsSet () |
|
virtual bool | setRoom (int32_t channel, uint64_t value) |
|
virtual std::set< int32_t > | getChannelsInBuildingPart (uint64_t buildingPartId) |
|
virtual uint64_t | getBuildingPart (int32_t channel) |
|
virtual bool | hasBuildingPartInChannels (uint64_t buildingPartId) |
|
bool | buildingPartsSet () |
|
virtual bool | setBuildingPart (int32_t channel, uint64_t value) |
|
virtual std::unordered_map< int32_t, std::set< uint64_t > > | getCategories () |
|
virtual std::set< uint64_t > | getCategories (int32_t channel) |
|
virtual std::set< int32_t > | getChannelsInCategory (uint64_t categoryId) |
|
virtual bool | hasCategories () |
|
virtual bool | hasCategories (int32_t channel) |
|
virtual bool | hasCategory (int32_t channel, uint64_t id) |
|
virtual bool | hasCategoryInChannels (uint64_t categoryId) |
|
virtual bool | addCategory (int32_t channel, uint64_t id) |
|
virtual bool | removeCategory (int32_t channel, uint64_t id) |
|
virtual std::string | getRpcTypeString () |
|
virtual std::string | handleCliCommand (std::string command)=0 |
|
virtual HomegearDevice::ReceiveModes::Enum | getRXModes () |
|
virtual bool | isTeam () |
|
virtual void | setLastPacketReceived () |
|
virtual int64_t | getLastPacketReceived () |
|
virtual bool | pendingQueuesEmpty () |
|
virtual void | enqueuePendingQueues () |
|
virtual int32_t | getChannelGroupedWith (int32_t channel)=0 |
|
virtual int32_t | getNewFirmwareVersion ()=0 |
|
virtual std::string | getFirmwareVersionString (int32_t firmwareVersion)=0 |
|
virtual bool | firmwareUpdateAvailable ()=0 |
|
virtual bool | setVariableRoom (int32_t channel, std::string &variableName, uint64_t roomId) |
|
virtual void | removeRoomFromVariables (uint64_t roomId) |
|
virtual uint64_t | getVariableRoom (int32_t channel, const std::string &variableName) |
|
virtual bool | setVariableBuildingPart (int32_t channel, std::string &variableName, uint64_t buildingPartId) |
|
virtual void | removeBuildingPartFromVariables (uint64_t buildingPartId) |
|
virtual uint64_t | getVariableBuildingPart (int32_t channel, const std::string &variableName) |
|
virtual bool | addCategoryToVariable (int32_t channel, std::string &variableName, uint64_t categoryId) |
|
virtual bool | removeCategoryFromVariable (int32_t channel, std::string &variableName, uint64_t categoryId) |
|
virtual void | removeCategoryFromVariables (uint64_t categoryId) |
|
virtual std::set< uint64_t > | getVariableCategories (int32_t channel, std::string &variableName) |
|
virtual bool | variableHasCategory (int32_t channel, const std::string &variableName, uint64_t categoryId) |
|
virtual bool | variableHasCategories (int32_t channel, const std::string &variableName) |
|
virtual bool | addRoleToVariable (int32_t channel, std::string &variableName, uint64_t roleId, RoleDirection direction, bool invert, bool scale, RoleScaleInfo scaleInfo) |
|
virtual bool | removeRoleFromVariable (int32_t channel, std::string &variableName, uint64_t roleId) |
|
virtual void | removeRoleFromVariables (uint64_t roleId) |
|
virtual std::unordered_map< uint64_t, Role > | getVariableRoles (int32_t channel, std::string &variableName) |
|
virtual bool | variableHasRole (int32_t channel, const std::string &variableName, uint64_t roleId) |
|
virtual bool | variableHasRoles (int32_t channel, const std::string &variableName) |
|
virtual bool | load (ICentral *central) |
|
virtual void | save (bool savePeer, bool saveVariables, bool saveCentralConfig) |
|
virtual void | loadConfig () |
|
virtual void | saveConfig () |
|
virtual uint64_t | createParameter (ParameterGroup::Type::Enum parameterSetType, uint32_t channel, const std::string ¶meterName, std::vector< uint8_t > &value, int32_t remoteAddress=0, uint32_t remoteChannel=0) |
| In contrast to saveParameter() this method waits for the parameter to be created and returns it's database ID. More...
|
|
virtual void | saveParameter (uint32_t parameterID, ParameterGroup::Type::Enum parameterSetType, uint32_t channel, const std::string ¶meterName, std::vector< uint8_t > &value, int32_t remoteAddress=0, uint32_t remoteChannel=0) |
|
virtual void | saveSpecialTypeParameter (uint32_t parameterID, ParameterGroup::Type::Enum parameterSetType, uint32_t channel, const std::string ¶meterName, std::vector< uint8_t > &value, int32_t specialType, const BaseLib::PVariable &metadata, const std::string &roles) |
|
virtual void | saveParameter (uint32_t parameterID, uint32_t address, std::vector< uint8_t > &value) |
|
virtual void | saveParameter (uint32_t parameterID, std::vector< uint8_t > &value) |
|
virtual void | loadVariables (ICentral *central, std::shared_ptr< BaseLib::Database::DataTable > &rows) |
|
virtual void | saveVariables () |
|
virtual void | saveVariable (uint32_t index, int32_t intValue) |
|
virtual void | saveVariable (uint32_t index, int64_t intValue) |
|
virtual void | saveVariable (uint32_t index, std::string &stringValue) |
|
virtual void | saveVariable (uint32_t index, std::vector< char > &binaryValue) |
|
virtual void | saveVariable (uint32_t index, std::vector< uint8_t > &binaryValue) |
|
virtual void | deleteFromDatabase () |
|
virtual void | savePeers ()=0 |
|
virtual void | homegearStarted () |
|
virtual void | homegearShuttingDown () |
|
virtual void | initializeCentralConfig () |
|
virtual std::unordered_map< int32_t, std::vector< std::shared_ptr< BasicPeer > > > | getPeers () |
|
virtual std::shared_ptr< BasicPeer > | getPeer (int32_t channel, int32_t address, int32_t remoteChannel=-1) |
|
virtual std::shared_ptr< BasicPeer > | getPeer (int32_t channel, uint64_t id, int32_t remoteChannel=-1) |
|
virtual std::shared_ptr< BasicPeer > | getPeer (int32_t channel, std::string serialNumber, int32_t remoteChannel=-1) |
|
virtual void | updatePeer (uint64_t oldId, uint64_t newId) |
|
virtual void | updatePeer (const std::string &old_serial_number, const std::string &new_serial_number) |
|
virtual std::shared_ptr< ICentral > | getCentral ()=0 |
|
virtual PVariable | activateLinkParamset (PRpcClientInfo clientInfo, int32_t channel, uint64_t remoteID, int32_t remoteChannel, bool longPress) |
|
virtual PVariable | forceConfigUpdate (PRpcClientInfo clientInfo) |
|
virtual PVariable | getAllConfig (PRpcClientInfo clientInfo) |
|
virtual PVariable | getAllValues (PRpcClientInfo clientInfo, bool returnWriteOnly, bool checkAcls) |
|
virtual PVariable | getConfigParameter (PRpcClientInfo clientInfo, uint32_t channel, std::string name) |
|
virtual std::shared_ptr< std::vector< PVariable > > | getDeviceDescriptions (PRpcClientInfo clientInfo, bool channels, std::map< std::string, bool > fields) |
|
virtual PVariable | getDeviceDescription (PRpcClientInfo clientInfo, int32_t channel, std::map< std::string, bool > fields) |
|
virtual PVariable | getDeviceInfo (PRpcClientInfo clientInfo, std::map< std::string, bool > fields) |
|
virtual PVariable | getLink (PRpcClientInfo clientInfo, int32_t channel, int32_t flags, bool avoidDuplicates) |
|
virtual PVariable | getLinkInfo (PRpcClientInfo clientInfo, int32_t senderChannel, uint64_t receiverID, int32_t receiverChannel) |
|
virtual PVariable | setLinkInfo (PRpcClientInfo clientInfo, int32_t senderChannel, uint64_t receiverID, int32_t receiverChannel, std::string name, std::string description) |
|
virtual PVariable | getLinkPeers (PRpcClientInfo clientInfo, int32_t channel, bool returnID) |
|
virtual PVariable | getParamset (PRpcClientInfo clientInfo, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteID, int32_t remoteChannel, bool checkAcls) |
|
virtual PVariable | getParamsetDescription (PRpcClientInfo clientInfo, int32_t channel, PParameterGroup parameterSet, bool checkAcls) |
|
virtual PVariable | getParamsetDescription (PRpcClientInfo clientInfo, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteID, int32_t remoteChannel, bool checkAcls) |
|
virtual PVariable | getParamsetId (PRpcClientInfo clientInfo, uint32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteID, int32_t remoteChannel) |
|
virtual PVariable | getRolesInDevice (PRpcClientInfo clientInfo, bool checkAcls) |
|
virtual PVariable | getRolesInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool checkAcls) |
|
virtual PVariable | getServiceMessages (PRpcClientInfo clientInfo, bool returnID, const std::string &language) |
|
virtual PVariable | getValue (PRpcClientInfo clientInfo, uint32_t channel, std::string valueKey, bool requestFromDevice, bool asynchronous) |
|
virtual PVariable | getVariableDescription (PRpcClientInfo clientInfo, uint32_t channel, std::string valueKey, const std::unordered_set< std::string > &fields) |
|
virtual PVariable | getVariablesInCategory (PRpcClientInfo clientInfo, uint64_t categoryId, bool checkAcls) |
|
virtual PVariable | getVariablesInRole (PRpcClientInfo clientInfo, uint64_t roleId, bool checkAcls) |
|
virtual PVariable | getVariablesInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool returnDeviceAssigned, bool checkAcls) |
|
virtual PVariable | getVariablesInBuildingPart (PRpcClientInfo clientInfo, uint64_t buildingPartId, bool returnDeviceAssigned, bool checkAcls) |
|
virtual PVariable | putParamset (PRpcClientInfo clientInfo, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteID, int32_t remoteChannel, PVariable variables, bool checkAcls, bool onlyPushing=false)=0 |
|
virtual PVariable | reportValueUsage (PRpcClientInfo clientInfo) |
|
virtual PVariable | rssiInfo (PRpcClientInfo clientInfo) |
|
virtual PVariable | setId (PRpcClientInfo clientInfo, uint64_t newPeerID) |
| RPC function to change the ID of the peer. More...
|
|
virtual PVariable | setSerialNumber (PRpcClientInfo clientInfo, const std::string &new_serial_number) |
|
virtual PVariable | setInterface (PRpcClientInfo clientInfo, std::string interfaceID) |
|
virtual PVariable | setValue (PRpcClientInfo clientInfo, uint32_t channel, std::string valueKey, PVariable value, bool wait) |
|
virtual void | onEvent (std::string &source, uint64_t peerId, int32_t channel, std::shared_ptr< std::vector< std::string >> &variables, std::shared_ptr< std::vector< std::shared_ptr< Variable >>> &values)=0 |
|
virtual void | onRPCEvent (std::string &source, uint64_t peerId, int32_t channel, std::string &deviceAddress, std::shared_ptr< std::vector< std::string >> &valueKeys, std::shared_ptr< std::vector< std::shared_ptr< Variable >>> &values)=0 |
|
| IEventSinkBase () |
|
virtual | ~IEventSinkBase () |
|
| IEvents () |
|
virtual | ~IEvents () |
|
virtual void | setEventHandler (IEventSinkBase *eventHandler) |
|
virtual void | resetEventHandler () |
|
virtual IEventSinkBase * | getEventHandler () |
|
|
virtual void | raiseAddWebserverEventHandler (Rpc::IWebserverEventSink *eventHandler) |
|
virtual void | raiseRemoveWebserverEventHandler () |
|
virtual void | raiseRPCEvent (std::string &source, uint64_t id, int32_t channel, std::string &deviceAddress, std::shared_ptr< std::vector< std::string >> &valueKeys, std::shared_ptr< std::vector< PVariable >> &values) |
|
virtual void | raiseRPCUpdateDevice (uint64_t id, int32_t channel, std::string address, int32_t hint) |
|
virtual void | raiseEvent (std::string &source, uint64_t peerID, int32_t channel, std::shared_ptr< std::vector< std::string >> &variables, std::shared_ptr< std::vector< PVariable >> &values) |
|
void | raiseServiceMessageEvent (const PServiceMessage &serviceMessage) |
|
virtual void | raiseRunScript (ScriptEngine::PScriptInfo &scriptInfo, bool wait) |
|
virtual BaseLib::PVariable | raiseInvokeRpc (std::string &methodName, BaseLib::PArray ¶meters) |
|
virtual void | onConfigPending (bool configPending) |
|
void | onEvent (std::string &source, uint64_t peerId, int32_t channel, std::shared_ptr< std::vector< std::string >> &variables, std::shared_ptr< std::vector< PVariable >> &values) override |
|
void | onRPCEvent (std::string &source, uint64_t peerId, int32_t channel, std::string &deviceAddress, std::shared_ptr< std::vector< std::string >> &valueKeys, std::shared_ptr< std::vector< PVariable >> &values) override |
|
void | onServiceMessageEvent (const PServiceMessage &serviceMessage) override |
|
void | onSaveParameter (std::string name, uint32_t channel, std::vector< uint8_t > &data) override |
|
std::shared_ptr< Database::DataTable > | onGetServiceMessages () override |
|
void | onSaveServiceMessage (Database::DataRow &data) override |
|
void | onDeleteServiceMessage (uint64_t databaseID) override |
|
void | onEnqueuePendingQueues () override |
|
BaseLib::DeviceDescription::PParameter | createRoleRpcParameter (BaseLib::PVariable &variableInfo, const std::string &baseVariableName, const PParameterGroup ¶meterGroup) |
| Creates an RPC parameter based on settings provided in variableInfo. More...
|
|
virtual PVariable | getValueFromDevice (std::shared_ptr< Parameter > ¶meter, int32_t channel, bool asynchronous) |
| Gets a variable value directly from the device. More...
|
|
virtual PParameterGroup | getParameterSet (int32_t channel, ParameterGroup::Type::Enum type)=0 |
| This method returns the correct parameter set for a specified channel and parameter set type. More...
|
|
virtual PVariable | getVariableDescription (PRpcClientInfo clientInfo, const PParameter ¶meter, int32_t channel, ParameterGroup::Type::Enum type, int32_t index, const std::unordered_set< std::string > &fields) |
|
virtual void | setDefaultValue (RpcConfigurationParameter ¶meter) |
| Overridable hook in initializeCentralConfig to set a custom default value. More...
|
|
virtual void | initializeMasterSet (int32_t channel, std::shared_ptr< ConfigParameters > masterSet) |
| Called by initializeCentralConfig(). More...
|
|
virtual void | initializeValueSet (int32_t channel, std::shared_ptr< Variables > valueSet) |
| Called by initializeCentralConfig(). More...
|
|
virtual void | initializeTypeString () |
| Initializes _typeString. More...
|
|
virtual bool | getAllConfigHook2 (PRpcClientInfo clientInfo, PParameter parameter, uint32_t channel, PVariable parameters) |
|
virtual bool | getAllValuesHook2 (PRpcClientInfo clientInfo, PParameter parameter, uint32_t channel, PVariable parameters) |
|
virtual bool | getParamsetHook2 (PRpcClientInfo clientInfo, PParameter parameter, uint32_t channel, PVariable parameters) |
|
virtual bool | convertFromPacketHook (RpcConfigurationParameter ¶meter, std::vector< uint8_t > &data, PVariable &result) |
|
virtual bool | convertToPacketHook (RpcConfigurationParameter ¶meter, PVariable &data, std::vector< uint8_t > &result) |
|