provisoric handling for node removal

This commit is contained in:
Michael Zanetti 2020-11-12 11:27:31 +01:00
parent b1173a3c35
commit 4b493ac51d
2 changed files with 7 additions and 1 deletions

View File

@ -161,6 +161,11 @@ void ZigbeeHardwareResourceImplementation::onZigbeeNodeAdded(const QUuid &networ
void ZigbeeHardwareResourceImplementation::onZigbeeNodeRemoved(const QUuid &networkUuid, ZigbeeNode *node)
{
qCDebug(dcZigbeeResource()) << node << "left the network" << m_zigbeeManager->zigbeeNetworks().value(networkUuid);
foreach (ZigbeeHandler *tmp, m_handlers) {
tmp->handleRemoveNode(node, networkUuid);
}
}
}

View File

@ -4,7 +4,7 @@
#include "zigbeenode.h"
#include "libnymea.h"
class LIBNYMEA_EXPORT ZigbeeHandler
class LIBNYMEA_EXPORT ZigbeeHandler
{
public:
ZigbeeHandler();
@ -12,6 +12,7 @@ public:
virtual QString name() const = 0;
virtual bool handleNode(ZigbeeNode *node, const QUuid &networkUuid) = 0;
virtual void handleRemoveNode(ZigbeeNode *node, const QUuid &networkUuid) = 0;
};
#endif // ZIGBEEHANDLER_H