aboutsummaryrefslogtreecommitdiffstats
path: root/app/dbus_server.h
blob: 5fe75623fcf52efc98ba399086d90f4ffa59b4c4 (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
31
#ifndef DBUS_SERVER_H
#define DBUS_SERVER_H
#include "org.agl.naviapi_interface.h"
#include "org.agl.naviapi_adaptor.h"
#include <QtQml/QQmlApplicationEngine>

class DBus_Server : public QObject{

    Q_OBJECT

    QString m_serverName;
    QString m_pathName;
    QString m_objName;

public:
    DBus_Server(QObject *parent = nullptr);
    ~DBus_Server();

private:
    void initDBus();
    void initAPIs(QObject*);

signals:
    void doGetRouteInfo();

public slots:
    void getRouteInfoSlot();
    void sendSignalRouteInfo(double srt_lat,double srt_lon,double end_lat,double end_lon);
    void sendSignalPosInfo(double lat,double lon,double drc,double dst);
};
#endif // DBUS_SERVER_H