summaryrefslogtreecommitdiffstats
path: root/hvac
diff options
context:
space:
mode:
Diffstat (limited to 'hvac')
-rw-r--r--hvac/hvac.cpp8
-rw-r--r--hvac/hvac.h6
2 files changed, 9 insertions, 5 deletions
diff --git a/hvac/hvac.cpp b/hvac/hvac.cpp
index 507cfeb..f9e509b 100644
--- a/hvac/hvac.cpp
+++ b/hvac/hvac.cpp
@@ -14,15 +14,17 @@
* limitations under the License.
*/
+#include <QDebug>
#include <QMetaEnum>
#include <QMimeDatabase>
#include <QtQml/QQmlEngine>
#include "message.h"
-#include "messageengine.h"
-#include "hvac.h"
#include "hvacmessage.h"
#include "responsemessage.h"
+#include "messageengine.h"
+#include "hvac.h"
+
// TODO: don't duplicate defaults from HVAC service here
HVAC::HVAC (QUrl &url, QObject * parent) :
@@ -75,7 +77,7 @@ void HVAC::set_temp_right_zone(int temp)
void HVAC::onMessageReceived(MessageType type, Message *msg)
{
- if (msg->isEvent() && type == HVACEventMessage) {
+ if (msg->isEvent() && type == MessageType::HVACEventMessage) {
HVACMessage *tmsg = qobject_cast<HVACMessage*>(msg);
if (tmsg->isLanguageEvent()) {
diff --git a/hvac/hvac.h b/hvac/hvac.h
index 8a4ca3a..47a9e08 100644
--- a/hvac/hvac.h
+++ b/hvac/hvac.h
@@ -17,13 +17,15 @@
#ifndef HVAC_H
#define HVAC_H
-#include <QDebug>
#include <QObject>
#include <QJsonArray>
#include <QtQml/QQmlContext>
#include <QtQml/QQmlListProperty>
-#include "messageengine.h"
+class MessageEngine;
+class Message;
+
+enum class MessageType;
class HVAC : public QObject
{