summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/sensors.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headersJani Heikkinen2015-02-171-7/+7
| | | | | | | | | Qt copyrights are now in The Qt Company, so we could update the source code headers accordingly. In the same go we should also fix the links to point to qt.io. Change-Id: I141862df4ed2475c05ebbeb8fe447c4a6e736849 Reviewed-by: Antti Kokko <antti.kokko@theqtcompany.com>
* Update plugins.qmltypes for QtSensors 5.5 releaseAlex Blasche2015-02-061-3/+3
| | | | | Change-Id: I4b5bd46487a3589171f115aba1ee1a57d0273f35 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Update license headers and add new licensesJani Heikkinen2014-08-241-19/+11
| | | | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: I99c601a398559886c2900f3e04833acfceba8263 Reviewed-by: Antti Kokko <antti.kokko@digia.com> Reviewed-by: BogDan Vatra <bogdan@kde.org> Reviewed-by: Tony Sarajärvi <tony.sarajarvi@digia.com>
* Register all QtSensor QML types for version 5.4Alex Blasche2014-07-091-3/+4
| | | | | Change-Id: I6afcbcf691e203491ee563168c19d084c051a449 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>
* Update QML plug-in interfaces for Qt 5.3 releaseAlex Blasche2014-02-261-2/+5
| | | | | Change-Id: If01a988c151ec696c8d02ca7c470d7e97a593b40 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Added temperature property to pressure sensorBernd Weimer2013-04-091-0/+43
| | | | | | | | | | | 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>
* Add a QAmbientTemperatureSensor class.Thomas McGuire2013-02-081-0/+4
| | | | | | | Port the Blackberry backend to use it. Change-Id: I6d4395f5ab9e0ce3fb6f76c47282929103929557 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Add a QAltimeter class.Thomas McGuire2013-02-081-0/+4
| | | | | | | Port the Blackberry backend to use it. Change-Id: I3d3bc1d6fa8b42d3d0d64bcd3245050b67a37dc7 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Add QHolsterSensorThomas McGuire2013-01-231-0/+3
| | | | | | | | | | 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 API for duplicate skippingThomas McGuire2013-01-231-1/+1
| | | | | | | | | | | 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-231-0/+3
| | | | | | | | | | 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>
* QAccelerometer: Add AccelerationMode propertyThomas McGuire2013-01-231-0/+35
| | | | | | | | | | | 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>
* Rename QtMobility.sensors 1.3 to QtSensors 5.0Lincoln Ramsay2012-10-111-53/+6
| | | | | Change-Id: I2b24533d38db1f8e205de19b67fe0b21625bbf6b Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add SensorGesture QtMobility.sensors 1.3Lincoln Ramsay2012-10-081-0/+3
| | | | | | | This has been imported from QtSensors 5.0 without changes. Change-Id: Ie6a919f9b806bf19287a693fb7cdb563f8697e13 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Add TiltSensor to QtMobility.sensors 1.3Lincoln Ramsay2012-10-031-12/+17
| | | | | | | | | | | 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-261-741/+46
| | | | | | | | | 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-241-24/+24
| | | | | | | | | | 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>
* Doc: Changed \qmlclass to \qmltype and added \instantiatesJerome Pasion2012-07-301-24/+48
| | | | | | | | | | -\qmlclass is now \qmltype -\instantiates is for QML types implemented in C++ Change-Id: I7f1af4eae6ad9d199859911b5ab51696a59a9b36 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Peter Yard <peter.yard@nokia.com> Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
* Use \sa links to link to the C++ documentationThomas McGuire2012-07-021-98/+111
| | | | | | | | This fixes the incorrect grammar in some of the sentences. Change-Id: I013b0ce8afb5d067b97e6980c76103e40e4aa6ed Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Jeremy Katz <jeremy.katz@nokia.com>
* Fix compilation.Friedemann Kleint2012-06-261-38/+0
| | | | | | | | qmlRegisterUncreatableType actually exists in declarative. Change-Id: Ia75855389fac95537eb6e3d8573db4ff55fad63c Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Missing minor numbers in versionsLincoln Ramsay2012-06-191-24/+24
| | | | | | Fixes: QTBUG-25926 Change-Id: I3a2942b13a9d335a9c564b23cb4a79241d6895af Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Docs: change QML elements to QML types in docs.Peter Yard2012-06-191-83/+83
| | | | | Change-Id: I54a9a1972978f1d989d262f137b5890d1feb35e0 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't initialize sensors from registerTypes().Lincoln Ramsay2012-06-131-3/+0
| | | | | | | | This function gets called on a different thread... we don't really want that so just don't do that. Change-Id: I58dc0c0bc8d54221a0b6fd306552b67e2abf0235 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Changes so that sensor.start() does not block (QML)Lincoln Ramsay2012-04-201-0/+3
| | | | | | | | | | | | | | The C++ library tries to delay things as much as possible. It turns out that doing this for QML is not optimal because it means calling sensor.start() can block for a long time (up to hundreds of milliseconds in worst case scenarious). If the sensor is started after the UI is visible, this will cause a stutter. The workaround is not particularly elegant. We force the sensors library to do its setup while the QML plugin is being loaded. Change-Id: Iae945ccb79eb568c5decbfdf8a5d623cd96e9d6b Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* fix up documentation according to the doc guys.Lorn Potter2012-03-291-12/+12
| | | | | | Change-Id: I417e3c57e986f9364f25d5a0e742bd31833de283 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Update QML plugins to the new style.Lincoln Ramsay2012-03-161-2/+1
| | | | | Change-Id: Ie419b58c4789e539be5370dc0b7d2518009bbe91 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Rename declarative symbols.Lincoln Ramsay2012-03-081-13/+13
| | | | | | | Use the script rename-qtdeclarative-symbols.sh. Change-Id: Ib1a62731a6c95590978a488c4afbd804f14fb958 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-301-1/+1
| | | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: I1ecfbf66a49bb91dd995d92c871ca36148adc645 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-231-1/+1
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: Ie8628548cde5d3b251f319cbb6f33e6c08852d9e Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* alwaysOn for legacy QML elementsLincoln Ramsay2012-01-131-25/+66
| | | | | | | | | You must use QtMobility.sensors 1.3 to get alwaysOn Use apprpriate namespacing to avoid collisions with the QtSensors 5 elements. Change-Id: If0f6dfff116d7de8a6de403b2d7c75ffd48b03b8 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-051-1/+1
| | | | | | Change-Id: I7fdedc329cf80f84f1f6e0c6c9da3f7d1ebcd70d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* update legacy QML API docsLincoln Ramsay2011-10-101-11/+61
| | | | | | | | Fixes: MTMW-300 Change-Id: I7633acaa03ffa4e7413ab2a22cef463bd3e95fda Reviewed-on: http://codereview.qt-project.org/5904 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Rename the sensors import.Lincoln Ramsay2011-10-101-0/+47
| | | | | | | | | | | These legacy elements will be exported to the QtMobility.sensors namespace. The IR proximity sensor is added to new version 1.3. 1.1 and 1.2 continue to work. Change-Id: Ic25f2e8bf189f396ab2185d85d12be3b3ceb69de Fixes: MTMW-299 Reviewed-on: http://codereview.qt-project.org/5353 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* MTMW-98 QML API Version 2Wolfgang Beck2011-10-101-49/+71
| | | | | | Change-Id: I10c610ae22974d291fad663088c5a11449a86b05 Reviewed-on: http://codereview.qt-project.org/4107 Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* Add the IR Proximity sensor to the QML pluginLincoln Ramsay2011-10-101-0/+3
| | | | | | | | | | Needed for compatibility with the unofficial presence of IR Proximity in Mobility 1.2 Change-Id: I3fb1b8febb6137dadae37b6065cf04c6ddd21eb6 Reviewed-on: http://codereview.qt-project.org/4303 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Reset the version to 1.0Lincoln Ramsay2011-08-291-23/+4
| | | | | | | Change-Id: I606bed710e5546a4f33c885dfafb033ce8f1d002 Reviewed-on: http://codereview.qt.nokia.com/3693 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Apply a consistent license on all the filesLincoln Ramsay2011-08-051-2/+2
| | | | | | Change-Id: I9d04e244df0abcf1aa5aa43ac2057fe2c40e2eb9 Reviewed-on: http://codereview.qt.nokia.com/2594 Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Update licenseheader text in source files for qtsensors Qt moduleJyri Tahtela2011-05-241-17/+17
| | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* Add sensor's declarative pluginAlex2011-05-231-0/+725