mirror of
https://github.com/Fishwaldo/qt-openzwave.git
synced 2025-07-19 11:38:19 +00:00
Add a bunch of Manager Methods for MQTT Commands
This commit is contained in:
parent
ea376a48cd
commit
6a088c931b
67 changed files with 1272 additions and 13 deletions
|
@ -1,5 +1,34 @@
|
|||
#include "mqttcommands/mqttcommands.h"
|
||||
#include "mqttcommands/ping.h"
|
||||
#include "mqttcommands/open.h"
|
||||
#include "mqttcommands/refreshnodeinfo.h"
|
||||
#include "mqttcommands/requestNodeState.h"
|
||||
#include "mqttcommands/requestNodeDynamic.h"
|
||||
#include "mqttcommands/requestConfigParam.h"
|
||||
#include "mqttcommands/requestAllConfigParam.h"
|
||||
#include "mqttcommands/softResetController.h"
|
||||
#include "mqttcommands/hardResetController.h"
|
||||
#include "mqttcommands/cancelControllerCommand.h"
|
||||
#include "mqttcommands/testNetworkNode.h"
|
||||
#include "mqttcommands/testNetwork.h"
|
||||
#include "mqttcommands/healNetworkNode.h"
|
||||
#include "mqttcommands/healNetwork.h"
|
||||
#include "mqttcommands/addNode.h"
|
||||
#include "mqttcommands/addNodeSecure.h"
|
||||
#include "mqttcommands/removeNode.h"
|
||||
#include "mqttcommands/removeFailedNode.h"
|
||||
#include "mqttcommands/hasNodeFailed.h"
|
||||
#include "mqttcommands/requestNodeNeighborUpdate.h"
|
||||
#include "mqttcommands/assignReturnRoute.h"
|
||||
#include "mqttcommands/deleteAllReturnRoute.h"
|
||||
#include "mqttcommands/sendNodeInformation.h"
|
||||
#include "mqttcommands/replaceFailedNode.h"
|
||||
#include "mqttcommands/requestNetworkUpdate.h"
|
||||
#include "mqttcommands/IsNodeFailed.h"
|
||||
#include "mqttcommands/checkLatestConfigFileRevision.h"
|
||||
#include "mqttcommands/checkLatestMFSRevision.h"
|
||||
#include "mqttcommands/downloadLatestConfigFileRevision.h"
|
||||
#include "mqttcommands/downloadLatestMFSRevision.h"
|
||||
|
||||
|
||||
MqttCommand::MqttCommand(QObject *parent) :
|
||||
|
@ -73,6 +102,35 @@ void MqttCommands::Register(QString command, pfnCreateCommand_t _create) {
|
|||
|
||||
void MqttCommands::setupCommands() {
|
||||
this->Register(MqttCommand_Ping::StaticGetCommand(), &MqttCommand_Ping::Create);
|
||||
this->Register(MqttCommand_Open::StaticGetCommand(), &MqttCommand_Open::Create);
|
||||
this->Register(MqttCommand_RefreshNodeInfo::StaticGetCommand(), &MqttCommand_RefreshNodeInfo::Create);
|
||||
this->Register(MqttCommand_RequestNodeState::StaticGetCommand(), &MqttCommand_RequestNodeState::Create);
|
||||
this->Register(MqttCommand_RequestNodeDynamic::StaticGetCommand(), &MqttCommand_RequestNodeDynamic::Create);
|
||||
this->Register(MqttCommand_RequestConfigParam::StaticGetCommand(), &MqttCommand_RequestConfigParam::Create);
|
||||
this->Register(MqttCommand_RequestAllConfigParam::StaticGetCommand(), &MqttCommand_RequestAllConfigParam::Create);
|
||||
this->Register(MqttCommand_SoftResetController::StaticGetCommand(), &MqttCommand_SoftResetController::Create);
|
||||
this->Register(MqttCommand_HardResetController::StaticGetCommand(), &MqttCommand_HardResetController::Create);
|
||||
this->Register(MqttCommand_CancelControllerCommand::StaticGetCommand(), &MqttCommand_CancelControllerCommand::Create);
|
||||
this->Register(MqttCommand_TestNetworkNode::StaticGetCommand(), &MqttCommand_TestNetworkNode::Create);
|
||||
this->Register(MqttCommand_TestNetwork::StaticGetCommand(), &MqttCommand_TestNetwork::Create);
|
||||
this->Register(MqttCommand_HealNetworkNode::StaticGetCommand(), &MqttCommand_HealNetworkNode::Create);
|
||||
this->Register(MqttCommand_HealNetwork::StaticGetCommand(), &MqttCommand_HealNetwork::Create);
|
||||
this->Register(MqttCommand_AddNode::StaticGetCommand(), &MqttCommand_AddNode::Create);
|
||||
this->Register(MqttCommand_AddNodeSecure::StaticGetCommand(), &MqttCommand_AddNodeSecure::Create);
|
||||
this->Register(MqttCommand_RemoveNode::StaticGetCommand(), &MqttCommand_RemoveNode::Create);
|
||||
this->Register(MqttCommand_RemoveFailedNode::StaticGetCommand(), &MqttCommand_RemoveFailedNode::Create);
|
||||
this->Register(MqttCommand_HasNodeFailed::StaticGetCommand(), &MqttCommand_HasNodeFailed::Create);
|
||||
this->Register(MqttCommand_RequestNodeNeighborUpdate::StaticGetCommand(), &MqttCommand_RequestNodeNeighborUpdate::Create);
|
||||
this->Register(MqttCommand_AssignReturnRoute::StaticGetCommand(), &MqttCommand_AssignReturnRoute::Create);
|
||||
this->Register(MqttCommand_DeleteAllReturnRoute::StaticGetCommand(), &MqttCommand_DeleteAllReturnRoute::Create);
|
||||
this->Register(MqttCommand_SendNodeInformation::StaticGetCommand(), &MqttCommand_SendNodeInformation::Create);
|
||||
this->Register(MqttCommand_ReplaceFailedNode::StaticGetCommand(), &MqttCommand_ReplaceFailedNode::Create);
|
||||
this->Register(MqttCommand_RequestNetworkUpdate::StaticGetCommand(), &MqttCommand_RequestNetworkUpdate::Create);
|
||||
this->Register(MqttCommand_IsNodeFailed::StaticGetCommand(), &MqttCommand_IsNodeFailed::Create);
|
||||
this->Register(MqttCommand_CheckLatestConfigFileRevision::StaticGetCommand(), &MqttCommand_CheckLatestConfigFileRevision::Create);
|
||||
this->Register(MqttCommand_CheckLatestMFSRevision::StaticGetCommand(), &MqttCommand_CheckLatestMFSRevision::Create);
|
||||
this->Register(MqttCommand_DownloadLatestConfigFileRevision::StaticGetCommand(), &MqttCommand_DownloadLatestConfigFileRevision::Create);
|
||||
this->Register(MqttCommand_DownloadLatestMFSRevision::StaticGetCommand(), &MqttCommand_DownloadLatestMFSRevision::Create);
|
||||
}
|
||||
|
||||
void MqttCommands::setupSubscriptions(QMqttClient *mqttclient, QString topTopic) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue