summaryrefslogtreecommitdiffstats
path: root/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h')
-rw-r--r--src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h b/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h
index c1ad4987..2add07dd 100644
--- a/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h
+++ b/src/location/declarativemaps/qdeclarativegeoserviceprovider_p.h
@@ -160,6 +160,13 @@ public:
AnyPlacesFeatures = QGeoServiceProvider::AnyPlacesFeatures
};
+ enum NavigationFeature {
+ NoNavigationFeatures = QGeoServiceProvider::NoNavigationFeatures,
+ OnlineNavigationFeature = QGeoServiceProvider::OnlineNavigationFeature,
+ OfflineNavigationFeature = QGeoServiceProvider::OfflineNavigationFeature,
+ AnyNavigationFeatures = QGeoServiceProvider::AnyNavigationFeatures
+ };
+
Q_DECLARE_FLAGS(RoutingFeatures, RoutingFeature)
Q_FLAGS(RoutingFeatures)
@@ -172,6 +179,9 @@ public:
Q_DECLARE_FLAGS(PlacesFeatures, PlacesFeature)
Q_FLAGS(PlacesFeatures)
+ Q_DECLARE_FLAGS(NavigationFeatures, NavigationFeature)
+ Q_FLAGS(NavigationFeatures)
+
// From QQmlParserStatus
virtual void classBegin() {}
virtual void componentComplete();
@@ -196,6 +206,7 @@ public:
Q_INVOKABLE bool supportsGeocoding(const GeocodingFeatures &feature = AnyGeocodingFeatures) const;
Q_INVOKABLE bool supportsMapping(const MappingFeatures &feature = AnyMappingFeatures) const;
Q_INVOKABLE bool supportsPlaces(const PlacesFeatures &feature = AnyPlacesFeatures) const;
+ Q_INVOKABLE bool supportsNavigation(const NavigationFeature &feature = AnyNavigationFeatures) const;
QStringList locales() const;
void setLocales(const QStringList &locales);