summaryrefslogtreecommitdiffstats
path: root/src/sensors
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* iOS: implement gyroscope for iOSRichard Moe Gustavsen2013-04-101-1/+1
| | | | | | Change-Id: I4a46908a4b4e166c489dce4a034ef68698288419 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix warnings in qtsensorsThiago Macieira2013-04-032-5/+8
| | | | | | | | 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>
* iOS: implement accelerometer for iOSLorn Potter2013-03-121-0/+18
| | | | | | | 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-053-1/+55
| | | | | | | ported from qtmobility. Change-Id: Ia4ee6e2b7ecbc441c5f6605f1bbabfec22ddcd09 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Sensor implementation for AndroidPaul Olav Tvete2013-03-052-0/+29
| | | | | | | | | | | | | | | 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>
* 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>
* 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-258-13/+13
|\ | | | | | | | | | | | | | | | | 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-073-4/+4
| | | | | | | | | | Change-Id: I63fa985991653e4b8465a7fb88acab647d8546e8 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.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>
* | Use real properties for QSensor::bufferSize & coThomas McGuire2013-02-083-13/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Add a QAmbientTemperatureSensor class.Thomas McGuire2013-02-085-1/+306
| | | | | | | | | | | | | | 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-083-5/+39
| | | | | | | | | | Change-Id: I39cde0046e8a3fc77edbcf5c9510e2dcf6c731c7 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Convert QRotationSensor::hasZ to a proper propertyThomas McGuire2013-02-083-4/+46
| | | | | | | | | | Change-Id: I32edf761653fbe9d08710703b02fb1c0183aba3e Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Convert QTapSensor::returnDoubleTapEvents to a proper propertyThomas McGuire2013-02-083-5/+40
| | | | | | | | | | Change-Id: I62f626a8df765a50815f3b275da8b858cb24a30d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Convert QLightSensor::fieldOfView to a proper propertyThomas McGuire2013-02-083-4/+48
| | | | | | | | | | Change-Id: Ic6e5388e0cbc2a0045157873c05aa241ffe5e82d Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Add a QAltimeter class.Thomas McGuire2013-02-085-0/+309
| | | | | | | | | | | | | | Port the Blackberry backend to use it. Change-Id: I3d3bc1d6fa8b42d3d0d64bcd3245050b67a37dc7 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.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-2841-82/+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-235-0/+315
| | | | | | | | | | | | | | | | | | | | 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-233-0/+206
| | | | | | | | | | | | | | | | | | | | | | 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-233-0/+59
| | | | | | | | | | | | | | | | | | | | | | 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-235-0/+314
| | | | | | | | | | | | | | | | | | | | 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-235-2/+115
|/ | | | | | | | | | | 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>
* It's org.qt-project for plugin interfacesLorn Potter2012-11-292-2/+2
| | | | | Change-Id: I4b442f25f4593f2d957ff572b5ec565ff952818b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* remove Nokia isms from plugin interfaceLorn Potter2012-11-284-4/+4
| | | | | | | As well as from documentation and usage of Sensors.conf location Change-Id: I52d657d6799e44a94b3f37bae86445c73e176103 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* add QSensorGestureRecognizers here as well. They are equally important.Lorn Potter2012-11-271-0/+8
| | | | | Change-Id: I5b488a6317af8cef1f31cf03249d115cd424b515 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Fix includes in public headersThomas McGuire2012-11-0318-21/+21
| | | | | Change-Id: I1401314208bb89ba46ed3f18393b1f446682cd93 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Silence warningsThomas McGuire2012-11-031-0/+8
| | | | | Change-Id: If3a3719f2bf2edc4c2230abf968f836c28eb1efa Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors:: prefix from documentation.Thomas McGuire2012-11-031-1/+1
| | | | | | | | This appears to be implicit. Now the property documentation is built correctly. Change-Id: I3998582fdeabf751a612c379df69f5eb41b9419d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Build the QML documentationThomas McGuire2012-11-021-2/+2
| | | | | Change-Id: I7f35e623f2441871f230688fa3494850f4bdad6d Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Fix typo: Contacts -> SensorsThomas McGuire2012-11-021-1/+1
| | | | | Change-Id: Ie0b8756f3b538b4263298bec9f293f62bf20568c Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove obsolete legacy documentationThomas McGuire2012-11-022-77/+0
| | | | | Change-Id: I2be34f3af34ff7accc4ba9c0d8157633e25ef785 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* make compile with -no-guiTasuku Suzuki2012-10-152-2/+2
| | | | | Change-Id: Ia5c93a26ce2d56d0844aea1c0c5ddd1be2ae3c5a Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Doc: Modularized the Qt Sensor DocsGeir Vattekar2012-10-1262-5/+1908
| | | | | Change-Id: Ie8636ec443f43b1f238342e0f6f7d321e13dce09 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Update docs after modularization of docsTor Arne Vestbø2012-10-111-2/+2
| | | | | | | | The global files now live in qtbase only, and are made available to the other modules via the $QT_INSTALL_DOCS variable. Change-Id: I4f77194f9c1e0c65636430ac22de3241b49d4641 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-111-1/+1
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Remove the QtSensors 5.0 importLincoln Ramsay2012-10-091-1/+1
| | | | | | | | | | | The gesture tests that were part of the sensors2 unit test have been retained. The tilt sensor tests were not, though they could be used as a base to make a unit test for the new tilt sensor class. Change any existing imports to use QtMobility.sensors 1.3. Change-Id: I8a7130b3c73980fdd577e96c10aecda15e79f8b2 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>