summaryrefslogtreecommitdiffstats
path: root/src/sensors
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-05-191-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I6c75a1a2f39fc3490087c1bad07325c79b0c79d2
| * Doc: Remove repository name from examplesinstallpathTopi Reinio2016-05-131-1/+1
| | | | | | | | | | | | | | | | Examples in binary packages now directly match the install path. Change-Id: Ib617462a75ba94ff32689c8cc8f0fb10e2db4431 Task-number: QTBUG-52953 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-03-0726-37/+37
|\| | | | | | | | | | | | | Conflicts: src/sensors/doc/src/compatmap.qdoc Change-Id: I7bd464cbd506f630798091fef3896050ade7b3f8
| * Make more ctors explicitMarc Mutz2016-03-032-2/+2
| | | | | | | | | | | | | | | | | | Added explicit where it was missing. This is not a source- incompatible change, because code that breaks by this is a bug. Let's not have this sitting around in an LTS. Change-Id: Iadcd2f1c751bb5a9cef96b2732bb3a7a8e34c6f8 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| * Make public headers compile with -Wzero-as-null-pointer-constantMarc Mutz2016-03-0322-25/+25
| | | | | | | | | | | | | | | | | | | | | | ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Task-number: QTBUG-45291 Change-Id: Iaa6ea07220566adc323010c52233416e6ae2b726 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| * Cleanup dead links in QCompassReadingAlex Blasche2016-03-031-2/+2
| | | | | | | | | | | | | | Task-number: QTBUG-50165 Change-Id: I7a5e195ad5ea4d390609303e9ae7c047ecbf2399 Reviewed-by: Lorn Potter <lorn.potter@canonical.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
| * Update supported sensors table for iOSAndy Shaw2016-03-011-4/+4
| | | | | | | | | | Change-Id: I3885849352a59a23989605f0e62a594bd4c61db1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * Purge sRGB chunks from PNGs in documentation.Edward Welbourne2016-03-011-0/+0
| | | | | | | | | | | | | | | | Subjects each *.png file that matched grep -law "sRGB" to: pngcrush -ow -brute -rem allb -reduce -force Change-Id: Ie54ce7153b23632cf2673f6f82ae8b3e4dec6e67 Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
| * don't over-expose private dependenciesOswald Buddenhagen2016-02-251-1/+1
| | | | | | | | | | Change-Id: I6045425fb467002db288854f9d0a8f8ea683876f Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| * consistently put {qt,qml}_{module,plugin} at the end of project filesOswald Buddenhagen2016-02-251-5/+5
| | | | | | | | | | | | | | | | this fixes static builds by ensuring that all dependencies are exported. Task-number: QTBUG-51071 Change-Id: Ia3c3f69505650fd35982fc76e385e744b877e4df Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-alpha1Liang Qi2016-02-192-2/+1
|\| | | | | | | | | | | | | | | Conflicts: .qmake.conf src/sensors/doc/src/compatmap.qdoc Change-Id: I4049bc3c335a8a9db5c935032207d0bcfba78480
| * Android: Document that Compass works on AndroidAlex Blasche2016-01-041-1/+1
| | | | | | | | | | | | Task-number: QTBUG-50165 Change-Id: I1fedc47b19832c8c8400ca28314e2a374d5714de Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
| * Doc: Remove an obsolete external link.Venugopal Shivashankar2015-12-171-1/+0
| | | | | | | | | | | | Change-Id: I88eba8f9d5ad0633bf58692245c80cc767d2ab67 Task-number: QTBUG-50013 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-2077-1078/+1540
| | | | | | | | | | | | | | | | | | | | From Qt 5.7 -> LGPL v2.1 isn't an option anymore, see http://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/ Updated license headers to use new LGPL header instead of LGPL21 one (in those files which will be under LGPL v3) Change-Id: Id129b1497aa9d61fd16332e3b324f28dcf7bdd5b Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* | QSensorManager: use prefix ++ for iteratorAnton Kudryavtsev2015-12-091-1/+1
| | | | | | | | | | | | | | because it's useful for non-primitive types Change-Id: I2907a40956935abdd59b0d90bb5ab215d49c1029 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Merge branch '5.6' into devAlex Blasche2015-11-261-1/+1
|\| | | | | | | Change-Id: I6799d8791b7b67b4151697b63bdb3c0f83d39392
| * Doc: Update examplesinstallpath to include the repository nameTopi Reinio2015-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The examplesinstallpath variable in .qdocconf files defines the path under QT_INSTALL_EXAMPLES where examples are found. To match the way examples are packaged in Qt 5.6, prefix the install path with the repository name. Task-number: QTBUG-48736 Change-Id: I233a6d60edee3378231a9419c6de49fba17bdea2 Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
* | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2015-10-143-12/+12
|\| | | | | | | Change-Id: I4286dcb9262bf38960ff3852932012718aaa5d65
| * doc: Fix "Qt Sensors Backend" pageAlexander Volkov2015-10-081-8/+6
| | | | | | | | | | | | | | | | | | | | Remove "Backend API" section, it's actually "Overview". Manually create the "Backend Topics" list as it's typically done in the Qt documentation. And by removing superfluous directive "\generatelist related" we avoid the duplication of the topics list. Change-Id: I82de56cd80fa6b8719f85d3a01c07bac3d9d6c1a Reviewed-by: Martin Smith <martin.smith@digia.com>
| * Fix registration of the ambient light sensor in the generic pluginAlexander Volkov2015-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | It should be registered/unregistered depending on the availability of the default light sensor rather than the default accelerometer. Also mark the ambient light sensor as supported by the generic plugin in the documentation. Change-Id: Iff3828140b9549d994563fb736014091e568e867 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
| * Doc: Added \section1 before the auto-generated list of QML typesVenugopal Shivashankar2015-10-051-3/+5
| | | | | | | | | | | | | | | | | | To avoid a qdoc warning about the QML snippet structure, commented out the line with '...' in \qml \endqml block. Change-Id: I5f2124f374c441f8aac64322df251c70ba3cba3a Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Add compass support to the iio-sensor-proxy backendAlexander Volkov2015-10-121-1/+1
| | | | | | | | | | Change-Id: Ife5ca9224e4a1ac0b57a25aeb59e2f23e505082b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Add iio-sensor-proxy backendAlexander Volkov2015-10-051-2/+2
|/ | | | | | | | | | | | iio-sensor-proxy is a daemon that listens to sensors on IIO subsystem on Linux and provides access to the sensor readings over D-Bus. Currently it provides only orientation and ambient- light level. https://github.com/hadess/iio-sensor-proxy Change-Id: I035bda0b43a16552a9f2bd88a064e53d5f105451 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Merge remote-tracking branch 'origin/5.5' into devLiang Qi2015-06-291-1/+1
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I988cf7a720d4b17e875339e0ec75cad270fd6186
| * Remove official support of BlackBerry on 5.5 in QtSensorsAlex Blasche2015-06-171-1/+1
| | | | | | | | | | | | | | | | The relevant code base will be removed in Qt 5.6. This change prepares qtsensors repo for the removal of the "Qt for BlackBerry" link. Change-Id: I67229cc0778ed54723ae4c6bf9302a3d54d11034 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* | Remove BlackBerry as supported platform from QtSensorsAlex Blasche2015-06-183-31/+1
|/ | | | | | | | | [ChangeLog][QtSensors][Platform Specific Changes] Removed support for BlackBerry 10 from QtSensors. Change-Id: I56788caaa53797b7d4e23bb053c3ea8b460b1341 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Fix SensorFW link in docsAlex Blasche2015-03-241-1/+1
| | | | | | | | | Meego is long gone and Mer has taken over the continued development. In addition, Gitorious will shut down soon. Change-Id: Ib99738a6b9f013ff42ed46d2676de09c9528c9f6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into dev" into refs/staging/devSergio Ahumada2015-02-224-12/+12
|\
| * Add the QtCore/ library prefix in public headersSergio Ahumada2015-02-124-12/+12
| | | | | | | | | | Change-Id: I294756d2d98972db24bd7d7e2979a92d78c5e060 Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* | Update copyright headersJani Heikkinen2015-02-1798-628/+628
|/ | | | | | | | | 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>
* Doc: Applied title case in section1 titlesv5.4.0-rc1v5.4.0-beta1Nico Vertriest2014-10-095-9/+9
| | | | | | | Task-number: QTBUG-41250 Change-Id: I788332e3db66e8188fc7d64d1e31995f4b432932 Reviewed-by: Martin Smith <martin.smith@digia.com> Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Add \since tag to QtSensor classes.Alex Blasche2014-09-2619-18/+64
| | | | | | | | | | QtSensors was released first by Qt 5.1. A few whitespace changes go along as well to unify the formatting. Change-Id: I6f6e15c95c1a5f33731782e429e87cef68e96e3b Task-number: QTBUG-36775 Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4v5.4.0-alpha1Frederik Gladhorn2014-08-282-4/+15
|\ | | | | | | Change-Id: I7c2b192d4b3b4d745096058fd69921d855433f85
| * Add missing private headers warningv5.3.2Samuel Gaist2014-08-181-0/+11
| | | | | | | | | | | | Change-Id: I06883e0f2bb16999f13993b69b3701443912c5cc Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Do not warn when failing to load static plugins as sensor pluginsEike Ziller2014-08-151-3/+3
| | | | | | | | | | | | | | | | Since the list of static plugins can contain all kinds of plugins, failing there is expected. Change-Id: Ia5051c75691717b2e7279a68ea06f7697cbca053 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
| * Do not warn if no config file is found.Eike Ziller2014-08-151-1/+1
| | | | | | | | | | | | | | | | Since this is the default situation. Change-Id: I9ab76b8ef9402fe39df0aaa532b61bd43b520b71 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* | Update license headers and add new licensesJani Heikkinen2014-08-2477-1447/+831
| | | | | | | | | | | | | | | | | | | | | | - 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>
* | Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-08-122-6/+24
|\| | | | | | | | | | | | | | | Conflicts: src/plugins/sensors/sensorfw/sensorfwproximitysensor.cpp src/sensors/qcompass.cpp Change-Id: Idfcbbfe1757a4b827663453abc27f4026cd3d752
| * Add missing word to QCompass documentation.Mitch Curtis2014-07-181-1/+1
| | | | | | | | | | Change-Id: I46b9a3c20b5169843292057439c80c859ccc7e82 Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
| * Series of crash fixes from Mer, squashedLorn Potter2014-07-101-5/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1)tracing plugin loading 2)m_remoteSensorManager can be nullptr But it seems it does not solve incorrect initialization in the case manager interface is nullptr: init() for different sensors does not check initDone 3)split initSensor() to template function and function most of initSensor() does not depend on template param, so it is better to split it -> less code should be generated 4)do not use sensor manager if it is invalid 5)correct class members initialization order 6)assert sensor interface is not null From what I saw according to logic it should not happen so using Q_ASSERT for better maintainability 7)check local interface pointer in SensorfwTapSensor::start() Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com> Change-Id: I5c1bf3999ad2268c0dba9b3fe511d999c2e63fd9 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* | Clarify the QCompass coordinate systemPaul Olav Tvete2014-08-121-2/+3
| | | | | | | | | | | | | | | | | | The compass behaves like the other sensors: it is measured relative to the top of the device. Change-Id: Iddc4ad6a16f8b09d26a9d300155324bb8d378b76 Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* | Doc: Removing url variable from qdocconf file.Jerome Pasion2014-07-071-1/+0
| | | | | | | | | | | | | | -url inherited from the url variable set in qtbase/doc/global Change-Id: I0bab30bfd8e6f386aa94c2e28d13184fde9af63c Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Doc: Fix qmlclass selector used in documentation configTopi Reinio2014-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | A recent change (46959875) in qdoc raised QML types from subnodes to top-level nodes. This change modifies the documentation configuration file(s) accordingly. Change-Id: Iac59992a7ed9bf389502834d0bc694f3e64621b6 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Martin Smith <martin.smith@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-04-111-2/+2
|\| | | | | | | Change-Id: I07a6842afc72f56c82e82906429fa422f9a82de2
| * Simplify building of simulator based codeAlex Blasche2014-04-071-2/+2
| | | | | | | | | | | | | | | | | | There is no need for the CONFIG+=simulator logic anymore. qtHaveModule() is an automatic way of doing the same. Change-Id: Ibe87abb93e036a82fae3a752d9886c58ccebeec1 Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* | Merge remote-tracking branch 'origin/stable' into devIikka Eklund2014-04-011-0/+3
|\| | | | | | | Change-Id: I6b203a32b2f52255ae4e63cfb279e762458c0128
| * Make it obvious what platforms are supported by QtSensors.Alex Blasche2014-03-251-0/+3
| | | | | | | | | | | | | | | | Also, this brings the front page layout somewhat further in line with qtlocation & qtconnectivity API docs. Change-Id: I5e54ae388892dcb2a806c4775828abcdc81eb79d Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
* | Create a new sensor type for distance.Andrew Inwood2014-03-285-2/+339
|/ | | | | | | | | | | | | | | | | | | Create a new sensor type for distance. This sensor type supports new hardware sensors that can measure physical distance from the device, in centimeters. The API is designed to mimic the Android API for proximity (TYPE_PROXIMITY), so that if a given proximity sensor only supports a binary measurement (near vs far), then instead of reporting distance in cm, the QDistanceSensor will return the max range value to represent far, and a lesser value to represent close. Using this definition should simplify implementation. The main reason for not implementing this as a new property of QProximitySensor is that clients of QProximitySensor have made the assumption that they will receive the readingReady signal if and only if the reading has changed from near to far or vice versa. Adding a distance property will break that assumption, as distance has a higher degree of precision. Change-Id: Ia804948c78ff7391fc8b78df975cddcf861326dc Reviewed-by: Fabian Bumberger <fbumberger@rim.com> Reviewed-by: Bernd Weimer <bweimer@blackberry.com> Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
* Fix some typos in comments and documentationSergio Ahumada2014-03-041-1/+1
| | | | | Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Initial sensors backend for WinRT/Windows Phonev5.3.0-alpha1Andrew Knight2014-02-161-0/+36
| | | | | | | | | | This provides the sensor plugin with support for accelerometer, gyroscope, rotation sensor, orientation sensor, compass, and ambient light sensor. Change-Id: Ic91a6cef98e4011858552c5cd6407b494579fe17 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>