mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-19 03:28:21 +00:00
19 lines
No EOL
502 B
C++
19 lines
No EOL
502 B
C++
#include "mqttcommands/removeNode.h"
|
|
|
|
MqttCommand_RemoveNode::MqttCommand_RemoveNode(QObject *parent) :
|
|
MqttCommand(parent)
|
|
{
|
|
}
|
|
MqttCommand* MqttCommand_RemoveNode::Create(QObject *parent) {
|
|
return new MqttCommand_RemoveNode(parent);
|
|
}
|
|
|
|
bool MqttCommand_RemoveNode::processMessage(QJsonDocument msg) {
|
|
Q_UNUSED(msg);
|
|
QTOZWManager *mgr = getOZWManager();
|
|
mgr->removeNode();
|
|
QJsonObject js;
|
|
js["status"] = "ok";
|
|
emit sendCommandUpdate(GetCommand(), js);
|
|
return true;
|
|
} |