diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-10-20 11:30:15 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2019-10-20 15:27:51 -0400 |
commit | ad1ba5b56c4e14a615a566d142290977a9be0805 (patch) | |
tree | de3970303047dcca8a6bb1f3f4a6460f2c351c67 /app/dbus_client.cpp | |
parent | cad9270984244bddf59f796dfb4d7ccef2f9674f (diff) |
Fixes and rework to allow using with cluster demohalibut_8.0.3halibut/8.0.38.0.3
Changes include:
- Remove older libhomescreen and qlibwindowmanager detection and
configuration from qmake configuration in favor of PKGCONFIG
usage.
- Rework main.cpp to look more like ondemandnavi, and use
qlibhomescreen instead of libhomescreen.
- Update file_operation.{h,cpp} with the newer versions from
ondemandnavi that include OSM configuration.
- Fixed typo in arrived signal name in org.agl.naviapi.xml and
dbus_client.cpp.
- Change some qDebug messages in dbus_client.cpp to qWarning as it
seems more appropriate.
- Rework QtLocation plugin configuration in MapWindow.qml to
support OSM and replace mapboxgl with mapbox, as mapboxgl does not
seem to work out of the box.
- Tweak various things in MapWindow.qml to try to better match the
look of ondemandnavi.
- Many commenting and whitespace fixes in MapWindow.qml.
- Update widget config.xml to add now required display permission,
and add the hidden permission so the application will not show up
in the launcher.
- Add license files for the various header files in include/mapbox,
and update README.md to indicate where they come from and what
files the different licenses apply to.
Bug-AGL: SPEC-2913
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: Ia42a4303f772bf9c2235c720c92af3faa2936485
Diffstat (limited to 'app/dbus_client.cpp')
-rw-r--r-- | app/dbus_client.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/app/dbus_client.cpp b/app/dbus_client.cpp index 6b5b5fb..62dde46 100644 --- a/app/dbus_client.cpp +++ b/app/dbus_client.cpp @@ -8,7 +8,7 @@ dbus_client::dbus_client(const QString &pathName, m_pathName(pathName + serverName), m_objName(objName + serverName) { - //DBus & api ini + // DBus & api init initDBus(); initAPIs(parent); } @@ -19,7 +19,7 @@ void dbus_client::initDBus(){ new NaviapiAdaptor(this); - //make a connect session to navigation service(add route info) + // connect session to navigation service(add route info) if (!QDBusConnection::sessionBus().connect( QString(), QString(), @@ -27,10 +27,10 @@ void dbus_client::initDBus(){ "signalRouteInfo", this, SLOT(addRoutePointsSlot(double, double, double, double)))) { //slot - qDebug() << m_serverName << "sessionBus.connect(): signalRouteInfo failed"; + qWarning() << m_serverName << "sessionBus.connect(): signalRouteInfo failed"; } - //make a connect session to navigation service(current postion info) + // connect session to navigation service(current postion info) if (!QDBusConnection::sessionBus().connect( QString(), QString(), @@ -38,10 +38,10 @@ void dbus_client::initDBus(){ "signalPosInfo", this, SLOT(positionSlot(double, double, double, double)))) { //slot - qDebug() << m_serverName << "sessionBus.connect(): signalPosInfo failed"; + qWarning() << m_serverName << "sessionBus.connect(): signalPosInfo failed"; } - //make a connect session to navigation service(when demo stopped) + // connect session to navigation service(when demo stopped) if (!QDBusConnection::sessionBus().connect( QString(), QString(), @@ -49,67 +49,67 @@ void dbus_client::initDBus(){ "signalStopDemo", this, SLOT(stopdemoSlot()))) { //slot - qDebug() << m_serverName << "sessionBus.connect(): signalStopDemo failed"; + qWarning() << m_serverName << "sessionBus.connect(): signalStopDemo failed"; } - //make a connect session to navigation service(when arrived destination) + // connect session to navigation service(when arrived destination) if (!QDBusConnection::sessionBus().connect( QString(), QString(), m_pathName, - "signalArrvied", + "signalArrived", this, SLOT(arrivedestSlot()))) { //slot - qDebug() << m_serverName << "sessionBus.connect(): signalArrvied failed"; + qWarning() << m_serverName << "sessionBus.connect(): signalArrived failed"; } } void dbus_client::initAPIs(QObject *parent){ - //connect the signal to qml inside function(addRoutePointsQml -> do_addRoutePoint) + // connect the signal to qml inside function(addRoutePointsQml -> do_addRoutePoint) if(!QObject::connect(this, SIGNAL(addRoutePointsQml(QVariant, QVariant, QVariant, QVariant)), parent, SLOT(do_addRoutePoint(QVariant, QVariant, QVariant, QVariant)))) { - qDebug() << m_serverName << "SIGNAL:addRoutePointsQml to qmlSLOT:do_addRoutePoint connect is failed"; + qWarning() << m_serverName << "SIGNAL:addRoutePointsQml to qmlSLOT:do_addRoutePoint connect failed"; } - //connect the signal to qml inside function(positionQml -> do_setCoordinate) + // connect the signal to qml inside function(positionQml -> do_setCoordinate) if(!QObject::connect(this, SIGNAL(positionQml(QVariant, QVariant,QVariant, QVariant)), parent, SLOT(do_setCoordinate(QVariant, QVariant,QVariant, QVariant)))) { - qDebug() << m_serverName << "SIGNAL:positionQml to qmlSLOT:do_setCoordinate connect is failed"; + qWarning() << m_serverName << "SIGNAL:positionQml to qmlSLOT:do_setCoordinate connect failed"; } - //connect the signal to qml inside function(stopdemoQml -> do_stopnavidemo) + // connect the signal to qml inside function(stopdemoQml -> do_stopnavidemo) if(!QObject::connect(this, SIGNAL(stopdemoQml()), parent, SLOT(do_stopnavidemo()))) { - qDebug() << m_serverName << "SIGNAL:stopdemoQml to qmlSLOT:do_stopnavidemo connect is failed"; + qWarning() << m_serverName << "SIGNAL:stopdemoQml to qmlSLOT:do_stopnavidemo connect failed"; } - //connect the signal to qml inside function(arrivedestQml -> do_arrivedest) + // connect the signal to qml inside function(arrivedestQml -> do_arrivedest) if(!QObject::connect(this, SIGNAL(arrivedestQml()), parent, SLOT(do_arrivedest()))) { - qDebug() << m_serverName << "SIGNAL:arrivedestQml to qmlSLOT:do_arrivedest connect is failed"; + qWarning() << m_serverName << "SIGNAL:arrivedestQml to qmlSLOT:do_arrivedest connect failed"; } } -//Signal&&Method -//addRoutePointsSlot -> addRoutePointsQml(use for qml) +// Signal&&Method +// addRoutePointsSlot -> addRoutePointsQml(use for qml) void dbus_client::addRoutePointsSlot(double route_Lat_s, double route_Lon_s, double route_Lat_e, double route_Lon_e) { emit addRoutePointsQml(route_Lat_s, route_Lon_s, route_Lat_e, route_Lon_e); } -//positionSlot -> positionQml(use for qml) +// positionSlot -> positionQml(use for qml) void dbus_client::positionSlot(double cur_Lat_p, double cur_Lon_p,double cur_direction, double cur_distance) { emit positionQml(cur_Lat_p, cur_Lon_p,cur_direction,cur_distance); } -//stopdemoSlot -> stopdemoQml(use for qml) +// stopdemoSlot -> stopdemoQml(use for qml) void dbus_client::stopdemoSlot() { emit stopdemoQml(); } -//arrivedestSlot -> arrivedestQml(use for qml) +// arrivedestSlot -> arrivedestQml(use for qml) void dbus_client::arrivedestSlot() { emit arrivedestQml(); |