Emit the last known position when Geoclue positioning is started.

The QML position source already essentially does this as its position
property is set to the last known position on construction.

Change-Id: I3e41886348a218751ab0872e8d78ac92cb72dc0b
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Fix requesting single updates from Geoclue plugin.

Geoclue providers are expected to return a position update straight
away, otherwise the geoclue-master blocks when positioning is started.
This means that a position update with no longitude and latitude values
is not an error.

Change the Geoclue plugin to ignore these position updates, instead
waiting for the specified timeout before aborting.

Change-Id: I80b3c4cfdc31da78660f7435fdfac03963688c5a
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Don't require a position fix before reporting Geoclue satellite info.

The Geoclue plugin uses the Geoclue master provider to select the most
appropriate position provider. However, it doesn't select a provider
unless it is in the available state. For satellite information a
position fix is not required.

If the Geoclue master provider doesn't return a valid provider the
plugin will now listen for all SatelliteChanged signals from any
org.freedesktop.Geoclue.Satellite interface. This means that if
multiple satellite based providers are active at the same time
QGeoSatelliteInfoSource will include satellite information from
both providers.

Change-Id: I257b56dc03fed51a5c4ba0023862708b9618be05
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Merge branch 'release' into stable

Change-Id: If8a4fe6d4566ffe072c3be25f2cd5ef7a5b06d95
Merge "Merge branch 'release' into stable" into refs/staging/stable
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 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 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>
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>
Fix declarative_core unit test

There are still some bugs caused by V4 but more dedicated bugs but it is
more important to get the current unit test running . We rather skip the
problematic cases.

A lot of warnings have been fixed as well.

Task-number: QTBUG-31798
Change-Id: I1fccf26db5c47563baeaf6c2d6366d3c10aee824
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Stop skipping declarative_core tests.

These test cases were failing due to regressions in QML and have since
been fixed. See QTBUG-33542, QTBUG-33546 and QTBUG-33561.

Change-Id: Id86e9a8baa29eea851bda27cb668a6ce586c5f25
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Add 5.2.1 change log

Change-Id: I83dce160ed57ec7a567c815a98cf17fc160a3b2d
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>