summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/blackberry/bbsensorbackend.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove BlackBerry PlayBook support.Rafael Roquetto2015-02-181-7/+0
| | | | | Change-Id: Id1247f797873395c38251ba098bfa848a06f10ee Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
* Update copyright headersJani Heikkinen2015-02-171-6/+6
| | | | | | | | | 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 license headers and add new licensesJani Heikkinen2014-08-241-18/+10
| | | | | | | | | | | - 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>
* Fix some typos in comments and documentationSergio Ahumada2014-03-041-2/+2
| | | | | Change-Id: I8541601c0bfe2b7c80e88b4617e8215b266fb0bd Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* BlackBerry: Ensured that proper sensor.h file is usedBernd Weimer2013-09-191-2/+2
| | | | | Change-Id: I746cbf971b88cdffcfc5d675d27d0dda5bac95ad Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
* Use real properties for QSensor::bufferSize & coThomas McGuire2013-02-081-0/+2
| | | | | | | | | | | | | | | 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 axes remapping featureThomas McGuire2013-01-231-1/+1
| | | | | | | | | | | 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>
* QAccelerometer: Add AccelerationMode propertyThomas McGuire2013-01-231-0/+3
| | | | | | | | | | | 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>
* Removal last references to QtMobilityThomas McGuire2012-11-021-1/+1
| | | | | | | Change-Id: Ia92de27ec25451b64a2e584507ca44485b94745a Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com> Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Blackberry: Avoid expensive close() and open() just to get informationThomas McGuire2012-10-041-1/+2
| | | | | | | | | Instead, open the device to get information, but then just pause it until start() is called. Change-Id: I3002bee07807d3956e74e8fd82425b16cdb61001 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-241-23/+23
| | | | | | | | | | 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>
* Blackberry: Implement axes remapping for all axes-based sensorsThomas McGuire2012-07-241-1/+10
| | | | | | | The remapping code was moved to BbSensorBackend. Change-Id: I6ede875594a2aaa3745b7deb4aa0ed64c2d9b855 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Blackberry: Remove QtGui dependencyThomas McGuire2012-07-241-2/+6
| | | | | | | | | | | | | In the Blackberry backend, we can't depend on QtGui and especially not on the Blackberry QPA plugin, as Cascades uses QCoreApplication, not QGuiApplication. All QtGui functions are replaced with a new GuiHelper class, that internally uses BPS. Change-Id: Ia508e8b397050676c68612340d33cdbf57041076 Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add QSensor::isFeatureSupported()Thomas McGuire2012-07-231-0/+1
| | | | | | | | | | | | 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>
* Blackberry: Add Q_DECL_OVERRIDE keywordsThomas McGuire2012-07-021-2/+2
| | | | | | | | Change-Id: Iae2c29ac040d32623ec49976cf4df0a7a492d28b Reviewed-by: Adam Parco <aparco@rim.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Prefer to use the BBNDK sensor.h if presentThomas McGuire2012-05-111-0/+10
| | | | | Change-Id: Ife482d8acb5a533f61e009bf65ec37215a7af595 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Pause/resume sensor on application (de)activationKevin Ottens2012-05-031-0/+3
| | | | | | | | | | | | | | Each sensor now installs itself as an event filter of the application object waiting to (de)activation events. When an ApplicationDeactivate event arrives sensors are paused, they get resumed on ApplicationActivate. This behavior is inhibited by the alwaysOn property. Change-Id: I559239f279d9412d8836efad08e6688019504b16 Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Blackberry backend honors alwaysOn propertyKevin Ottens2012-04-271-0/+1
| | | | | | | | | | | Make sure the DCMD_SENSOR_BKGRND command is sent to the sensor when we call start(). Also ensure we send again the command when the property is updated. Change-Id: Ia37a96ba4dfc6fc1bdecf54ad2b730412939b32a Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Tennessee Carmel-Veilleux <tcarmelveilleux@rim.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add blackberry backendThomas McGuire2012-04-101-0/+122
sensor.h is a temporary copy until this file is available in the Blackberry NDK. Change-Id: I6a47ee4c8ccc0cc3603ea2df3c9fd61259e8ffac Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>