Add a bunch of Manager Methods for MQTT Commands

This commit is contained in:
Justin Hammond 2019-11-03 19:02:51 +08:00
parent ea376a48cd
commit 6a088c931b
67 changed files with 1272 additions and 13 deletions

View file

@ -17,7 +17,6 @@ class mqttpublisher;
class MqttCommand : public QObject {
Q_OBJECT
public:
MqttCommand(QObject *parent = nullptr);
void Setup(QMqttSubscription *);
void messageReceived(QMqttMessage msg);
virtual bool processMessage(QJsonDocument) = 0;
@ -25,6 +24,7 @@ public:
signals:
void sendCommandUpdate(QString, QJsonObject);
protected:
MqttCommand(QObject *parent = nullptr);
QTOZWManager *getOZWManager();
mqttpublisher *getMqttPublisher();
QVector<QString> m_requiredFields;