summaryrefslogtreecommitdiff
path: root/src/plugins/position
Commit message (Collapse)AuthorAgeFilesLines
* Android: fix resolving null locationManagerVyacheslav Koscheev2017-06-291-0/+4
| | | | | | Change-Id: I5be4c3af8cedd6755296bc9b445562549784c050 Reviewed-by: BogDan Vatra <bogdan@kdab.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* gypsy: fix initialization order warningShawn Rutledge2017-05-121-1/+1
| | | | | | | | | | | | | | | | | | | Warnings are fatal nowadays. In file included from qtlocation/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp:40:0: qtlocation/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy_p.h: In constructor ‘QGeoSatelliteInfoSourceGypsy::QGeoSatelliteInfoSourceGypsy(QObject*)’: qtlocation/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy_p.h:136:12: error: ‘QGeoSatelliteInfoSourceGypsy::m_requestOngoing’ will be initialized after [-Werror=reorder] bool m_requestOngoing; ^~~~~~~~~~~~~~~~ qtlocation/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy_p.h:134:14: error: ‘QTimer QGeoSatelliteInfoSourceGypsy::m_requestTimer’ [-Werror=reorder] QTimer m_requestTimer; ^~~~~~~~~~~~~~ qtlocation/src/plugins/position/gypsy/qgeosatelliteinfosource_gypsy.cpp:143:1: error: when initialized here [-Werror=reorder] QGeoSatelliteInfoSourceGypsy::QGeoSatelliteInfoSourceGypsy(QObject *parent) : QGeoSatelliteInfoSource(parent), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I69b7923ce97a66baaee4e24b075e4d942e3e15f5 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Fix build for -no-feature-temporaryfileStephan Binner2017-04-251-1/+1
| | | | | Change-Id: Ic269e15b8044e319ff095cc758f20ebc02dda714 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* winrt: Add error handling for GeoPositionInfoSource creationOliver Wolff2017-04-243-8/+26
| | | | | | | | | | | If something goes wrong while creating the source, the factory should return a nullptr (same as in QGeoPositionInfoSourceFactoryGipsy). One such error might be, that access to location is denied on first application start. Task-number: QTBUG-60299 Change-Id: I50e87895a74bcff856aa29a195762a83466bc5b9 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* CLLocationManager - allow background updatesTimur Pocheptsov2017-03-171-0/+16
| | | | | | | | | | | | To allow background updates, on iOS we have to enable this capability in the app's plist + also set a property on CLLocationManager. [ChangeLog] Allow background updates if such capability is present in infoDict Task-number: QTBUG-52014 Task-number: QTBUG-59275 Change-Id: Ifadfbf9a35919912895b3515348d55afa97173c3 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Set UTC flag for Android position timestampsAlex Blasche2017-03-141-1/+1
| | | | | | | | | | The platform provides the data in UTC time. However the default QDateTime::fromMSecsSinceEpoch creates the timestamp in LocalTime by default. The patch corrects the Timespec for the time stamp. Task-number: QTBUG-59158 Change-Id: Iaeceb0de2273b40a1815959b514d702670180aba Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Guard against unprotected javaVM pointer usageAlex Blasche2017-03-091-1/+1
| | | | | | Task-number: QTBUG-59010 Change-Id: Iea5f160718fd668665d4870fe1b82d608cf13d8c Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Fix -Wreorder warningPaolo Angelelli2017-03-072-4/+4
| | | | | Change-Id: I5fcc43f3164e0eb83d1504e892d0ede9d54fe3ae Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Remove moc_* inclusions from source filesPaolo Angelelli2017-02-144-6/+0
| | | | | | Change-Id: I7385348d7b6ec22fa92ed1be65f89e262c38b5c0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Merge remote-tracking branch 'origin/5.8' into 5.9Liang Qi2017-02-144-4/+4
|\ | | | | | | | | | | | | Conflicts: src/plugins/geoservices/nokia/qgeotiledmappingmanagerengine_nokia.cpp Change-Id: I2428d360c07b55ec5ee61f81c6f97b3d7b20f363
| * Set parent to timers in position pluginsVyacheslav Koscheev2017-02-074-4/+4
| | | | | | | | | | | | | | | | | | QTimer can be started and stoped only from owner thread. So, if we'll do moveToThread for parent object, then we need QTimer to have a parent to change its owner thread too. Change-Id: Iac57d42b6e72118f31d93f15662403f681925f88 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Remove support for WinRT 8.1 and Windows Phone 8.1Maurice Kalinowski2017-01-191-8/+3
| | | | | | | | | | | | Task-number: QTBUG-57288 Change-Id: I8ae2e044d6e4db0664cc81e216a5db505530687b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Merge remote-tracking branch 'gerrit/5.8' into devAlex Blasche2016-12-051-2/+19
|\ \ | |/ | | | | | | | | | | | | | | | | | | Conflicts: src/imports/location/qdeclarativegeomap.cpp src/location/maps/maps.pri src/location/maps/qgeomap_p_p.h src/plugins/geoservices/nokia/qgeocodereply_nokia.cpp src/plugins/geoservices/osm/qgeoroutereplyosm.cpp Change-Id: I18d31cff9233648178fe3e2636ce294026dfaeb7
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-281-2/+19
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/plugins/position/winrt/qgeopositioninfosource_winrt.cpp Change-Id: I44fd4bd47f97acd7ca5a0bdb235a701a59497528
| | * Merge remote-tracking branch 'origin/5.6' into 5.75.7Liang Qi2016-11-241-2/+19
| | |\ | | | | | | | | | | | | Change-Id: I49b1b3fc94819b5a7f2fd1ab2481a1d8ea41586b
| | | * winrt: Use backend provided timestampsMaurice Kalinowski2016-11-041-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IGeoCoordinate does provide a timestamp in system time. This value should be used to provide a timestamp to be forwarded to the user. In case the information provided is invalid, an invalid QDateTime is used for the position update. Task-number: QTBUG-56623 Change-Id: If476b41e5fd183edf33742d8e4401236a32c6037 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | | | Merge remote-tracking branch 'gerrit/5.8' into devAlex Blasche2016-11-038-26/+32
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I3598004c8d947f42c499137c7767cfcb91643082
| * | | Fix the direction of arguments in signalsThiago Macieira2016-11-022-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signal arguments are "out", not "in". There was a bug in qdbusxml2cpp that required the wrong one (in), but it's been corrected. Adapt so qdbusxml2cpp doesn't print annoying warnings. Change-Id: Ic46ff326a6ba46bc877cfffd148321381b15ae19 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | | Merge remote-tracking branch 'gerrit/5.7' into 5.8Alex Blasche2016-11-022-15/+19
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | Conflicts: tests/auto/declarative_ui/BLACKLIST Change-Id: I0f6c9228c899c4d1d55fffc596c661ee0f6c2b66
| | * | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-10-012-15/+19
| | |\ \ | | | |/ | | | | | | | | Change-Id: I0880e4aa40fbf9fe0bb639f7fd77a52044e91a6e
| | | * Fix error status for QGeoPositionInfoSourceAndroidVyacheslav Koscheev2016-09-302-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-54844 Change-Id: I8abdbb47c883099e7749c57e5010be1aa999e373 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | | Use QDateTime::currentMSecsSinceEpoch() instead of currentDateTimeThiago Macieira2016-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | More efficient if all you want is the number of seconds. Change-Id: Ib57b52598e2f452985e9fffd145a37062ee3e001 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | | Convert qtlocation to the new configure systemLars Knoll2016-10-282-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And clean up the code detecting gypsy and the WinRT positioning API. Change-Id: Ic561d565d6fc733703ef6c0dc164e737e0b3d4fd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
| * | | winrt: Fixup for 79697d9fb63a109eb8e5098c90fd287815deb12bv5.8.0-beta1Maurice Kalinowski2016-10-241-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-56340 Change-Id: I9a3876d413d0d93d9ad74332677ff0244fb2e00a Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
| * | | winrt: Code cleanupMaurice Kalinowski2016-10-241-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ibc2db9fa2e662a8be215556b0db056119340f593 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | | | Merge remote-tracking branch 'origin/5.8' into devLiang Qi2016-10-073-1/+41
|\ \ \ \ | |/ / / | | | | | | | | Change-Id: I611a0246be70787c541a24a136e332314c3ff3a7
| * | | winrt: Add direction to position informationMaurice Kalinowski2016-10-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QGeoPositionInfo::Direction matches to IGeoCoordinate::heading, both in degrees to true north. Task-number: QTBUG-56340 Change-Id: I9f3a5a207dd781d367096e8c04a2e3b09e64ea05 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
| * | | Add capability to ask for Location permission at runtimeAlex Blasche2016-09-212-1/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is required since Android v23+. Task-number: QTBUG-55988 Change-Id: I41777cfbb6fde38dc0f8045c9320f420bb0b43a2 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
* | | | Fix dynamic linking on iOS and tvOSJake Petroules2016-08-231-3/+1
|/ / / | | | | | | | | | | | | | | | | | | The set of dependent frameworks is identical on macOS, iOS, and tvOS. Change-Id: I73dd2010b8390b5755774441b363424ea86d09de Reviewed-by: Lorn Potter <lorn.potter@canonical.com>
* | | Merge remote-tracking branch 'gerrit/5.7' into devAlex Blasche2016-07-295-8/+12
|\ \ \ | |/ / | | | | | | Change-Id: I6a1a72547077c628429ee9a0781070ad3ae787f1
| * | Merge remote-tracking branch 'origin/5.6' into 5.7Michal Klocek2016-07-284-4/+9
| |\ \ | | |/ | | | | | | Change-Id: I37542960aa091ab2074914a2cebb8c5114237a26
| | * Make sure JNI_OnLoad is not called more than onceBogDan Vatra2016-07-201-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since Android 5.0 Google introduce a nasty bug[1] which calls JNI_OnLoad more than once. Basically every time when a library is loaded JNI_OnLoad is called if found, but it calls *again* JNI_OnLoad of its .so dependencies! [1] Workaround https://code.google.com/p/android/issues/detail?id=215069 Change-Id: I0401553f80c10b14b837a96dc979d0e7341396ea Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| | * Android: Reduce the minimum update interval to 50msAlex Blasche2016-06-243-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | The previous 1000ms were to high for satellite and position updates. Task-number: QTBUG-54026 Change-Id: I35f6452cfb714a8d69d55dd126067de8d2c3b30c Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * | This module doesn't need an Activity to work, a Context object is enoughBogDan Vatra2016-07-261-3/+2
| | | | | | | | | | | | | | | | | | Task-number: QTBUG-54506 Change-Id: Ic1fd0d3bc63e9fcdf24a29b26a3be3746bbf45ab Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * | Remove support for MSVC < 2010Thiago Macieira2016-06-211-1/+1
| | | | | | | | | | | | | | | | | | | | | We don't support MSVC < 2013 in Qt 5.7 anyway. Change-Id: Ib57b52598e2f452985e9fffd1459e5d17283a6b3 Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
* | | Fix warnings in qgeopositioninfosource.hMichal Klocek2016-07-221-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Fix inconsistent-missing-override warnings which become errors after marking module warning_clean Change-Id: I000dc5d4095e3f8b428600a90509c50a606ed846 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | | Fix namespaced build of QtMaurice Kalinowski2016-06-101-2/+2
| | | | | | | | | | | | | | | Change-Id: I38dda74ec97a0172c1127d7c1758d100aeb849d1 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | | Add config test for winrt pluginMaurice Kalinowski2016-06-101-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | The WinRT positioning plugin can also be compiled for the desktop. This support has been experimental and is now enabled by default via checking existence of the API on the build machine. [ChangeLog][Positioning][Windows] Enable WinRT backend for MSVC2013/2015 Task-number: QTBUG-53925 Change-Id: I674b14df2eee551b21e13e2f5a28de97ed5e4eeb Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
* | winrt: Enable compilation with desktop mkspecMaurice Kalinowski2016-05-182-1/+14
| | | | | | | | | | | | | | | | | | | | | | The GeoPosition API is functional for desktop builds as well, running on Windows 8 and later. While the plugin builds for desktop, do not enable its compilation by default as support is experimental. Change-Id: I5ccd3f857ff3f0cfd1e220875c39883b89f5f2ce Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Simon Hausmann2016-05-181-1/+1
|\ \ | |/ | | | | Change-Id: Ifed3a326085bd4aaff069007966efd6932c2be3b
| * A new QGeoPositionInfoSourceCL should be initialized with NoError.Alexandru Croitor2016-04-281-1/+1
| | | | | | | | | | | | Change-Id: Ide4ccacd9d7d6a8fe86d190723fcd94ddab9f6d6 Task-number: QTBUG-53059 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* | Remove the traces of the discontinued android-no-sdk platformEirik Aavitsland2016-04-151-1/+1
| | | | | | | | | | Change-Id: I5d4583edec2f4bc54e099266cf380d564bce7a03 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-03-088-34/+41
|\ \ | |/ | | | | Change-Id: I18bb1c341e7d87cd1d649f2c3fc9c50141c6a1a9
| * consolidate dependency listOswald Buddenhagen2016-02-251-2/+2
| | | | | | | | | | Change-Id: I48c946c3aacbfabd69de1982c1aabd8529c8012e Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
| * consistently put {qt,qml}_{module,plugin} at the end of project filesOswald Buddenhagen2016-02-258-32/+39
| | | | | | | | | | | | | | | | 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>
* | Merge remote-tracking branch 'origin/5.6' into devLiang Qi2016-01-267-166/+322
|\ \ | |/ | | | | Change-Id: I23c874c5dcd0452142c3cf8abff65415ad31a1e7
| * Fix endless location requestingVyacheslav Koscheev2016-01-251-36/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the problem of lost positioning listeners, which was registered in LocationManager, but does not persist in the `runningListeners` collection. We can't call LocationManager.removeUpdates() for those listeners, that are not in `runningListeners` and that's why LocationManager never ends to update location for them. Listener can be registered in LocationManager and not added to `runningListeners` collection at least in the following cases: 1. `startUpdates()` was called when location providers was disabled in system. 2. `startUpdates()` was called twice, without `stopUpdates()` Change-Id: If6777677cbb6f2ad9107fe2ac8496b7cdbb2d8d4 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * Added support for Qstarz GPS trackerHarald Meyer2015-12-161-9/+7
| | | | | | | | | | | | | | | | Added support for Qstarz tracker (with MTK II chipset) such as BT-Q818XT for instance. Change-Id: I937358a82ebce76ac1cdaf87458234f8045d11ad Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * Fix static buildMaurice Kalinowski2015-12-091-1/+1
| | | | | | | | | | | | | | This has been left out for previous renaming of WinRT related classes. Change-Id: Ic193501c70c3309659d5bf09c3ecf39879d390ba Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
| * WinRT: Refactor backendMaurice Kalinowski2015-12-095-120/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move members into private class to clean up the public backend. - Beware of the Xaml changes and switch thread where required. - Add updateSynchronized() slot to be able to start/stop timers properly. onPositionChanged is invoked from another thread, actually one not being created by QThread. Hence other singleShot mechanisms do not work either. - Rename classnames to properly spell WinRT. - Register QGeoPositionInfo to the metatype system like on other backends. Change-Id: Ic62beddff6d8542264a44ca3927ba7b692682c63 Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>