blob: b8fb1c6723f13735dc1aa1e12352cd1276b93e62 (
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
32
33
|
#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);
void sendSignalStopDemo();
void sendSignalArrvied();
};
#endif // DBUS_SERVER_H
|