summaryrefslogtreecommitdiff
path: root/src/plugins/position/corelocation
Commit message (Collapse)AuthorAgeFilesLines
* Re-request authorization after the authorization has changedAndy Shaw2019-11-151-10/+15
| | | | | | | | | | On iOS if an application is put into the background after it was authorized to allow location updates "Only Once" then when it is brought back it is no longer getting updates. Therefore we need to rerequest the authorization so that it can continue to get updates. Change-Id: I72804a7c7e82524e40aab049175e2d8f7dfee469 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* QGeoPositionInfoSourceCL: Initialize location timestamp with UTC time specAndrew Dolby2019-06-141-3/+1
| | | | | | Fixes: QTBUG-73651 Change-Id: Ie1955e8f524ef828a7407995fc14586ff54f660c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Unify semicolon usage in Q_UNUSEDJesus Fernandez2019-01-231-4/+4
| | | | | Change-Id: I36dd6881b6f6f028869d63b6311cba7f52a99cc4 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
* Merge remote-tracking branch 'origin/5.12' into devQt Forward Merge Bot2018-10-231-8/+19
|\ | | | | | | Change-Id: If8bb4158f9a46ad703c73fff5bf0b1a0636c4b5e
| * CoreLocation: fix unconditional (previously) method callsTimur Pocheptsov2018-10-221-8/+19
| | | | | | | | | | | | | | | | | | that result in a warning nowadays, saying we must have a description in Info.plist to be able to call these methods. Task-number: QTBUG-41827 Change-Id: Ib1997a609553345358aded419a403582ccfdc0fb Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* | Fix namespaced buildLiang Qi2018-10-051-2/+2
|/ | | | | | | | | It is not allowed to include files within Qt namespace. See 5b99f3a3 in qtbase dev. Change-Id: Ic86986ebe5d6beafa32c7634ffb1d4631c411bf9 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
* Check authorization in QGeoPositionInfoSourceCL::enableLocationManagerPaolo Angelelli2018-09-181-1/+33
| | | | | | Task-number: QTBUG-52660 Change-Id: I528bde71dd0ad5ad58e26a9d484364b35b6c4b62 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Clean up our Objective-C usageLiang Qi2018-03-091-5/+5
| | | | | | | | | | | Following ba871065e0f40e9197fa4ee0ffe76530bb6fca11 in qtbase. - Move ivars into @implementation - Use instancetype where applicable Change-Id: If87a3c17d553d98d93c23b319a391c763e2a6bdc Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
* Add .mm to DISTFILES if not on MacPaolo Angelelli2018-03-051-0/+4
| | | | | | | So that the files can be found by qtcreator. Change-Id: I00b0cbcd711b413221a4486234aba8b1c5757cb6 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
* Apple platforms: properly guard API access when requesting location infoJake Petroules2018-01-022-14/+19
| | | | | | | | | | | | | | | requestAlwaysAuthorization and requestWhenInUseAuthorization are prohibited APIs on macOS, and the former is also prohibited API on tvOS. This means they are akin to private APIs and must not be called under any circumstances. The respondsToSelector calls are also removed as Qt no longer supports OS versions where thee methods are not available, and in any case such uses should be replaced with __builtin_available. Background location updates are also now made available on watchOS 4 and above. Change-Id: I817d69f4ec71b96f03dda42635d675499e8908c0 Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@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>
* 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 '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>
* | 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>
* | tvOS supportMike Krus2015-12-312-1/+12
|/ | | | | | | Builds but untested, only support single ping location updates Change-Id: I96f6df9d5b26ed17e10cf14d33066dbad9945818 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
* Add missing "We mean it" comments to private headers.Friedemann Kleint2015-10-081-0/+11
| | | | | Change-Id: Id3ef277b5610a45ffa42850dd9415e963ed45285 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
* Enable positioning for OS XLaszlo Agocs2015-09-101-0/+4
| | | | | | | | | | 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>
* 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>
* 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>
* Update all LGPLv2.1 license headers in source to latest versionAlex Blasche2015-02-154-48/+32
| | | | | | | | | | | 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>
* iOS 8 - CLLocationManager authorizationTimur Pocheptsov2014-10-231-0/+8
| | | | | | | | | | | | | iOS8 introduced a new authorization scheme for Location data. Before retrieving location data, CLLocationManager must request authorization. Call two methods: requestAlwaysAuthorization/requestWhenInUseAuthorization on a location manager (which one will work/preferred - can be adjusted by setting NSLocationAlwaysUsageDescription/NSLocationWhenInUseUsageDescription entries in a plist). Task-number: QTBUG-41827 Change-Id: I9fc24921dc7d889b629b2c71e7698a33fc6ae47a Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* Merge remote-tracking branch 'origin/5.3' into 5.4Frederik Gladhorn2014-08-281-4/+8
|\ | | | | | | Change-Id: I92b8aba7f6f63acfa2de21a1b4451a108f622344
| * OSX: Fix QGeoPositionInfo attribute values with corelocation plug-inv5.3.25.3.2Alex Blasche2014-08-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | Fix corelocation plugin to return "nan" values for the QGeoPositionInfo attributes which aren't available. Task-number: QTBUG-38300 Change-Id: Id4c6eb69ef65fccfd7de32ec476d3afa3c4bbf98 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
* | Update license headers and add new license filesAntti Kokko2014-08-242-38/+22
|/ | | | | | | | | - 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>
* Fixed symbol clash between sensor and positioning plug-in on iOSAlex Blasche2014-07-141-3/+3
| | | | | | | | | | locationDelegate is used by two iOS plug-ins at the same time. This removes the duplicate names and thus fixes the build if the same application happens to use the two APIs. Task-number: QTBUG-40198 Change-Id: I7bb0c1400f1a088a70854b522ca81ee58f1abbb0 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Fix the names of the plugin factory classes for static plugin loadingAlex Blasche2014-06-251-1/+1
| | | | | | | | | | | | | | | 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-1/+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>
* Add CoreLocation positioning plugin for QtLocationIan Dean2013-12-126-0/+491
Implements a QGeoPositionInfoSource plugin using CoreLocation. Implemented by Ian Dean. [ChangeLog][QtPositioning][QGeoPositionInfoSource] iOS position backend added. Change-Id: I09df434f95e5d72b1f6cf6381412334ae45d3d54 Reviewed-by: Ian Dean <ian@mediator-software.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>