iOS: implement gyroscope for iOS

Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
iOS: bugfix accelerometer timestamp

Convert from NSTimeInterval to microseconds

Change-Id: I51fb3791aa72dcc7514c39820e4347a3c1d4039a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
iOS: set data rate on accelerometer before starting it

Respect user data rate settings by applying the rate just
before the sensor starts

Change-Id: I3da37497c574cbf94d57699c941ce2bf3b54373c
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
iOS: remove unnecessary test for accelerometer available

The accelerometer is always available, so no need to check for
this.

Change-Id: I79411ff023c4350c5b31d4fad048484db2b2fe43
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
iOS: refactor and simplify IOSAccelerometer code

The code as it stood made use of an extra obj-c class
to listen for sensor readings. This is not needed with
the block (lambda) API used by CMMotionManager.
This will also make IOSGyroscope and (soon) IOSMagnetometer
follow the same code pattern.

Change-Id: If945f8616f4cdde98b31382fcd9c555c2b490c4a
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
iOS: add QPointer guard to accelerometer and gyro

Since we process data from the sensors using a callback
queued to the application operation queue, we need to check
that the qt sensor is still alive before accessing it.

Change-Id: I697d72f94aedec34b125006d6405428e282bfc0d
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
iOS: remove unneeded void pointer casting in private headers

The headers in use for the sensor backend are private, and should
never be directly included in any .cpp files. As such, we don't
need to be careful using obj-c features in the header files.

Change-Id: If16a84c88a7e7afc45afe00e668e4582337e4907
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Id09708fc6096716d25f541ba55de2ada6f2d385d
Update module version to 5.2.0

Change-Id: I703e703fd1c8b76c101eb9f69d5aa81423e12044
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
BlackBerry: Removed comment in pressure sensor backend

Verified pressure sensor and removed corresponding TODO comment.

Change-Id: I1ed08373f874db33e64c80fd784d5e1c95dd1f8e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I14f923883afe9f43282e449725f509e0688e597e
Added temperature property to pressure sensor

Many air pressure sensors provide their temperature, as well. This can
be used for temperature compensation for instance.
The pressure sensor API has been extended and a BlackBerry backend has
been implemented.

Change-Id: I188e1276dff74601d757d0a356b28b4fea4594bd
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Fixed manual sensor test

Widgets module was missing in project file

Change-Id: I4b5ba34a35e6097231b134b967b03689ca71fa0d
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
iOS: implement magnetometer

Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: Ia02497aafc94feba0381ffe8733cbc89f29fb412
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I4cfd0e2a2f108f5ecf79c56418c02928b041856e
add a way to collect sensor dump in the format the autotests can use.

Change-Id: Iec9be6e858aabd579ea61e48fd5b9d884c980fc3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Merge remote-tracking branch 'origin/stable' into dev

Change-Id: I497c153fe555fbfbbd5fbb40f65f614ee33b065d
iOS: change accelerometer to use QTimer for polling

According to the docs (CMMotionManager class reference) there are
two ways of interacting with the accelerometer; Either through the
callback API (NSOperationQueue), or peridic sampling (polling).
Our first implementation of IOSAcceleometer used the former
technique, which turns out to have bad performance when using the
sensor together with a fine-grained QTimer. And this case is
pretty common when using sensors together with e.g QML.

Reading through the docs more carefully, they recommend using the
polling technique when creating games instead since the
NSOperationQueue introduces some overhead. So this patch does
that, change the implementation to use QTimer based polling. And
this solves the performance issues found.

Change-Id: Ifde0d2292302467afb8db90a954ef45f3238350e
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Merge branch 'stable' into dev

Conflicts:
	.qmake.conf
	sync.profile

Change-Id: I0eaa022110b99fc5bc7cdf6304b5cda3ad3e8f8c