summaryrefslogtreecommitdiffstats
path: root/MainApp.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-11-11 00:48:02 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-11-11 00:48:02 -0800
commit15a79164e5bb3dd51185371a17d9ae8b48b40a85 (patch)
tree480c168c333917dd2688971601670cd1831f4661 /MainApp.h
parent147fc413436c62abbf8f5f054ca49b3d390eefa2 (diff)
Switch from DBus interface to rewritten agl-service-nagivation binding via the libqtappfw wrapper interface. Bug-AGL: SPEC-2880 Change-Id: I4244de4db250af438dda6b6173940f6a49fe34f2 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'MainApp.h')
-rw-r--r--MainApp.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/MainApp.h b/MainApp.h
index 66defee..7d0b9de 100644
--- a/MainApp.h
+++ b/MainApp.h
@@ -12,16 +12,15 @@
#include "InfoPanel.h"
#include "Keyboard.h"
-#include <libnavicore.hpp>
+#include <navigation.h>
-class MainApp: public QMainWindow, public naviapi::NavicoreListener
+class MainApp: public QMainWindow
{
Q_OBJECT
public:
- explicit MainApp();
+ explicit MainApp(Navigation *navigation);
~MainApp();
- bool CheckNaviApi(int argc, char *argv[]);
int AuthenticatePOI(const QString & CredentialsFile);
int StartMonitoringUserInput();
void setInfoScreen(bool val) { isInfoScreen = val; }
@@ -39,7 +38,7 @@ class MainApp: public QMainWindow, public naviapi::NavicoreListener
int FillResultList(std::vector<Business> & list, int focusIndex = 0);
void SetWayPoints(uint32_t myRoute);
- naviapi::Navicore naviapi;
+ Navigation *naviapi;
QNetworkAccessManager networkManager;
QPushButton searchBtn;
QLineEdit lineEdit;
@@ -68,7 +67,7 @@ class MainApp: public QMainWindow, public naviapi::NavicoreListener
public:
void getAllSessions_reply(const std::map< uint32_t, std::string >& allSessions);
- void getPosition_reply(std::map< int32_t, naviapi::variant > position);
+ //void getPosition_reply(std::map< int32_t, naviapi::variant > position);
void getAllRoutes_reply(std::vector< uint32_t > allRoutes);
void createRoute_reply(uint32_t routeHandle);
@@ -84,8 +83,6 @@ class MainApp: public QMainWindow, public naviapi::NavicoreListener
void cancelClicked();
void positionGot();
- void allRoutesGot();
- void routeCreated();
signals:
void allSessionsGotSignal();