summaryrefslogtreecommitdiff
path: root/src/plugins/position/positionpoll
Commit message (Collapse)AuthorAgeFilesLines
* QtPositioning: refactor QGeoPositionInfoSourceFactoryIvan Solovev2021-01-222-12/+15
| | | | | | | | | | [ChangeLog][QtPositioning][Important Behavior Changes] Remove QGeoPositionInfoSourceFactoryV2 and update QGeoPositionInfoSourceFactory to support source configuration parameters. Update plugin ID string. Task-number: QTBUG-90491 Change-Id: I1d3dc556d73e273e2e364f77e2decaad11810547 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: port to cmakeIvan Solovev2021-01-201-0/+19
| | | | | | | | | | Switching QtPositioning, its tests and examples to cmake. QtLocation is not covered by this patch. Task-number: QTBUG-89854 Change-Id: Ic971f7fd4c576eac9b662641aae77d68c062712d Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add missing overrideAlexander Volkov2020-06-291-3/+3
| | | | | Change-Id: Ieae01bc4669cdd503f97399c622989795a0ad734 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Avoid initializing QFlags with 0 or nullptrFriedemann Kleint2019-11-251-1/+1
| | | | | | | It is being deprecated. Change-Id: I33a411f9b2fc18feabd3cc8d7f3a44b353e25639 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Port from QMutex::Recursive to QRecursiveMutexMarc Mutz2019-08-031-12/+14
| | | | | | | | | Also port from QMutexLocker to std::lock_guard, as the former will not support QRecursiveMutex going forward, and port the remaining ctor-init-list to NSDMI to avoid additional churn going forward. Change-Id: I0645f4b2ffad455c41c12b94af56de800c6d1773 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
* Replace Q_DECL_OVERRIDE with overrideKevin Funk2018-02-051-11/+11
| | | | | Change-Id: Iaa670de181255ea570fcf7bcbe465987ef7fc2fc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-03-081-4/+5
|\ | | | | | | Change-Id: I18bb1c341e7d87cd1d649f2c3fc9c50141c6a1a9
| * consistently put {qt,qml}_{module,plugin} at the end of project filesOswald Buddenhagen2016-02-251-4/+5
| | | | | | | | | | | | | | | | this fixes static builds by ensuring that all dependencies are exported. Task-number: QTBUG-51071 Change-Id: Ia0fcc7b40cbd80bde8edddcf8253b3136ed851ff Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Updated license headersAntti Kokko2016-01-204-56/+80
|/ | | | | | | | | | 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: Iaee1a5fd53291752a1891710ee375ca32778b142 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Skip loading real plugins in testsLaszlo Agocs2015-09-091-1/+2
| | | | | | | | | | Introduce a new plugin metadata field "Testable" that can be used to indicate that using the plugin in question in test runs (e.g. in a CI environment) is dangerous. We can then check for QT_QTESTLIB_RUNNING and skip the plugin in question. Change-Id: Iabe9f1600d7274e0e9224dc49d02aa2e5d3cabd6 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Qualify positioning headers when including them from elsewhereUlf Hermann2015-03-173-6/+6
| | | | | | | | | | | | | | | There are some corner cases in which you cannot rely on qmake to generate module-specific include directives for the compiler when building different parts of the same module. The rules on this are complicated and it's easy to make mistakes. Qualified includes are also locatable without module-specific include directives. It's generally a good idea to qualify includes from the same module but a different library in order not to rely on qmake's magic too much. Change-Id: I8703116c7c5c898394d7f393630cbfa655174605 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Fix build systemUlf Hermann2015-03-131-2/+0
| | | | | | | | | | | | | | With the previous setup the location module wasn't properly set up when qmake was run for the first time with '-r' and no previous version of QtLocation installed. This caused the building of some plugins to be skipped later. It also just looks so much better with the dependencies and subdirs properly grouped and without the ugly $$QT.location.include things. Task-number: QTBUG-44983 Change-Id: I0396df078b755a1316ba896ece77620184286a86 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
* Update contact URL in all license headers to qt.ioAlex Blasche2015-02-184-4/+4
| | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Update BSD and LGPLv2.1 licensesAlex Blasche2015-02-184-12/+12
| | | | | | | | - Removes subsidiary extension from Qt Company - Replaces remaining occurrences of Digia in BSD and LGPLv2.1 Change-Id: I7467a6744af7d1c3aef3c29118f219399162a18c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Add Q_DECL_OVERRIDE where missingAlex Blasche2015-02-171-2/+2
| | | | | | | | | | | | | | | | clang 3.6 and later print a warning for such cases. This patch fixes all override warnings caused by the content of the qtlocation itself. The remaining cases are triggered by headers outside of the qtlocation repo. This patch only fixes cases which clang on Linux can reach. It is possible that some of the platform specific plugins still have some ovveride related cases. Change-Id: I9f93062511d38cba4449b7fc70e65c93d4251a8b Reviewed-by: Michal Klocek <michal.klocek@theqtcompany.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update all LGPLv2.1 license headers in source to latest versionAlex Blasche2015-02-154-16/+16
| | | | | | | | | | | This affects all QtPositioning related code and the test code in the entire repository. The Qt Company is set as new copyright owner and the copyright year is bumped to 2015. Change-Id: Iee0e990680683c20f5920e49cc1063ea9349e2cd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Add center() function to QGeoShape.Aaron McCarthy2014-12-041-20/+1
| | | | | | | | | | | | | | It is frequently useful to calculate the geometric center of a shape. Both QGeoCircle and QGeoRectangle already define center() functions, however, the application developer must cast each QGeoShape into either a QGeoCirlce or QGeoRectangle before calling. Providing QGeoShape::center() allows application code to be simplified. Existing QGeoCircle::center() and QGeoRectangle::center() functions are kept for compatibility. Change-Id: I92b727ab5e713f70174588a27040446c992ae14e Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Update license headers and add new license filesAntti Kokko2014-08-244-76/+44
| | | | | | | | | - Renamed LICENSE.LGPL to LICENSE.LGPLv21 - Added LICENSE.LGPLv3 & LICENSE.GPLv2 - Removed LICENSE.GPL Change-Id: Iedee2507ab1bd46788409a98505d7be510253110 Reviewed-by: Jani Heikkinen <jani.heikkinen@digia.com>
* Fix the names of the plugin factory classes for static plugin loadingAlex Blasche2014-06-253-5/+5
| | | | | | | | | | | | | | | This breaks positioning on IOS and any other statically build Qt versions. At the same time rename the positionpoll factory class to a more appropriate name to avoid confusion. [ChangeLog][QtPositioning] [iOS] Fixed link error of positioncl and positionpoll plug-in. Task-number: QTBUG-39843 Change-Id: Ic3d5687571cd9e7a531f9958675b895cf22ac13e Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
* Add PLUGIN_CLASS_NAME declarations to plug-in projectsAlex Blasche2014-04-231-0/+1
| | | | | | | | | | This is required for automatic static linking and deployment. The test plug-ins are excluded from the automation based on the assumption that they are usually not needed. Change-Id: I7658c624101e3273767c1c10d77a87c89d5801ba Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Position plug-ins don't need QtGuiOswald Buddenhagen2014-02-281-1/+1
| | | | | | | Task-number: QTBUG-36893 Change-Id: I54f71f3369e82edfadb679cb5ed27e3dd0a78c0e Reviewed-by: Alex Blasche <alexander.blasche@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
* Merge remote-tracking branch 'origin/stable' into devFrederik Gladhorn2014-01-171-1/+1
|\ | | | | | | | | | | | | | | Conflicts: .qmake.conf src/plugins/position/geoclue/qgeopositioninfosourcefactory_geoclue.cpp Change-Id: Iae3f3c00d46c903e2fa6c1dd49876839362f8001
| * Remove byte order marker which causes problems with older compilersAlex Blasche2014-01-151-1/+1
| | | | | | | | | | | | Task-number: QTBUG-36187 Change-Id: Ie20ec6e802f44a6fa6757b914289736c4421138b Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* | Positioning backend for AndroidAlex Blasche2014-01-032-4/+4
|/ | | | | | | | | | | | | | | Currently it only supports positioning data. Satellite information and potentially geo fencing will follow later on. Task-number: QTBUG-34102 [ChangeLog][QtPositioning][QGeoPositionInfoSource] Android backend added. Android devices can retrieve their current position. Network- and Satellite-based providers are supported. Change-Id: I94ec0d177aaef930f9a3f2a9f6af6fa3c904ec92 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Add NoError to the various Positioning Source classes.Alex Blasche2013-10-301-1/+3
| | | | | | | This became apparent while implementing the BB10 and Android backends. Change-Id: I54e2c0fce63021b9fad0c544777792aed726608b Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* Improve area monitoring API.Alex Blasche2013-09-174-65/+464
| | | | | | | | | | | | | | 1.) QGeoAreaMonitor renamed to QGeoAreaMonitorSource 2.) Add new QGeoAreaMonitorInfo data type encpsulating individual areas to be monitored 3.) Port positionpoll plug-in to new features 4.) Make positionpoll monitor thread safe 4.) Extend and fix the QGeoAreaMonitor unit test 5.) Fix documentation. Task-number: QTBUG-31711 Change-Id: Icfc982de4753d2f43cb4d15c234eb7b7c039a0c4 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Split QtLocation into QtPositioning and QtLocationAlex Blasche2013-09-025-5/+5
| | | | | | | | | | | | QtPositioning is not dependent on any gui component and mostly covers everything around the retrieval of position information. QtLocation covers place, map and navigation APIs. Several documentation issues were fixed during the process. Change-Id: I98e2a53065549a2fc43f93a75b4f65b5bc884c92 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* QGeoAreaMonitor becomes loadable via plugins.Alex Blasche2013-08-226-0/+363
The polling-based default implementation is separated out into its own plugin. Task-number: QTBUG-31960 Change-Id: Ife25f6a83dd51f32fcd9ee3bfde1ca51291c78e4 Reviewed-by: Alex Blasche <alexander.blasche@digia.com>