From 5c750385d02116a92fa4c120ccc26abb8267bc97 Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Wed, 4 Mar 2020 19:32:03 +0100 Subject: eliminate unneeded dependencies on public headers - Remove unneeded dependencies from libqtappfw public headers, specifically MessageEngine and Message hierarchy header files, in preparation for refactoring work on these areas. This change helps shield client apps from the upcoming changes in the library, and highlight the separation between the library's core and the various modules providing public interfaces to those apps. - Make MessageType an scoped enum to fwd declare it. - Update Copyright statement on files updated by this patch. Bug-AGL: SPEC-3112 Signed-off-by: Raquel Medina Change-Id: I12fd9cdc034aa1166f6448c07befadd9d2042b05 --- hvac/hvac.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hvac/hvac.cpp') 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 #include #include #include #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(msg); if (tmsg->isLanguageEvent()) { -- cgit 1.2.3-korg