summaryrefslogtreecommitdiffstats
path: root/hvac/hvac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hvac/hvac.cpp')
-rw-r--r--hvac/hvac.cpp8
1 files changed, 5 insertions, 3 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()) {