summaryrefslogtreecommitdiffstats
path: root/voice-capabilities
diff options
context:
space:
mode:
Diffstat (limited to 'voice-capabilities')
-rw-r--r--voice-capabilities/guimetadata.cpp9
-rw-r--r--voice-capabilities/guimetadata.h8
2 files changed, 10 insertions, 7 deletions
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 <QDebug>
+#include <QJsonArray>
+
#include "message.h"
+#include "guimetadatamessage.h"
#include "messageengine.h"
#include "guimetadata.h"
-#include "guimetadatamessage.h"
-
-#include <QJsonArray>
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<GuiMetadataCapabilityMessage*>(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 <QDebug>
#include <QObject>
-
#include <QtQml/QQmlContext>
-#include "messageengine.h"
+
+class MessageEngine;
+class Message;
+
+enum class MessageType;
class GuiMetadata : public QObject
{