summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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-2516-21/+20
|\ | | | | | | | | | | | | | | | | Conflicts: src/plugins/sensors/generic/generictiltsensor.cpp src/sensors/qtapsensor.h sync.profile Change-Id: I017a5fa8dffb69b41727495175c0fca9b76962e1
| * Eliminate a warning for "make docs" due to the improper style usageLaszlo Papp2013-02-251-1/+1
| | | | | | | | | | Change-Id: I7901d1527ea02738f37de50ab2c0addcf6d5c927 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * remove nokia and replace with qt-project in pluginsLorn Potter2013-02-0711-13/+12
| | | | | | | | | | Change-Id: I63fa985991653e4b8465a7fb88acab647d8546e8 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
| * make use of qtHaveModule()Oswald Buddenhagen2013-01-081-1/+1
| | | | | | | | | | | | | | | | Change-Id: I17123244323118e9dc9faa090f94faa9b2dcb795 Reviewed-by: Tasuku Suzuki <stasuku@gmail.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Fix pedantic errors and warnings (found by headers clean test)Thiago Macieira2012-12-235-10/+10
| | | | | | | | | | | | | | | | | | qorientationsensor.h:68:17: error: comma at end of enumerator list [-pedantic] qsensorgestureplugininterface.h:68:99: error: extra ';' [-pedantic] qsensorbackend.h:73:5: error: declaration of 'reading' shadows a member of 'this' [-Werror=shadow] Change-Id: I50a9fc993a3a3c3391f6231ccd2c1976c636045b Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | 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-0813-41/+548
| | | | | | | | | | | | | | 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>
* | Convert QTapSensor::returnDoubleTapEvents to a proper propertyThomas McGuire2013-02-086-11/+49
| | | | | | | | | | Change-Id: I62f626a8df765a50815f3b275da8b858cb24a30d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Convert QLightSensor::fieldOfView to a proper propertyThomas McGuire2013-02-086-14/+56
| | | | | | | | | | Change-Id: Ic6e5388e0cbc2a0045157873c05aa241ffe5e82d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Add a QAltimeter class.Thomas McGuire2013-02-0813-40/+551
| | | | | | | | | | | | | | Port the Blackberry backend to use it. Change-Id: I3d3bc1d6fa8b42d3d0d64bcd3245050b67a37dc7 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Add missing AxesOrientationMode to the QML plugin descriptionThomas McGuire2013-01-311-0/+8
| | | | | | | | | | Change-Id: I2eef34cd39243deff640e24d1debae9dab1e5310 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Remove the use of QT_MODULE()Sergio Ahumada2013-01-2924-48/+0
| | | | | | | | | | | | | | | | | | | | The macro was made empty in qtbase/4ecf82795de54fba530ac9c386f3afff2174edbd and is no longer necessary or used. Also, don't generate this macro when using make_sensor.pl Change-Id: I19121c9f0a1775011f1dd08b9d7d5d85336b1122 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Don't use QT_{BEGIN,END}_HEADER macrosSergio Ahumada2013-01-281-6/+0
| | | | | | | | | | | | | | | | | | | | This macro is useless from Qt 5.1 on, so: - Don't generate these macros when using make_sensor.pl - There is no need to blacklist these in qt-cpp-ignore.qdocconf Change-Id: I91b1050aaf406fb140ab9d28369992e4d08b5cd0 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Remove QT_{BEGIN,END}_HEADER macro usageSergio Ahumada2013-01-2859-118/+0
| | | | | | | | | | | | | | | | | | The macro was made empty in qtbase/ba3dc5f3b56d1fab6fe37fe7ae08096d7dc68bcb and is no longer necessary or used. Discussed-on: http://lists.qt-project.org/pipermail/development/2013-January/009284.html Change-Id: If3f1040766e1c7de05bb8e90cd8a8a2a349bd096 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Add QHolsterSensorThomas McGuire2013-01-2314-0/+693
| | | | | | | | | | | | | | | | | | | | This adds a new QHolsterSensor plus the assorted reading and filter classes, as well as a QML API. Also implement the Blackberry backend for it. Change-Id: I42e76c21ee74a39a65629e7ab6d9a18f23eae4d4 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Add a axes remapping featureThomas McGuire2013-01-239-11/+338
| | | | | | | | | | | | | | | | | | | | | | This allows orientable sensors like accelerometer or compass to change to adapt the reading values based on the current screen orientation. Add support for the BlackBerry backend. Change-Id: If7cfde8f20da4f677fdd13c38f7e11f2ed96bedd Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | \since QtSensors 5.0 -> \since 5.0Thomas McGuire2013-01-231-1/+1
| | | | | | | | | | Change-Id: Ied2ceac07a5f9dd8a3331e1e2d407620450e138e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Add API for duplicate skippingThomas McGuire2013-01-2310-15/+105
| | | | | | | | | | | | | | | | | | | | | | Duplicate skipping enables omitting reading values that are very similar to the previous one, thus saving processing power. Implement this for the Blackberry backend. Change-Id: Ic608d8ca795b5a2e0bca5a75a62e8005c283c620 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Add QPressureSensorThomas McGuire2013-01-2313-42/+559
| | | | | | | | | | | | | | | | | | | | This adds a new QPressureSensor plus the assorted reading and filter classes, as well as a QML API. The Blackberry backend is ported to use the new reading class. Change-Id: Ifc86a2ae955a9337a67fd9a86ceabab908917cb3 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* | Add the QML classes to the sensor template scriptThomas McGuire2013-01-231-0/+174
| | | | | | | | | | Change-Id: I373a88ee3116d6ad9c389e762478742af38cb949 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Fix since documentation tag in sensor template scriptThomas McGuire2013-01-231-3/+3
| | | | | | | | | | Change-Id: Ia7d14a7d354fe95e038416e9883a507dd7ccba81 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | QAccelerometer: Add AccelerationMode propertyThomas McGuire2013-01-2314-34/+293
| | | | | | | | | | | | | | | | | | | | | | Add a new property to be able to toggle effects of gravity on or off. Implement the Blackberry backend side of this as well. QTBUG-25842 Change-Id: I15c4cae72373f48b0153b83c6aa3d27b66538c87 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
* | Generic plugin: Remove debug message noise.Thomas McGuire2013-01-151-1/+0
| | | | | | | | | | Change-Id: I33e43f0846197cbb47609af249e54769e17920b8 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Actually enable loading of the generic tilt sensorThomas McGuire2013-01-153-12/+29
| | | | | | | | | | | | | | | | | | Also, disable loading of all other generic plugins on the BlackBerry platform. Change-Id: I7c969fdb224daf1016162ad597edac81e967105e Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Generic Tilt sensor: Use degree rather than radiansThomas McGuire2013-01-151-0/+9
| | | | | | | | | | | | | | | | This is stated in the docs and it is also more consistent with all other sensors. Change-Id: I5d1d074630f9efa7371a42d10196984549769e24 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Do not link librt on Android platformsRainer Keller2013-01-152-2/+2
|/ | | | | | | | Android platform does not need to have librt linked separately. Change-Id: Iab35d5f44bde439ca83a1d4664a7e10bae6cb0da Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-294-4/+4
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-286-6/+6
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>