summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add a private class to QSensorBackendv5.1.0-beta1Thomas McGuire2013-05-063-34/+124
| | | | | Change-Id: Ifaac09159420b6cca197614a1fa9df8b6a8692dc Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* BlackBerry: Fix for GeoValues supportBernd Weimer2013-05-061-3/+1
| | | | | | | | Generic QSensor("QMagnetometer") crashed, because of a null pointer access. Fixed by disabling geo values support for generic magnetometer sensors. Change-Id: Ie3e654df10f325ff42cd3a08c3108e9b7a84604f Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Make it possible to bundle Android buildsEskil Abrahamsen Blomfeldt2013-05-065-13/+25
| | | | | | | | | Add the bundled jar file and information about required plugins. Task-number: QTBUG-30751 Change-Id: I41918e8f04449439703ef1ae91c78636e9475f36 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Fix some potential binary compatibility issuesThomas McGuire2013-05-0639-48/+220
| | | | | | | | | Mostly de-inlining methods, and in addition providing a virtual destructor. Change-Id: I0aef91e7a896e8a16fc023a11bd35a5ef3048ee6 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Doc: Define examples install path in .qdocconfTopi Reinio2013-05-031-0/+2
| | | | | | | | | QDoc needs to know the directory under which the examples are installed in QT_INSTALL_EXAMPLES. Without it, example manifest files may contain invalid paths. Change-Id: Iac69054982d7f93d8282a935f278ba32eae6c72e Reviewed-by: Martin Smith <martin.smith@digia.com>
* iOS: enable generic sensorsRichard Moe Gustavsen2013-04-231-0/+4
| | | | | Change-Id: I400661cabd4839f8a4e0c2b648a8a62a161dc955 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Generic: set PLUGIN_CLASS_NAME to help static builds (iOS)Richard Moe Gustavsen2013-04-231-0/+1
| | | | | | | | | | qmake will parse QTPLUGIN when building static apps, and create a stand-alone cpp file that adds the needed Q_IMPORT_PLUGIN lines. But for this to work, PLUGIN_CLASS_NAME needs to be set. Change-Id: Id92d78f3d77c3ce0d59fd27eec1df3271a947d51 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
* QSensor: fix spelling in docRichard Moe Gustavsen2013-04-231-1/+1
| | | | | Change-Id: Idcd84adc62015aa7986275b320f3bacf45c94635 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* iOS: implement proximity sensorRichard Moe Gustavsen2013-04-165-3/+216
| | | | | Change-Id: Ia4c2dbe4f81ceda1600f9f642effbc3377cfa94d Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* iOS: implement compassRichard Moe Gustavsen2013-04-165-4/+211
| | | | | Change-Id: I639a472cd2dfca177282cb4961d589f11f924e36 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* iOS: implement magnetometerRichard Moe Gustavsen2013-04-146-3/+239
| | | | | Change-Id: I611e1ccafb0362b78737785e9cc7f4f48278063a Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* iOS: remove unneeded void pointer casting in private headersRichard Moe Gustavsen2013-04-142-4/+5
| | | | | | | | | | 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> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* iOS: add QPointer guard to accelerometer and gyroRichard Moe Gustavsen2013-04-142-20/+34
| | | | | | | | | | 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> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* iOS: refactor and simplify IOSAccelerometer codeRichard Moe Gustavsen2013-04-142-74/+22
| | | | | | | | | | | | 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> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Remove REVISION 1 from alwaysOn property.Thomas McGuire2013-04-111-1/+1
| | | | | | | | This is a leftover from QtMobility and has been available since Qt 5.0. Change-Id: I68300b402aa04f2ca9e9b609cc859327c26e1a8f Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Remove TODO commentsThomas McGuire2013-04-111-4/+0
| | | | | | | With sensorfw we actually have a backend that uses these now. Change-Id: Iba088dc356a54ae43f29e8b5f77349a9a98c4d09 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Add missing Q_REVISION(1) to new 5.1 signalsThomas McGuire2013-04-112-8/+8
| | | | | | Change-Id: Ic98e6b4d9f4ac5c676d2183799a5a838c5085a70 Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* iOS: remove unnecessary test for accelerometer availableRichard Moe Gustavsen2013-04-101-17/+14
| | | | | | | | | 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: set data rate on accelerometer before starting itRichard Moe Gustavsen2013-04-101-0/+4
| | | | | | | | | 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: bugfix accelerometer timestampRichard Moe Gustavsen2013-04-101-1/+3
| | | | | | | | 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: implement gyroscope for iOSRichard Moe Gustavsen2013-04-105-5/+172
| | | | | | Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* doc: Removed the HTML template from the .qdocconf filesLaszlo Papp2013-04-051-1/+0
| | | | | | | qt-module-defaults.qdocconf already contains the HTML template. Change-Id: I06218652147efeb1f86b34e0d52ae413987e4e87 Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
* Android: Report correct timestamp valuev5.1.0-alpha1Paul Olav Tvete2013-04-045-5/+5
| | | | | | | | Android uses nanoseconds for the timestamp while Qt uses microseconds. Change-Id: I1a6a4c2c3e8cfc950d795e00b7d7546869399f29 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* Fix warnings in qtsensorsThiago Macieira2013-04-033-5/+9
| | | | | | | | qtapsensor.h:110:34: error: extra ";" [-pedantic] qsensor.cpp:147:12: error: ‘qrange_id’ defined but not used [-Werror=unused-variable] dummycommon.cpp:151:9: error: variable ‘ok’ set but not used [-Werror=unused-but-set-variable] Change-Id: Ief3b4841bae7c255a40ad8f19f3f8733a613db48 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
* Install the jar fileBogDan Vatra2013-04-021-0/+4
| | | | | | | Change-Id: I7bb84492336a69fc5389f3a26f026f7cb91c7052 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
* sync.profile: Add qtxmlpatterns as a indirect dependencySergio Ahumada2013-03-221-0/+1
| | | | | | | | This seems to have been accidentally removed by db4b4e29b9bd2875a69e8d3b53dc28f1748f60c9 Change-Id: I3a03cc3adc80e2795e5e4d56920752ceadedbcef Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Merge branch 'dev' into stableSergio Ahumada2013-03-19189-506/+8205
|\ | | | | | | | | | | This starts Qt 5.1 release cycle Change-Id: Idce0f9b94f9e585abfb6903f554500a06f4f8aaa
| * define MODULE_VERSIONOswald Buddenhagen2013-03-131-0/+2
| | | | | | | | | | | | Task-number: QTBUG-29838 Change-Id: I64f1d9a6990d88f8ba889e18ab35a215b72982dd Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * iOS: implement accelerometer for iOSLorn Potter2013-03-129-1/+433
| | | | | | | | | | | | | | This change implements an accelerometer for iOS. Change-Id: Id6de98427312bc0be42935fd9704117665d1e4a2 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * fix up compatibility mapLorn Potter2013-03-111-3/+12
| | | | | | | | | | | | | | and mention that sensor gestures are platform independent. Change-Id: Iee0cf4185d095e1e97cc7b222f35271bb72a75ab Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * Document the generic tilt sensor in genericbackend.qdocThomas McGuire2013-03-111-0/+3
| | | | | | | | | | Change-Id: I7b5e947ddc097744be2a90a118331a5af24f38ee Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * add sensorfw based sensor pluginLorn Potter2013-03-0533-3/+2400
| | | | | | | | | | | | | | ported from qtmobility. Change-Id: Ia4ee6e2b7ecbc441c5f6605f1bbabfec22ddcd09 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Sensor implementation for AndroidPaul Olav Tvete2013-03-0525-8/+1434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the Necessitas project by Bogdan Vatra. Contributors to the Qt5 project: BogDan Vatra <bogdan@kde.org> Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Paul Olav Tvete <paul.tvete@digia.com> The full history of the Qt5 port can be found in refs/old-heads/android, SHA-1 caa4103a80ef90db5eb9836f6b6028b7ce36c73a Change-Id: I57e772ee5079c0ea74f685b65ae2864d73e7c750 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
| * Make debug code compile againPaul Olav Tvete2013-03-051-6/+6
| | | | | | | | | | | | Change-Id: I96458c3e79e979ed5e682df48765d76482bfead6 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
| * Spell "tesla" correctly in the documentation.Paul Olav Tvete2013-03-011-3/+3
| | | | | | | | | | Change-Id: I3f5ac0b1adcdee9ba2c7ddd54302c3aca7a94bfb Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
| * Initialize variablesPaul Olav Tvete2013-03-011-0/+2
| | | | | | | | | | | | | | | | | | The old values of xRotation and yRotation are used in calculations. This should fix the bug where the tilt sensor would occasionally report NaN. Change-Id: I87e67cdbf66976f0c74e91d0f1660f7fc12f31cc Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
| * BlackBerry: Support QMagnetometer::returnGeoValuesThomas McGuire2013-03-012-10/+27
| | | | | | | | | | | | Change-Id: Ib81074bb9ea2b922fb8c599e7e758346e85bb6e0 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Blackberry: Prevent spurious calls to dataAvailable() when stoppedThomas McGuire2013-03-011-13/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Explicitly disable the socket notifier and drain the device file to avoid dataAvailable() being called spuriously. This fixes high CPU usage that occurred in some circumstances after stopping the sensor. Many thanks to Dmytro Mishchenko for reporting and helping to track down the problem. Change-Id: Idcaff1432b96b392d033e5b21c2b379259792212 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Update the porting documentationThomas McGuire2013-03-011-10/+15
| | | | | | | | | | | | | | | | | | | | - Remove some references to the legacy imports - Mention the biggest change, separate QML types - Add some examples on what changed in the QML API Change-Id: Icdbf8271935499ec449a35919d947ad762d2cf03 Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Update qdocconfThomas McGuire2013-02-261-16/+21
| | | | | | | | | | | | | | | | | | | | - Use version tags rather than hardcoded versions - Add a QML Types section to the TOC - Fix link to the overview page - Keep the rest more in line with other modules (used qtcore to compare) Change-Id: Ia86aad1fc50b8471847b2fb808bacf2cbcf1471c Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
| * Fix some doc warningsThomas McGuire2013-02-262-2/+4
| | | | | | | | | | Change-Id: Ia955a9071ae6662b211d57708624d339d9ec5e4f Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
| * Document the IR Proximity value behavior on BlackBerryThomas McGuire2013-02-261-0/+6
| | | | | | | | | | | | | | Task-number: QTBUG-28087 Change-Id: Ibf2a37dce4c57506bf2073bee9f483d48c94e71c Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2013-02-2530-102/+1691
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/sensors/generic/generictiltsensor.cpp src/sensors/qtapsensor.h sync.profile Change-Id: I017a5fa8dffb69b41727495175c0fca9b76962e1
| * | BlackBerry: Remove outdated TODO commentThomas McGuire2013-02-101-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | The proximity sensor has been tested in the meantime and works as expected. Change-Id: Ifd27055e36d58f860809d4a5c5dc3f4203094771 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | Use real properties for QSensor::bufferSize & coThomas McGuire2013-02-088-34/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The #ifdef Q_DOC hack is not really needed and was confusing. In addition, expose those properties to the QML API. As a result, the backends can now listen to the bufferSizeChanged() signal to update the buffering while the sensor is running. This has been implemented for the BlackBerry platform. Change-Id: I5239ba2a4b791cfc9f684b44ff2bc103a7b5b0da Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | Repair duplicate skipping for the tilt sensorThomas McGuire2013-02-082-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | Found because the compiler was warning about an unused "change" variable. Change-Id: Iac968685ba8da7a4d38a00427d22d1e01e31b25f Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | Add a QAmbientTemperatureSensor class.Thomas McGuire2013-02-0815-41/+556
| | | | | | | | | | | | | | | | | | | | | Port the Blackberry backend to use it. Change-Id: I6d4395f5ab9e0ce3fb6f76c47282929103929557 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | Convert QMagnetometer::returnGeoValues to a proper propertyThomas McGuire2013-02-088-9/+56
| | | | | | | | | | | | | | | Change-Id: I39cde0046e8a3fc77edbcf5c9510e2dcf6c731c7 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | genericrotationsensor: Remove unused magnetometer memberThomas McGuire2013-02-081-1/+0
| | | | | | | | | | | | | | | Change-Id: I29a3736537b0b2602f4b5ef1a3ba74e55331d24e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * | Convert QRotationSensor::hasZ to a proper propertyThomas McGuire2013-02-087-7/+58
| | | | | | | | | | | | | | | Change-Id: I32edf761653fbe9d08710703b02fb1c0183aba3e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>