summaryrefslogtreecommitdiffstats
path: root/navigation
diff options
context:
space:
mode:
Diffstat (limited to 'navigation')
-rw-r--r--navigation/navigation.cpp11
-rw-r--r--navigation/navigation.h10
2 files changed, 12 insertions, 9 deletions
diff --git a/navigation/navigation.cpp b/navigation/navigation.cpp
index 8210310..ce6b91d 100644
--- a/navigation/navigation.cpp
+++ b/navigation/navigation.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 Konsulko Group
+ * Copyright (C) 2019, 2020 Konsulko Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,11 +14,14 @@
* limitations under the License.
*/
+#include <QDebug>
+
#include "message.h"
-#include "messageengine.h"
-#include "navigation.h"
#include "navigationmessage.h"
#include "responsemessage.h"
+#include "messageengine.h"
+#include "navigation.h"
+
Navigation::Navigation (QUrl &url, QObject * parent) :
QObject(parent),
@@ -123,7 +126,7 @@ void Navigation::onDisconnected()
void Navigation::onMessageReceived(MessageType type, Message *msg)
{
- if (type == NavigationEventMessage) {
+ if (type == MessageType::NavigationEventMessage) {
NavigationMessage *tmsg = qobject_cast<NavigationMessage*>(msg);
if (tmsg->isPositionEvent()) {
diff --git a/navigation/navigation.h b/navigation/navigation.h
index 7262107..c407d0f 100644
--- a/navigation/navigation.h
+++ b/navigation/navigation.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 Konsulko Group
+ * Copyright (C) 2019, 2020 Konsulko Group
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,14 +17,14 @@
#ifndef NAVIGATION_H
#define NAVIGATION_H
-#include <QDebug>
#include <QObject>
#include <QJsonArray>
#include <QtQml/QQmlListProperty>
-#include "messageengine.h"
-#include "navigationmessage.h"
-#include "responsemessage.h"
+class MessageEngine;
+class Message;
+
+enum class MessageType;
class Navigation : public QObject
{