provisoric handling for node removal
This commit is contained in:
parent
b1173a3c35
commit
4b493ac51d
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user