summaryrefslogtreecommitdiff
path: root/src/plugins/position
Commit message (Collapse)AuthorAgeFilesLines
* 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 '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>
* | 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>
* | 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>
* | Updated license headersAntti Kokko2016-01-2041-576/+822
| | | | | | | | | | | | | | | | | | | | 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>
* | tvOS supportMike Krus2015-12-313-2/+13
|/ | | | | | | Builds but untested, only support single ping location updates Change-Id: I96f6df9d5b26ed17e10cf14d33066dbad9945818 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
* Share common data between b2qt emulator and simulator pluginMichal Klocek2015-11-233-228/+1
| | | | | | | | | Share position information structs between client and server implementations for simulator plugin. Required structs exported as private export. Change-Id: I7c8fb4b93d8cacd6217096e28f770409c8939c29 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add qtserialport-based NMEA position plugin for WindowsLaszlo Agocs2015-10-095-0/+201
| | | | | | | | | | GPS receivers typically come with USB-to-serial drivers for Windows. This allows reading NMEA sentences via Qt Serial Port, thus providing basic GPS positioning support for all desktop Windows versions. Task-number: QTBUG-48082 Change-Id: Ie053dffaaf76bc08b2b6148104fd981b0f1ccc6b Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Add missing "We mean it" comments to private headers.Friedemann Kleint2015-10-087-0/+77
| | | | | Change-Id: Id3ef277b5610a45ffa42850dd9415e963ed45285 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Enable positioning for OS XLaszlo Agocs2015-09-102-1/+5
| | | | | | | | | | Core Location works just fine. Add also a helpful hint to the "unknown" error that comes when Wi-Fi is turned off. Change-Id: I0240f1e070217e19aff4c9329d680dd9991b74b1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Use categorized logging for Geoclue plugin.Aaron McCarthy2015-09-104-29/+47
| | | | | Change-Id: I9e04a6e8ea75fc1c2ebb3cdd7de4e02e98461613 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Remove dependency on libgeoclue.Aaron McCarthy2015-09-1020-546/+796
| | | | | | | | | | | | | | | | Re-implement Geoclue plugin using only Qt DBus dropping both the build-time and run-time dependency on libgeoclue. Allowing the Geoclue plugin to be build on all platforms that support Qt DBus. The priority of the Geoclue plugin has been lowered slightly so that the native position plugin, if available, has precedence. [ChangeLog][QtPositioning][Position] The Geoclue plugin has been re-implemented using Qt DBus. Task-number: QTBUG-40702 Change-Id: Ia06d089bfb46c10769ccffd765c044c361a9b484 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Skip loading real plugins in testsLaszlo Agocs2015-09-098-8/+16
| | | | | | | | | | 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>
* Merge remote-tracking branch 'origin/5.5' into 5.6Liang Qi2015-08-191-1/+1
|\ | | | | | | | | | | | | Conflicts: src/imports/location/qquickgeomapgesturearea.cpp Change-Id: If115a052678b140eee46b8c0d9471b7d96953915
| * Make geoclue plugin compile on gcc4.5Alex Blasche2015-07-241-1/+1
| | | | | | | | | | | | Change-Id: Ic95affaf6952877b567b55a5ce6c385acd405736 Task-number: QTBUG-47427 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Remove Blackberry 10 support from QtPositioningAlex Blasche2015-06-1718-3936/+0
|/ | | | | | | | | [ChangeLog][QtPositioning][Platform Specific Behavior] Removed BlackBerry 10 support from QtPositioning. Change-Id: If4e24831a0830c8744f51e912f6f37e198362923 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* Updated WinRT license headers to use LGPLv3 instead of LGPLv21Jani Heikkinen2015-05-204-40/+52
| | | | | | | | From 5.5.0 -> WinRT port is licensed with LGPLv3, see http://blog.qt.io/blog/2015/04/29/windows-10-support-in-qt/ Change-Id: I267f2c70cd7f365464bc596ac5dcb8503219cdbd Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* Make geoclue plugin compile on RHEL 6.6Alex Blasche2015-05-121-1/+1
| | | | | | | | G_VALUE_INIT was added by glib 2.30 and RHEL 6.6 uses 2.28. We expand the macro to fix the compile issue. Change-Id: I25d19858ad3035a266d9ddf4d9badc830071e943 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
* Merge "Merge remote-tracking branch 'origin/5.4' into 5.5" into refs/staging/5.5Frederik Gladhorn2015-03-171-0/+5
|\
| * Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-03-171-0/+5
| |\ | | | | | | | | | Change-Id: Ia4c1dbe6ca0c852bee6f0e5bc96fec6f7cde87e0
| | * WinPhone: Disallow update interval of 0 msMaurice Kalinowski2015-03-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows Phone does not allow to set the update interval to 0 ms. However, instead of failing when the value is set, initiating the positionChanged will afterwards fail with E_ABORTED Task-number: QTBUG-44572 Change-Id: I1d7fc79fba46a550ac388b39991aa673cf01ae7b 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-137-14/+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>
* | Merge remote-tracking branch 'origin/5.4' into 5.5Frederik Gladhorn2015-03-031-1/+5
|\ \ | |/ | | | | Change-Id: I247820c085a1e5fa95e412b20ad0ecd9a857f19e
| * WinRT: Set default timeout value properlyMaurice Kalinowski2015-02-241-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If no timeout is specified according, the docs state that a 'reasonable' timeout period is used. However, that stayed 0 on WinRT so far. Now this is set to two minutes in case GPS needs to completely start, this value is copied from the Android implementation. Task-number: QTBUG-44572 Change-Id: Iacd33772339744d3099422455a1fe9b3a4ceef07 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Andrew Knight <qt@panimo.net> Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
* | Update contact URL in all license headers to qt.ioAlex Blasche2015-02-1858-58/+58
| | | | | | | | | | Change-Id: Ia1e333be7fec8898de609d9b9303b1ad7687632e Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
* | Update BSD and LGPLv2.1 licensesAlex Blasche2015-02-1858-155/+155
| | | | | | | | | | | | | | | | - 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-1558-245/+229
| | | | | | | | | | | | | | | | | | | | | | 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 missing QDataStream include following header change in qtbaseAlex Blasche2015-01-081-0/+4
| | | | | | | | | | | | Change-Id: I285abdcf09f42f5231e1191610f528638a8a3003 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Michal Klocek <michal.klocek@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>
* Add missing include for QObjectSamuli Piippo2014-11-031-0/+2
| | | | | | | Missing include caused build failure with simulator enabled. Change-Id: I8f3aafab5353ec23de87fa4b02f10429ad091ace Reviewed-by: Gatis Paeglis <gatis.paeglis@digia.com>
* Android: A new positioninfosource is always initialized with NoErrorAlex Blasche2014-10-241-1/+1
| | | | | | | Task-number: QTBUG-41873 Change-Id: Ic6efadbdf92a2d43151089509708556e48748120 Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>