Don't start Geoclue satellite providers until necessary.

This builds on 2509cc2f13b15de099c3d68769e9bce869400ef7. It implements
similar changes to the Geoclue satellite info source.

Change-Id: I657f110e049c84b35f534a3bfffd14d57ee9c37a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Bump MODULE_VERSION to 5.2.1

Change-Id: I73b42c27dfb256818f650d090586fe8bc7db6a2c
Reviewed-by: Matti Paaso <matti.paaso@digia.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix cut of string when weather string is longer

Task-number: QTBUG-34910
Change-Id: I90a1748496b55b2e69db5c94fa217f79d43c176f
Reviewed-by: Jim Ehrismann <jehrismann@blackberry.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix make install rules for all examples in QtPositioning

This was highlighted during the testing of the Qt 5.2.0 package.

Change-Id: Iab1e6f5f1e1a8ceb62fc44658ec12fb131ccad65
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix include warning related to qtpositioningglobal.h

This was already fixed in stable but for some reason was not carried over to
dev during the merges.

Change-Id: I2e7c8fe6d11e58c4070ebb03d0f8928e7c47b7cf
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Erik Mattsson <erik.mattsson@appello.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Conflicts:
	.qmake.conf

Change-Id: I3c90652f618afcf6a5f26232558843b8e26d8164
Fix and cleanup of make install related rules in QtLocation examples

Change-Id: I9ef400e22d46e60d50eed785a71e656a0f93fa26
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Don't rely on qt_example_installs for complete make install rules

simplelog.txt was not deployed when running make install from outside
Qt source tree.

Change-Id: I420a85fc5f74fb1bfc1b3f63e1f88cf0b0e2a0f9
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Set default preferred positioning methods for Geoclue position source.

Set the default positioning methods used by the Geoclue positioning
source to all positioning methods.

Change-Id: I62196cc0203642838104cb5a0dafa06b1df29190
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix incorrect accuracy values reported by Geoclue plugin.

Initialize variables to valid (unknown) values as they will not be
assigned to if accuracy data is not available with the current position
update from Geoclue.

Change-Id: Icdca528da86df9a2a95acf1cc6704a9c39485fe2
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix compilation with Clang on MacOS.

Clang does not like methods to be declared static inline,
and then have their definition somewhere else. The error message was:

./qdoublevector2d_p.h:186:49: error: conflicting types for 'dotProduct'
Q_DECL_CONSTEXPR inline double QDoubleVector2D::dotProduct(const QDoubleVector2D &v1, const QDoubleVector2D &v2)
                                                ^
./qdoublevector2d_p.h:101:43: note: previous declaration is here
    Q_DECL_CONSTEXPR static inline double dotProduct(const QDoubleVector2D &v1, const QDoubleVector2D &v2);
                                          ^
In file included from qgeocircle.cpp:49:
./qdoublevector3d_p.h:234:49: error: conflicting types for 'dotProduct'
Q_DECL_CONSTEXPR inline double QDoubleVector3D::dotProduct(const QDoubleVector3D &v1, const QDoubleVector3D &v2)
^
./qdoublevector3d_p.h:104:43: note: previous declaration is here
    Q_DECL_CONSTEXPR static inline double dotProduct(const QDoubleVector3D &v1, const QDoubleVector3D &v2);
                                              ^
./qdoublevector3d_p.h:239:58: error: conflicting types for 'crossProduct'
Q_DECL_CONSTEXPR inline QDoubleVector3D QDoubleVector3D::crossProduct(const QDoubleVector3D &v1, const QDoubleVector3D &v2)
         ^
./qdoublevector3d_p.h:105:52: note: previous declaration is here
    Q_DECL_CONSTEXPR static inline QDoubleVector3D crossProduct(const QDoubleVector3D &v1, const QDoubleVector3D &v2);

Change-Id: Ica9305f628c393e3d37e19097ad7343c03e68ef7
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add missing translation strings for OSRM TBT instructions.

Open Source Routing Machine may return street names in more cases
than were previously covered. Also added missing roundabout cases
and corrected the spelling of 'roundabout'.

Change-Id: I01e5098ddcddcb92e04cd1d230e92c8fa7998f23
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix a dangling pointer use

toLocal8Bit returns a temporary, so we must not keep a pointer to the data
inside it

Change-Id: I8fa4138c15acce0005e304b5206585fcd1a5e56b
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I337131891ab2ae97be5be999dcab423571c5b30b
Don't require applications to declare metatypes.

These metatypes need to be declared for common usage of the positioning
API. Declare them in the library header files so that applications are
not forced to do so.

[ChangeLog][QtPositioning][General] Applications no longer need to
register common Qt Positioning data types with the metatype system.

Change-Id: I1d28ec8e33d20efc748cb6a0a2ad302e2061853f
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Revert "Don't require applications to declare metatypes."

This reverts commit 5679a86968a6a26f8427b9c979f89f6ea5198d2f

Change was source incompatible.

Change-Id: Ied25ca3503a41e498a5c9b710e7a0dd3787bbe89
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Remove QtQml dependency from QtPositioning.

The QtQml dependency was only required for the QML_DECLARE_TYPE macro.
Since Qt 5.0 use of this macro is not required.

Add missing includes which were being pulled in via QtQml.

Task-number: QTBUG-33220
Change-Id: Ief6ab94e25b4bc5cb753672908b09f7e772df1c8
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Support position accuracy in QNmeaPositionInfoSource.

Extract the HDOP and VDOP from the NMEA stream and calculate the twice
the distance root mean square (2DRMS) error based on the user provided
User equivalent range error value.

[ChangeLog][QtPositioning][QNmeaPositionInfoSource] Added support for
reporting position accuracy.

Change-Id: I59e5f8c32070fa96ae4d0bd02a18f38663920e05
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add CoreLocation positioning plugin for QtLocation

Implements a QGeoPositionInfoSource plugin using CoreLocation.

Implemented by Ian Dean.

[ChangeLog][QtPositioning][QGeoPositionInfoSource] iOS position backend
added.

Change-Id: I09df434f95e5d72b1f6cf6381412334ae45d3d54
Reviewed-by: Ian Dean <ian@mediator-software.com>
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ia9f4503d68120e1654552745ae3076a3353b5eff