summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qgeocodingmanagerengine.cpp
diff options
context:
space:
mode:
authorAlex Wilson <alex.wilson@nokia.com>2012-02-28 13:05:02 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-05 04:22:24 +0100
commit0287bfee05840511c12100f06f9142e3e2b8f7d5 (patch)
treef5386e27a4b012877d37ab0b99dfc1d5a08705c5 /src/location/maps/qgeocodingmanagerengine.cpp
parentc1d56bdae90f79d466769aa7a357d78a4f2ca6c7 (diff)
New plugin API changes, centralized geoservice feature detection
This change adapts geoservice plugins to use the new Qt5 plugin API, performing boolean feature detection all through the JSON blobs rather than methods on factories or managers. As a result of this centralisation, it was also necessary to rework the QML API for the Plugin element a little. Some additional changes were made to the declarative places plugin to prevent it crashing due to plugins becoming available later than they did previously. Task-number: QTBUG-24331 Change-Id: I26149987344b67091480449103ab1712c869b2a5 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/location/maps/qgeocodingmanagerengine.cpp')
-rw-r--r--src/location/maps/qgeocodingmanagerengine.cpp45
1 files changed, 2 insertions, 43 deletions
diff --git a/src/location/maps/qgeocodingmanagerengine.cpp b/src/location/maps/qgeocodingmanagerengine.cpp
index 5d9412e2..b4478e29 100644
--- a/src/location/maps/qgeocodingmanagerengine.cpp
+++ b/src/location/maps/qgeocodingmanagerengine.cpp
@@ -272,46 +272,6 @@ QGeocodeReply* QGeocodingManagerEngine::geocode(const QString &address,
}
/*!
- Sets whether geocoding is supported by this engine to \a supported.
-
- It is important that subclasses use this method to ensure that the engine
- reports its capabilities correctly. If this function is not used the
- engine will report that it does not support geocoding.
-*/
-void QGeocodingManagerEngine::setSupportsGeocoding(bool supported)
-{
- d_ptr->supportsGeocoding = supported;
-}
-
-/*!
- Returns whether this engine supports geocoding.
-*/
-bool QGeocodingManagerEngine::supportsGeocoding() const
-{
- return d_ptr->supportsGeocoding;
-}
-
-/*!
- Sets whether reverse geocoding is supported by this engine to \a supported.
-
- It is important that subclasses use this method to ensure that the engine
- reports its capabilities correctly. If this function is not used the
- engine will report that it does not support reverse geocoding.
-*/
-void QGeocodingManagerEngine::setSupportsReverseGeocoding(bool supported)
-{
- d_ptr->supportsReverseGeocoding = supported;
-}
-
-/*!
- Returns whether this engine supports reverse geocoding.
-*/
-bool QGeocodingManagerEngine::supportsReverseGeocoding() const
-{
- return d_ptr->supportsReverseGeocoding;
-}
-
-/*!
Sets the locale to be used by this manager to \a locale.
If this geocoding manager supports returning the results
@@ -367,9 +327,8 @@ QLocale QGeocodingManagerEngine::locale() const
*******************************************************************************/
QGeocodingManagerEnginePrivate::QGeocodingManagerEnginePrivate()
- : managerVersion(-1),
- supportsGeocoding(false),
- supportsReverseGeocoding(false) {}
+ : managerVersion(-1)
+{}
QGeocodingManagerEnginePrivate::~QGeocodingManagerEnginePrivate()
{