|
| ICentral (int32_t deviceFamily, BaseLib::SharedObjects *baseLib, ICentralEventSink *eventHandler) |
|
| ICentral (int32_t deviceFamily, BaseLib::SharedObjects *baseLib, uint32_t deviceId, std::string serialNumber, int32_t address, ICentralEventSink *eventHandler) |
|
virtual | ~ICentral () |
|
virtual void | dispose (bool wait=true) |
|
virtual void | load () |
|
virtual void | save (bool full) |
|
virtual void | homegearStarted () |
|
virtual void | homegearShuttingDown () |
|
virtual int32_t | deviceFamily () |
|
std::shared_ptr< DeviceTranslations > | getTranslations () |
|
virtual int32_t | getAddress () |
|
virtual uint64_t | getId () |
|
virtual std::string | getSerialNumber () |
|
virtual std::string | handleCliCommand (std::string command) |
|
std::vector< std::shared_ptr< Peer > > | getPeers () |
|
std::shared_ptr< Peer > | getPeer (int32_t address) |
|
std::shared_ptr< Peer > | getPeer (uint64_t id) |
|
std::shared_ptr< Peer > | getPeer (std::string serialNumber) |
|
virtual bool | peerExists (int32_t address) |
|
virtual bool | peerExists (std::string serialNumber) |
|
virtual bool | peerExists (uint64_t id) |
|
virtual uint64_t | getPeerIdFromSerial (std::string &serialNumber) |
|
virtual PVariable | activateLinkParamset (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, std::string remoteSerialNumber, int32_t remoteChannel, bool longPress) |
|
virtual PVariable | activateLinkParamset (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t remoteId, int32_t remoteChannel, bool longPress) |
|
virtual PVariable | addCategoryToChannel (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t categoryId) |
|
virtual PVariable | addDevice (PRpcClientInfo clientInfo, std::string serialNumber) |
|
virtual PVariable | addChannelToBuildingPart (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t buildingPartId) |
|
virtual PVariable | addChannelToRoom (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t roomId) |
|
virtual PVariable | addLink (PRpcClientInfo clientInfo, std::string senderSerialNumber, int32_t senderChannel, std::string receiverSerialNumber, int32_t receiverChannel, std::string name, std::string description) |
|
virtual PVariable | addLink (PRpcClientInfo clientInfo, uint64_t senderId, int32_t senderChannel, uint64_t receiverId, int32_t receiverChannel, std::string name, std::string description) |
|
virtual PVariable | createDevice (PRpcClientInfo clientInfo, int32_t deviceType, std::string serialNumber, int32_t address, int32_t firmwareVersion, std::string interfaceId) |
|
virtual PVariable | createDevice (PRpcClientInfo clientInfo, const std::string &code) |
|
virtual PVariable | deleteDevice (PRpcClientInfo clientInfo, std::string serialNumber, int32_t flags) |
|
virtual PVariable | deleteDevice (PRpcClientInfo clientInfo, uint64_t peerId, int32_t flags) |
|
virtual PVariable | getAllConfig (PRpcClientInfo clientInfo, uint64_t peerId, bool checkAcls) |
|
virtual PVariable | getAllValues (PRpcClientInfo clientInfo, BaseLib::PArray peerIds, bool returnWriteOnly, bool checkAcls) |
|
virtual PVariable | getChannelsInBuildingPart (PRpcClientInfo clientInfo, uint64_t buildingPartId, bool checkAcls) |
|
virtual PVariable | getChannelsInCategory (PRpcClientInfo clientInfo, uint64_t categoryId, bool checkAcls) |
|
virtual PVariable | getChannelsInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool checkAcls) |
|
virtual PVariable | getConfigParameter (PRpcClientInfo clientInfo, std::string serialNumber, uint32_t channel, std::string name) |
|
virtual PVariable | getConfigParameter (PRpcClientInfo clientInfo, uint64_t peerId, uint32_t channel, std::string name) |
|
virtual PVariable | getDeviceDescription (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, std::map< std::string, bool > fields) |
|
virtual PVariable | getDeviceDescription (PRpcClientInfo clientInfo, uint64_t id, int32_t channel, std::map< std::string, bool > fields) |
|
virtual PVariable | getDeviceInfo (PRpcClientInfo clientInfo, uint64_t id, std::map< std::string, bool > fields, bool checkAcls) |
|
virtual PVariable | getDevicesInBuildingPart (PRpcClientInfo clientInfo, uint64_t buildingPartId, bool checkAcls) |
|
virtual PVariable | getDevicesInCategory (PRpcClientInfo clientInfo, uint64_t categoryId, bool checkAcls) |
|
virtual PVariable | getDevicesInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool checkAcls) |
|
virtual PVariable | getPeerId (PRpcClientInfo clientInfo, int32_t filterType, std::string filterValue, bool checkAcls) |
|
virtual PVariable | getPeerId (PRpcClientInfo clientInfo, int32_t address) |
|
virtual PVariable | getPeerId (PRpcClientInfo clientInfo, std::string serialNumber) |
|
virtual PVariable | getInstallMode (PRpcClientInfo clientInfo) |
|
virtual PVariable | getLinkInfo (PRpcClientInfo clientInfo, std::string senderSerialNumber, int32_t senderChannel, std::string receiverSerialNumber, int32_t receiverChannel) |
|
virtual PVariable | getLinkInfo (PRpcClientInfo clientInfo, uint64_t senderId, int32_t senderChannel, uint64_t receiverId, int32_t receiverChannel) |
|
virtual PVariable | getLinkPeers (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel) |
|
virtual PVariable | getLinkPeers (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel) |
|
virtual PVariable | getLinks (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, int32_t flags) |
|
virtual PVariable | getLinks (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, int32_t flags, bool checkAcls) |
|
virtual PVariable | getName (PRpcClientInfo clientInfo, uint64_t id, int32_t channel) |
|
virtual PVariable | getPairingState (PRpcClientInfo clientInfo) |
|
virtual PVariable | getParamsetDescription (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, ParameterGroup::Type::Enum type, std::string remoteSerialNumber, int32_t remoteChannel) |
|
virtual PVariable | getParamsetDescription (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteId, int32_t remoteChannel, bool checkAcls) |
|
virtual PVariable | getParamsetId (PRpcClientInfo clientInfo, std::string serialNumber, uint32_t channel, ParameterGroup::Type::Enum type, std::string remoteSerialNumber, int32_t remoteChannel) |
|
virtual PVariable | getParamsetId (PRpcClientInfo clientInfo, uint64_t peerId, uint32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteId, int32_t remoteChannel) |
|
virtual PVariable | getParamset (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, ParameterGroup::Type::Enum type, std::string remoteSerialNumber, int32_t remoteChannel) |
|
virtual PVariable | getParamset (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteId, int32_t remoteChannel, bool checkAcls) |
|
virtual PVariable | getRolesInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool checkDeviceAcls, bool checkVariableAcls) |
|
virtual PVariable | getServiceMessages (PRpcClientInfo clientInfo, bool returnId, const std::string &language, bool checkAcls) |
|
virtual PVariable | getSniffedDevices (PRpcClientInfo clientInfo) |
|
virtual PVariable | getValue (PRpcClientInfo clientInfo, std::string serialNumber, uint32_t channel, std::string valueKey, bool requestFromDevice, bool asynchronous) |
|
virtual PVariable | getValue (PRpcClientInfo clientInfo, uint64_t id, uint32_t channel, std::string valueKey, bool requestFromDevice, bool asynchronous) |
|
virtual PVariable | getVariableDescription (PRpcClientInfo clientInfo, uint64_t id, uint32_t channel, std::string valueKey, const std::unordered_set< std::string > &fields) |
|
virtual PVariable | getVariablesInBuildingPart (PRpcClientInfo clientInfo, uint64_t buildingPartId, bool returnDeviceAssigned, bool checkDeviceAcls, bool checkVariableAcls) |
|
virtual PVariable | getVariablesInCategory (PRpcClientInfo clientInfo, uint64_t categoryId, bool checkDeviceAcls, bool checkVariableAcls) |
|
virtual PVariable | getVariablesInRole (PRpcClientInfo clientInfo, uint64_t roleId, bool checkDeviceAcls, bool checkVariableAcls) |
|
virtual PVariable | getVariablesInRoom (PRpcClientInfo clientInfo, uint64_t roomId, bool returnDeviceAssigned, bool checkDeviceAcls, bool checkVariableAcls) |
|
virtual PVariable | invokeFamilyMethod (PRpcClientInfo clientInfo, std::string &methodName, PArray parameters) |
|
virtual PVariable | listDevices (PRpcClientInfo clientInfo, bool channels, std::map< std::string, bool > fields, bool checkAcls) |
|
virtual PVariable | listDevices (PRpcClientInfo clientInfo, bool channels, std::map< std::string, bool > fields, std::shared_ptr< std::set< uint64_t >> knownDevices, bool checkAcls) |
|
virtual PVariable | listTeams (BaseLib::PRpcClientInfo clientInfo, bool checkAcls) |
|
virtual PVariable | putParamset (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, ParameterGroup::Type::Enum type, std::string remoteSerialNumber, int32_t remoteChannel, PVariable paramset) |
|
virtual PVariable | putParamset (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, ParameterGroup::Type::Enum type, uint64_t remoteId, int32_t remoteChannel, PVariable paramset, bool checkAcls) |
|
virtual PVariable | reportValueUsage (PRpcClientInfo clientInfo, std::string serialNumber) |
|
virtual PVariable | removeCategoryFromChannel (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t categoryId) |
|
virtual PVariable | removeChannelFromBuildingPart (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t buildingPartId) |
|
virtual PVariable | removeChannelFromRoom (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t roomId) |
|
virtual PVariable | removeLink (PRpcClientInfo clientInfo, std::string senderSerialNumber, int32_t senderChannel, std::string receiverSerialNumber, int32_t receiverChannel) |
|
virtual PVariable | removeLink (PRpcClientInfo clientInfo, uint64_t senderId, int32_t senderChannel, uint64_t receiverId, int32_t receiverChannel) |
|
virtual PVariable | rssiInfo (PRpcClientInfo clientInfo, bool checkAcls) |
|
virtual PVariable | searchDevices (PRpcClientInfo clientInfo, const std::string &interfaceId) |
|
virtual PVariable | searchInterfaces (PRpcClientInfo clientInfo, PVariable metadata) |
|
virtual std::shared_ptr< BaseLib::Variable > | setId (PRpcClientInfo clientInfo, uint64_t oldPeerId, uint64_t newPeerId) |
| RPC function to change the Id of the peer. More...
|
|
virtual std::shared_ptr< BaseLib::Variable > | setSerialNumber (PRpcClientInfo clientInfo, uint64_t peer_id, const std::string &new_serial_number) |
|
virtual PVariable | setInstallMode (PRpcClientInfo clientInfo, bool on, uint32_t duration, BaseLib::PVariable metadata, bool debugOutput=true) |
|
virtual PVariable | setInterface (PRpcClientInfo clientInfo, uint64_t peerId, std::string interfaceId) |
|
virtual PVariable | setLinkInfo (PRpcClientInfo clientInfo, std::string senderSerialNumber, int32_t senderChannel, std::string receiverSerialNumber, int32_t receiverChannel, std::string name, std::string description) |
|
virtual PVariable | setLinkInfo (PRpcClientInfo clientInfo, uint64_t senderId, int32_t senderChannel, uint64_t receiverId, int32_t receiverChannel, std::string name, std::string description) |
|
virtual PVariable | setName (PRpcClientInfo clientInfo, uint64_t id, int32_t channel, std::string name) |
|
virtual PVariable | setTeam (PRpcClientInfo clientInfo, std::string serialNumber, int32_t channel, std::string teamSerialNumber, int32_t teamChannel, bool force=false, bool burst=true) |
|
virtual PVariable | setTeam (PRpcClientInfo clientInfo, uint64_t peerId, int32_t channel, uint64_t teamId, int32_t teamChannel, bool force=false, bool burst=true) |
|
virtual PVariable | setValue (PRpcClientInfo clientInfo, std::string serialNumber, uint32_t channel, std::string valueKey, PVariable value, bool wait) |
|
virtual PVariable | setValue (PRpcClientInfo clientInfo, uint64_t id, uint32_t channel, std::string valueKey, PVariable value, bool wait) |
|
virtual PVariable | startSniffing (PRpcClientInfo clientInfo) |
|
virtual PVariable | stopSniffing (PRpcClientInfo clientInfo) |
|
virtual PVariable | updateFirmware (PRpcClientInfo clientInfo, std::vector< uint64_t > ids, bool manual) |
|
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< PVariable >> &values)=0 |
|
| IEventSinkBase () |
|
virtual | ~IEventSinkBase () |
|
| IEvents () |
|
virtual | ~IEvents () |
|
virtual void | setEventHandler (IEventSinkBase *eventHandler) |
|
virtual void | resetEventHandler () |
|
virtual IEventSinkBase * | getEventHandler () |
|
|
| ICentral (const ICentral &) |
|
ICentral & | operator= (const ICentral &) |
|
virtual void | raiseAddWebserverEventHandler (BaseLib::Rpc::IWebserverEventSink *eventHandler, std::map< int32_t, PEventHandler > &eventHandlers) |
|
virtual void | raiseRemoveWebserverEventHandler (std::map< int32_t, PEventHandler > &eventHandlers) |
|
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 | raiseRPCNewDevices (std::vector< uint64_t > &ids, PVariable deviceDescriptions) |
|
virtual void | raiseRPCDeleteDevices (std::vector< uint64_t > &ids, PVariable deviceAddresses, PVariable deviceInfo) |
|
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< std::shared_ptr< BaseLib::Variable >>> &values) |
|
virtual void | raiseServiceMessageEvent (const PServiceMessage &serviceMessage) |
|
virtual void | raiseRunScript (ScriptEngine::PScriptInfo &scriptInfo, bool wait) |
|
virtual BaseLib::PVariable | raiseInvokeRpc (std::string &methodName, BaseLib::PArray ¶meters) |
|
virtual uint64_t | raiseGetRoomIdByName (std::string &name) |
|
bool | onPacketReceived (std::string &senderID, std::shared_ptr< Packet > packet) override=0 |
|
void | onAddWebserverEventHandler (BaseLib::Rpc::IWebserverEventSink *eventHandler, std::map< int32_t, PEventHandler > &eventHandlers) override |
|
void | onRemoveWebserverEventHandler (std::map< int32_t, PEventHandler > &eventHandlers) override |
|
void | onRPCEvent (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) override |
|
void | onRPCUpdateDevice (uint64_t id, int32_t channel, std::string address, int32_t hint) override |
|
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< BaseLib::Variable >>> &values) override |
|
void | onServiceMessageEvent (const PServiceMessage &serviceMessage) override |
|
void | onRunScript (ScriptEngine::PScriptInfo &scriptInfo, bool wait) override |
|
BaseLib::PVariable | onInvokeRpc (std::string &methodName, BaseLib::PArray ¶meters) override |
|
virtual void | setPeerId (uint64_t oldPeerId, uint64_t newPeerId) |
|
virtual void | setPeerSerialNumber (const std::string &old_serial_number, const std::string &new_serial_number) |
|
virtual void | deletePeersFromDatabase () |
|
virtual void | loadVariables ()=0 |
|
virtual void | loadPeers () |
|
virtual void | savePeers (bool full) |
|
virtual void | saveVariables ()=0 |
|
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< uint8_t > &binaryValue) |
|