summaryrefslogtreecommitdiffstats
path: root/app/navigation_client.h
blob: e884f69031f4b24b74ff77e443012b7c3148d66b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef NAVIGATION_CLIENT_H
#define NAVIGATION_CLIENT_H

#include <navigation.h>
#include <QtQml/QQmlApplicationEngine>

class navigation_client : public QObject {
    Q_OBJECT

    Navigation *m_navigation;

public:
    navigation_client(Navigation *navigation, QObject *parent = nullptr);
    ~navigation_client();

signals:
    //notify add routepoints signal to qml
    void addRoutePointsQml(QVariant, QVariant, QVariant, QVariant);
    //notify current position signal to qml
    void positionQml(QVariant, QVariant,QVariant, QVariant);
    //notify stop demo signal to qml
    void stopdemoQml();
    //notify arrive destination signal to qml
    void arrivedestQml();

private slots:
    void onStatusEvent(QVariantMap data);
    void onPositionEvent(QVariantMap data);
};
#endif // NAVIGATION_CLIENT_H