diff options
author | 2019-10-17 05:59:10 -0700 | |
---|---|---|
committer | 2019-11-21 16:07:19 -0800 | |
commit | 5abd22477959ba060bd8c383068482aa8e53a7da (patch) | |
tree | 32935be361235efcd2ad5823096d55937cae2798 /app/main.cpp | |
parent | fe954c9dd641e45e429b423714c22ef1da5beb16 (diff) |
ondemandnavi: remove DESKTOP define
With switchover over to afb agl-service-navigation it will be
unlikely to run on a desktop system.
Bug-AGL: SPEC-2880
Change-Id: I56819383a9fc2e18323cbd33044dfa4d544f1ab5
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/main.cpp')
-rwxr-xr-x | app/main.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/app/main.cpp b/app/main.cpp index 0c10209..aa7768b 100755 --- a/app/main.cpp +++ b/app/main.cpp @@ -15,21 +15,9 @@ * limitations under the License. */ -#ifdef DESKTOP -#define USE_QTAGLEXTRAS 0 -#define USE_QLIBWINDOWMANAGER 0 -#else -#define USE_QTAGLEXTRAS 0 -#define USE_QLIBWINDOWMANAGER 1 -#endif - -#if USE_QTAGLEXTRAS -#include <QtAGLExtras/AGLApplication> -#elif USE_QLIBWINDOWMANAGER #include <qlibwindowmanager.h> #include <qlibhomescreen.h> #include <string> -#endif #include <QtCore/QDebug> #include <QtCore/QCommandLineParser> #include <QtCore/QUrlQuery> @@ -56,13 +44,6 @@ int main(int argc, char *argv[]) return 1; } -#if USE_QTAGLEXTRAS - AGLApplication app(argc, argv); - app.setApplicationName("navigation"); - app.setupApplicationRole("navigation"); - app.load(QUrl(QStringLiteral("qrc:/navigation.qml"))); - -#elif USE_QLIBWINDOWMANAGER QGuiApplication app(argc, argv); QString graphic_role = QString("navigation"); int port = 1700; @@ -131,29 +112,6 @@ int main(int argc, char *argv[]) DBus_Server dbus(map); dbus_server_navigationcore dbus_navigationcore(map); -#else // for only libwindowmanager - QGuiApplication app(argc, argv); - app.setApplicationName("navigation"); - - // Load qml - QQmlApplicationEngine engine; - - MarkerModel model; - engine.rootContext()->setContextProperty("markerModel", &model); - - Guidance_Module guidance; - engine.rootContext()->setContextProperty("guidanceModule", &guidance); - - File_Operation file; - engine.rootContext()->setContextProperty("fileOperation", &file); - - engine.load(QUrl(QStringLiteral("qrc:/navigation.qml"))); - QObject *map = engine.rootObjects().first()->findChild<QObject*>("map"); - DBus_Server dbus(map); - dbus_server_navigationcore dbus_navigationcore(map); - -#endif - return app.exec(); } |