summaryrefslogtreecommitdiffstats
path: root/src/sensors
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Add TiltSensor to QtMobility.sensors 1.3Lincoln Ramsay2012-10-036-0/+354
| | | | | | | | | | | This has been adapted from the TiltSensor type in QtSensors 5.0 import but the code there has been split into multiple pieces. There's a C++ class, a generic backend and a QML interface. Change-Id: Ic09465a5f76250a02a13938abe4789958137376f Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* QtMobility.sensors has a new implementationLincoln Ramsay2012-09-262-2/+2
| | | | | | | | | This implementation fixes the limitations the original code had and separates the QtSensors C++ API from the QML API so that changes to one don't need to affect the other. Change-Id: I519463f3c7cfbad3bce5c291ce166b8793d5ed4a Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-2458-1393/+1393
| | | | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: I85014238e262cb59d8d92b0d708851e82e5633da Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-131-2/+0
| | | | | Change-Id: Ieaa07fcaf28f754c14774dee61697624d33cabf8 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Pass through invalid data rates to the backend instead of ignoring themThomas McGuire2012-08-282-14/+4
| | | | | | | | | This gives the backend the chance to do something sensible with it, at the expense of the data rate not being reported correctly in those cases. Change-Id: Iadf72b4448145f2454bc9422dde094ad799cb17a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* follow rename of qt_module_config.prf to qt_module.prfOswald Buddenhagen2012-08-111-1/+1
| | | | | Change-Id: I98306597742599532bf01d339f8c7807437f59dc Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Add QSensor::isFeatureSupported()Thomas McGuire2012-07-234-0/+77
| | | | | | | | | | | | Now it is possible to check if a backend supports a specific feature. During reviews of features like acceleration mode or duplicate skipping, the issue was raised how to check if these features are actually supported. The same is true for existing features like QMagnetometer::returnGeoValues. Change-Id: I47115d6c487bbcbb668a9021cdc7085e6780a67c Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Introduce QRotationReading::setFromEuler() in favor of set{X/Y/Z}()Thomas McGuire2012-07-182-24/+14
| | | | | | | | | | | | | In preparation of adding new representations to the reading (QTBUG-25840), the setX(), setY() and setZ() setters were removed, as these don't set the representation atomically, and don't provide a single point where a conversion to matrix or quaternion can occur. These setters were only supposed to be used by the backends, and all backends are ported in this commit. Change-Id: Ib652520578d293687fc8515d226f1f61aa2f2def Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Blackberry: Implement bufferingThomas McGuire2012-07-121-0/+11
| | | | | | | | | | | The API provided by QSensor does not fit nicely for what the OS service API provides. Instead of adding yet another buffer-related property to QSensor, I added documentation to QSensor describing the differences in behaviour. Change-Id: I2d81d9c62ce7e8b50c27631a28aa7fbcaca70373 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* QSensor: Use standard Qt dpointer patternThomas McGuire2012-07-0326-85/+195
| | | | | | | | | | | | | Now it is possible to extend QSensor subclasses without breaking binary compatibility. In addition, de-inline the constructors and destructors of subclasses to make it possible to replace them without compatibility problems. Change-Id: I69de97002ade3e75f090761f852a5aca39c0f555 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make_sensors.pl: Add \since tagThomas McGuire2012-07-031-0/+3
| | | | | | | Otherwise it is easy to forget about this Change-Id: Ib1da49c136f3e9cf99f68dd283143fe2fc0eb930 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove auto-generated commentThomas McGuire2012-07-021-7/+0
| | | | | | | This comment was only intended to be read after make_sensors.pl ran. Change-Id: If327aa583848172b267c541db861de2e1114c301 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update make_sensors.plThomas McGuire2012-07-021-1/+8
| | | | | | | | | | Add: - Q_DECL_OVERRIDE - QT_BEGIN/END_HEADER - QT_MODULE Change-Id: I89da05d84612aaa804298cbdd8575d2135a125fd Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update the export macros in qtsensors.gitThiago Macieira2012-06-271-18/+2
| | | | | | | Use the new, simpler QT_STATIC macro. Change-Id: I20bad6db7a77227d7d4213e43b1350468f44b9a2 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-261-9/+3
| | | | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - QT_BUILD_*_LIB defines (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL - pointless include and depend paths Change-Id: I2c5062c238c6948f99d72f7c5544095cd30c988d Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* auto-generate module prisOswald Buddenhagen2012-06-261-3/+1
| | | | | | Change-Id: I89ccb6cd05e58a1790480d5ea9c613ace4f42373 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Cleanup last Symbian remnants in QtSensorsalex2012-06-221-17/+0
| | | | | Change-Id: I35eb858cad41167ac6bbbf17e48571965f34f8ca Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Hook doc generation into global QMAKE_DOCS contextalex2012-06-221-4/+1
| | | | | Change-Id: I3b654018a9d29719e56b928205f441e193fc01a3 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fix the since tag usageLincoln Ramsay2012-06-201-1/+1
| | | | | Change-Id: Ie6124f99e1fbbbccda47ed144ddd565dd0cc4694 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* setDataRates clobbers user-set data rateLincoln Ramsay2012-06-042-14/+19
| | | | | | | | | | | | | | | | | | | | | | Under normal conditions, dataRate is set/checked like so. QSensor::setDataRate records the data rate. It can't be evaluated because we have no backend. Upon getting a backend, we are notified of the available data rates. Re-evaluate the previously-set dataRate after connecting to a backend. The problem is that connectToBackend did not save the dataRate value until after setDataRates was called and setDataRates was clobbering the dataRate property. Two fixes will be made. connectToBackend will save the dataRate before creating the backend and setDataRates will stop clobbering dataRate. Also, setDataRates is now banned from being called outside of the constructor because otherwise an available data rate may disappear during use. Add a test case to verify that a previously-set data rate is not clobbered. Change-Id: I9632b2c8ffcc6d48d9bc91f263b99028ee997ff9 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (Sensor Gestures).Lincoln Ramsay2012-05-282-5/+19
| | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensor gestures will start returning 0. Check for this to avoid the chance of a crash. Change-Id: I4b538ac9b9535bd9439a897d4eab51211c523e33 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Check for Q_GLOBAL_STATIC returning 0 (QtSensors).Lincoln Ramsay2012-05-281-0/+11
| | | | | | | | | | It's probably not very likely but during app shutdown, the Q_GLOBAL_STATIC used in sensors will start returning 0. Check for this to avoid the chance of a crash. Change-Id: If2c235b158c36339e35e40074a5b33dbe21a7726 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* fix gestureSignals on simulator buildsLorn Potter2012-05-186-28/+26
| | | | | | | remove started and stopped signals and call the manager directly Change-Id: If2c05576e858c196ab3ba3d786574afbf894ca4b Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't use bare strings.Lincoln Ramsay2012-05-171-6/+6
| | | | | | | wrap with QLatin1Sring Change-Id: Ifc89212e95b990e45f4c38e8e23e292e5f8cc604 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* send only signals being started. Avoids developer confusion.Lorn Potter2012-05-176-5/+57
| | | | | Change-Id: I7f49f14d0546a2a59a26777c6f8fa083ec29e0ba Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fixing header problems identified by the CI gateWolfgang Beck2012-05-1419-2/+41
| | | | | Change-Id: Ib1f65462a9203534538a18fdc6374fb125cd6f3d Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't crash when the emulator is missing.Lincoln Ramsay2012-04-302-1/+2
| | | | | | | | | | The emulator may be missing (eg. when running unit/system tests) so handle this case without crashing. Also fix a missing QLatin1String() around a bare string. Change-Id: Ibeeb0078c1ae12cec4bf8e3f4e81b3a4c72347da Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Using free instead of qFreeDebao Zhang2012-04-271-1/+1
| | | | | | | qFree has been deprecated. Change-Id: Ie64c791451cb3722183f2ea4d27b9b8e87a4f629 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make simulator work better with gestures.Lorn Potter2012-04-275-0/+267
| | | | | | | | code from the plugin has been moved into the manager so that every other plugin can be triggered by the emluator. Change-Id: I37232ab6d45a027541ab1b5c504b2844049ba522 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>