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