summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* improve the sensors docs a bitLorn Potter2012-02-121-4/+4
| | | | | Change-Id: I2774c8ecc5ae711b6444d0adff0697c6d278dcad Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* remove errant debug output redirection.Lorn Potter2012-02-101-45/+1
| | | | | Change-Id: I1b3a78395a689ea07e3b93293cac7a72d1f019af Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* It's not safe to delete QFactoryLoaderLincoln Ramsay2012-02-081-1/+1
| | | | | | | | | | If we delete QFactoryLoader and there's a QSensor[Backend] still being held, we will explode. So either we do a refcount-type check and fatal or we just don't delete QFactoryLoader. Since the process is about to end anyway, don't delete QFactoryLoader. Change-Id: Ie21b28075f4f720bb842e32296b68ec615ed1d6a Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* fix hover and cover since prox driver output changed.Lorn Potter2012-02-085-29/+50
| | | | | Change-Id: Ic620a9012472c81f7f1bb15e450638745809effa Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* make emulator gesture plugin working in emulatorLorn Potter2012-02-074-6/+4
| | | | | Change-Id: I7cbc00ad75cac88a815eb43c937a10ec01d7023f Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* rename this as 'shake' collides and sensorgesturemanager ignores.Lorn Potter2012-02-021-1/+1
| | | | | | | | fixes sensorgesture simulator plugin. Change-Id: I5a880dad57ebe5e5f190913ea9c4a8745c09bd08 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* try harder to make sure gesture dont fire too easilyLorn Potter2012-02-0114-239/+371
| | | | | | | | | some gestures will fire when trying other gestures. Make sure they don't collide and provide false positives as much. Change-Id: I4abd7d9ee876b77a211ae1b46bcc56f4fdc64ec0 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-30131-131/+131
| | | | | | | | | | | 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>
* Ensure the generic sensors pass on alwaysOnLincoln Ramsay2012-01-233-0/+3
| | | | | | | | Otherwise the sensors won't stay on when the screen turns off Change-Id: I9c8089495fa4247b4d7d2a9eefb269898757b911 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-23131-131/+131
| | | | | | | | 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>
* Remove friend class tst_Sesnsors2QMLAPIWolfgang Beck2012-01-192-4/+10
| | | | | | Change-Id: I24772c90fc20cd02d6b442b5e80bddc226a736ee Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* support for IR proximity sensor in the simulatorLincoln Ramsay2012-01-198-0/+174
| | | | | | | | Also requires a change to the simulator. Change-Id: I5086d3e49773975fc258f3f4481e643dbff33b15 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Don't fire every second... only when data changes.Lincoln Ramsay2012-01-186-12/+6
| | | | | | Change-Id: I7a76a32eb2f23cbec5f097143aead4694a5cef7c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* move simulator connection to a threadZsolt Simon2012-01-182-17/+81
| | | | | | Change-Id: Ice70c7f35315f50e82270961a38d6b130651f76d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Document the alwaysOnChanged signalLincoln Ramsay2012-01-161-0/+5
| | | | | | Change-Id: I2e545905a759e9fd9aa4751e0a9b21302d3e8178 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* improve whip sensor gestureLorn Potter2012-01-162-13/+13
| | | | | | Change-Id: I375815c5a0b42abe957170d85f08c394c19fdd6b Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* improve twist sensor gestureLorn Potter2012-01-162-6/+15
| | | | | | Change-Id: I0ce64843ad6f012862e8da8e08d2e7bb9cae0526 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* alwaysOn for QtSensors 5.0 sensorsLincoln Ramsay2012-01-1310-85/+211
| | | | | | | | | refactor the enabled and alwaysOn properties into a common base class use appropriate namespacing to avoid collisions with the QtMobility.sensors elements Change-Id: I6ac9f040d226bb648ede5459df2c26b82feff587 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* alwaysOn for legacy QML elementsLincoln Ramsay2012-01-133-26/+70
| | | | | | | | | 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>
* Remove warnings and re-enable all gesture plugins.Lincoln Ramsay2012-01-134-4/+3
| | | | | | | | | | Enable these plugins for simulator builds or it becomes much harder to get notified of problems. Their presence does not cause a problem. Fix up the warnings so we can build with -Werror again. Change-Id: I2e9f6c2bd5f6156abdc4fa719c3a53962a9328d2 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add new sensor gesturesLorn Potter2012-01-1222-6/+2103
| | | | | | Change-Id: Ided28e5d26af383b019d84ebb128c8ec6d6e3d34 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Implement an API for alwaysOn.Lincoln Ramsay2012-01-113-0/+24
| | | | | | Change-Id: If530fed02979ad9c4608f317b718ee449bb25ddc 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-05109-109/+109
| | | | | | Change-Id: I7fdedc329cf80f84f1f6e0c6c9da3f7d1ebcd70d Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* compile with strict warningsLincoln Ramsay2011-12-191-5/+5
| | | | | | | | | | | | Even though the code was converting between one enum and the other, it was continuing to use the old enum value, causing a warning. Map default: to Undefined so this always works (and never uses an uninitialized variable). Change-Id: Ic7da7efebccfb2733498251f67d4d25a56637f44 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Oliver Wolff <oliver.wolff@nokia.com>
* QIRProximity... classes should be documentedLincoln Ramsay2011-12-191-9/+9
| | | | | | | | | When pulled in, these files had /* instead of /*! markers which qdoc ignores. Change-Id: I346bd0d472ca37ffe460b661edaca522388b46b3 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Add missing QT header macros.Lincoln Ramsay2011-12-1934-1/+82
| | | | | | | | | | | | QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_END_NAMESPACE QT_END_HEADER Change-Id: Iac83c311b43b2bba4fd9749027b3cdc91263c5e5 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Remove ambientlightsensor dependency from qsensordata_simulatorOliver Wolff2011-12-193-3/+33
| | | | | | Change-Id: I5c2dca9787d1ec176dfb20553920a0347064003f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add simulator plugin for sensorgestures.Lorn Potter2011-12-088-1/+536
| | | | | | Change-Id: I7ec82ef7ee7795f6d8528f9ebd9d70b80435b7ea Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Don't qFatal!Lincoln Ramsay2011-12-071-2/+4
| | | | | | | | | Just warn and keep running. No sensor data will come but that's much better than killing the process that was running. Change-Id: I7cfe999450b3abf429a06b71448b63cc2626615c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add z and y axis accumulation for shake as well.Lorn Potter2011-12-062-26/+33
| | | | | | Change-Id: If20750a1772da7fc7dc3665f68950c5c0aa6d30c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Clean up the sensor gestures unit test.Lincoln Ramsay2011-11-292-19/+12
| | | | | | | | | | QTRY_ instead of custom waiting functions. Do the thread test properly. Since it can't possibly work anyway, remove the qt_metacast() function. Change-Id: I139ab29bc0785bee49a22fa20d10f2970cbac367 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Fixed QtSensors namespace compilation.Toby Tomkins2011-11-225-5/+13
| | | | | | Change-Id: If31a32c903034585ef8211fa17abb6747e64951f Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Document QSensorPluginInterface::keys()Lincoln Ramsay2011-11-221-7/+7
| | | | | | Change-Id: I4d681d32c18dc9e0caca7d2bc6632352495b7dcf Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* add documentation for new functions related to factoryloaderLorn Potter2011-11-223-1/+24
| | | | | | Change-Id: I9ccdf7e9e15c007879b90877ef54832d01b3c3cd Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* QFactoryLoader is used by singletonsLincoln Ramsay2011-11-184-16/+14
| | | | | | | | | Instead of using Q_GLOBAL_STATIC, just create and delete the QFactoryLoader instances in the singleton objects. Change-Id: I91ba017b530f0c48a74dc5c0a69fbc8fc20ab250 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* compileLincoln Ramsay2011-11-151-1/+1
| | | | | | | | | | The simulator plugin did not compile under OBS. While looking for other plugins that may be affected a junk file was discovered in the qsensor unit test. Change-Id: Ic28d703d8f80214739579b74c11e7cef9b1b4148 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* remove qmobilitypluginsearch and use the QFactoryLoader instead.Lorn Potter2011-11-1412-216/+67
| | | | | | Change-Id: Ifdd2031d309a5ac4cbeedc5d7cdb6ba9cbb845c3 Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Sanity-Review: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Add QtSensorGesture QML APIWolfgang Beck2011-11-104-2/+380
| | | | | | Change-Id: Iaa0a875941316c341d69f473eeba3be4a87ec736 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make one public way to control recognizerLorn Potter2011-11-092-5/+5
| | | | | | | | | | | Since pointers to the recognizers can be gotten from the manager, the methods to control the recognizers that have reference counting should be the public accessable ones. Make the virtual methods protected. Change-Id: I176315272ded9d5917133ec7cd329c537445b190 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com> Reviewed-by: Alex <alex.blasche@nokia.com>
* Make TiltSensor 100% code coverageWolfgang Beck2011-11-091-11/+0
| | | | | | Change-Id: If769dc2f6b8652f3b1cbbd532cd11498a65c2317 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Wolfgang Beck <wolfgang.beck@nokia.com>
* add more code coverage.Lorn Potter2011-11-081-12/+13
| | | | | | | | | qt_metacast was not tested. add Q_ASSERT instead of conditional checking for object. Change-Id: Ib8eaa0583d0f8f71b144941a34b1fe9109e85b7a Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add invalidIds, remove redundant isValid, rename availableIds to validIdsLorn Potter2011-11-033-9/+11
| | | | | | Change-Id: I9677535dde72e771b943fa1b0522689c34336824 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make sure recognizers do not need pluginLorn Potter2011-11-031-0/+5
| | | | | | Change-Id: Id3deaca92019c964d0d093cc2b04bf1eb043fbbf Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* make sure newSensorGestureAvailable gets signaledLorn Potter2011-11-033-3/+6
| | | | | | | | signaling needs to begin in the backend singleton Change-Id: I63453a919a0b5c9e1f093c6269bdfc171a592af9 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Fixed sensors' exports on WindowsOliver Wolff2011-11-011-1/+1
| | | | | | | Change-Id: I27a08cd717e5fc64232dc7b1dccf4fcfee4fc16c Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alex <alex.blasche@nokia.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* add QSensorGestures API. Long live QSensorGestures!Lorn Potter2011-11-0120-2/+1766
| | | | | | Change-Id: Iada4e8888aad8b7b2180cc0bfb8576a766f75b24 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
* Do not unload plugins.Lincoln Ramsay2011-10-311-5/+0
| | | | | | | | | | | It turns out that unloading Qt plugins breaks as soon as you get dependencies on your code. This is particularly obvious when you use Q_GLOBAL_STATIC because the destructors fire in an arbitrary order. Change-Id: If4fc9a0ca6a2c914c34559b7af84dc0fdb0e76e7 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* Get the simulator backend goingLincoln Ramsay2011-10-2810-157/+131
| | | | | | Change-Id: Idbb4ba7b97be38f74f3a74e5d54c15209d5a788a Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Zsolt Simon <zsolt.simon@nokia.com>
* Revert temporary Q_SENSORS_EXPORT_TEMPalex2011-10-2118-51/+51
| | | | | | | | Q_SENSORS_EXPORT_TEMP was used while the normal macro was removed from qglobal.h. Change-Id: I55bf788e9beab5b060b9e24ee2a815ce3d9bc2a4 Reviewed-by: Alex <alex.blasche@nokia.com>
* Remove obsolete \since statements.alex2011-10-2013-13/+0
| | | | | Change-Id: I7c72145f911238966b92f1846072bf1cee72a631 Reviewed-by: Alex <alex.blasche@nokia.com>