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 --- voice-capabilities/guimetadata.cpp | 9 +++++---- voice-capabilities/guimetadata.h | 8 +++++--- 2 files changed, 10 insertions(+), 7 deletions(-) (limited to 'voice-capabilities') diff --git a/voice-capabilities/guimetadata.cpp b/voice-capabilities/guimetadata.cpp index 2ab86c5..949cb58 100644 --- a/voice-capabilities/guimetadata.cpp +++ b/voice-capabilities/guimetadata.cpp @@ -14,12 +14,13 @@ * limitations under the License. */ +#include +#include + #include "message.h" +#include "guimetadatamessage.h" #include "messageengine.h" #include "guimetadata.h" -#include "guimetadatamessage.h" - -#include GuiMetadata::GuiMetadata(QUrl &url, QQmlContext *context, QObject * parent) : QObject(parent), @@ -329,7 +330,7 @@ void GuiMetadata::onDisconnected() void GuiMetadata::onMessageReceived(MessageType type, Message *message) { - if (type == GuiMetadataCapabilityEventMessage) { + if (type == MessageType::GuiMetadataCapabilityEventMessage) { GuiMetadataCapabilityMessage *tmsg = qobject_cast(message); if (tmsg->isEvent()) { if (tmsg->isGuiMetadataRenderTemplateEvent()) { diff --git a/voice-capabilities/guimetadata.h b/voice-capabilities/guimetadata.h index c4a551f..ae90cba 100644 --- a/voice-capabilities/guimetadata.h +++ b/voice-capabilities/guimetadata.h @@ -17,11 +17,13 @@ #ifndef GUIMETADATA_H #define GUIMETADATA_H -#include #include - #include -#include "messageengine.h" + +class MessageEngine; +class Message; + +enum class MessageType; class GuiMetadata : public QObject { -- cgit 1.2.3-korg