summaryrefslogtreecommitdiffstats
path: root/app/file_operation.h
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-09-22 20:38:07 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-09-23 20:57:30 -0700
commitb4364919e5a74325812f2f527adbfe62a165109e (patch)
tree2c3f1c5d14aec6318a3b009479ef8e37e6b46603 /app/file_operation.h
parent0cd23d5caf31753164b2bca64290e2b636a1999f (diff)
qml: allow map plugins to be set on runtime
Allow selection of OSM over MapBox with enableOSM configuration file option. Bug-AGL: SPEC-2667 Change-Id: Ie055ca1263b0a6f2a74046e5ff85535e48e60d31 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/file_operation.h')
-rw-r--r--app/file_operation.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/file_operation.h b/app/file_operation.h
index 411cc25..962c506 100644
--- a/app/file_operation.h
+++ b/app/file_operation.h
@@ -22,6 +22,7 @@ class File_Operation: public QObject{
int m_update_interval; // set millisecond
double m_start_latitude;
double m_start_longitute;
+ bool m_enable_osm;
QString m_mapStyleUrls;
public:
@@ -34,6 +35,7 @@ public:
Q_INVOKABLE double getStartLatitude();
Q_INVOKABLE double getStartLongitute();
Q_INVOKABLE QString getMapStyleUrls();
+ Q_INVOKABLE bool isOSMEnabled() { return m_enable_osm; };
private:
void initFileOperation();