summaryrefslogtreecommitdiff
path: root/src/positioningquick/qdeclarativepositionsource_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove QtPositioning module from qtlocation.git6.2.46.2.36.2.26.2Ivan Solovev2021-11-021-222/+0
| | | | | | | | | | | | | | | Turns out that our CI does not support repos without any tests. This is treated like an error and leads to integration failure. This patch fixes it by disabling tests in coin/module_config.yaml. This config should be fixed when QtLocation tests are enabled Task-number: QTBUG-97084 Change-Id: Ib06e865fe2836806bbbee34345f06b471dd48660 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alex Blasche <alexander.blasche@qt.io> (cherry picked from commit 23f32792ad53e23bbafbff6d7667f0bb0f69fc53)
* QDeclarativePositionSource: add active property bindingIvan Solovev2021-05-171-2/+9
| | | | | | | | | This patch introduces binding support for "active" property Task-number: QTBUG-89874 Change-Id: Idcfba6012743b43e168a423e8adf7eee3ec94ace Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QDeclarativePositionSource: add property bindingsIvan Solovev2021-05-171-11/+42
| | | | | | | | | | | | | | | | | This commit ports most of the properties in QDeclarativePositionSource to new property system. * "active" property will be corever in the next patch. * "updateInterval" and "preferredPositioningMethods" properties are not converted to bindables because they have custom getters and setters, which makes the code for porting them complicated and adds memory overhead. However these properties are normally set once and not updated, so there is no real benefit from converting them. Task-number: QTBUG-89874 Change-Id: If087405c4515725ba304dd18a880cb25fbad20c0 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QDeclarativePositionSource: fix start/stop/update logicIvan Solovev2021-04-281-6/+7
| | | | | | | | | | | | The logic of active state updates was broken. For example, calling update() and then stop() was immediately switching to inactive state, while the position source was still waiting for a single position request to complete. This patch fixes this and some other logic errors and adds several unit tests to cover different scenarios of calling these methods. Change-Id: I5cea19c711744a1b57dd0427a41119d789f4033b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QDeclarativePositionSource: remove nmeaSourceIvan Solovev2021-02-121-13/+0
| | | | | | | | | | | | | | | The features (nmea file and tcp socket reading) are now supported in NMEA plugin. [ChangeLog][QtPositioning][QDeclarativePositionSource] Removed QDeclarativePositionSource::nmeaSource property. Also removed SourceError::SocketError error. The features of reading nmea stream from file and tcp socket are now supported in QtPositioning NMEA plugin. Task-number: QTBUG-90491 Change-Id: I722a06bf7ace750fe767aa09157ece3c93d0393c Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: update the version of the QML pluginIvan Solovev2021-02-021-3/+5
| | | | | | | | | | | | | | | | This patch bumps the version of QML plugin, so that we could do import QtPositioning 6.1 as well as import QtPositioning 5.15 or import QtPositioning This patch also ports the module to declarative registration of the types in QML Task-number: QTBUG-90491 Change-Id: I8f046019f8519ba1be8c732660d85501b2e50b74 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
* QDeclarativePositionSource::update() - add timeout parameterIvan Solovev2021-01-291-1/+1
| | | | | | | | | Was planned for Qt6. The default value is 0, which does not change the existing code's behavior. Task-number: QTBUG-90491 Change-Id: I7db180b0bd9fffe2becab03f9f3c9e7ebc73cb05 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: remove QGeoPositionInfoSource::updateTimeout signalIvan Solovev2021-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | A new Error::UpdateTimeoutError enum value is introduced instead. An errorOccurred() signal with this value is used to notify about update timeouts. As a result, an updateTimeout() signal is also removed from QML PositionSource object (QDeclarativePositionSource C++ class). It's also replaced by the sourceErrorChanged() signal with PositionSource.UpdateTimeoutError error value. Apart from that - several more warnings in the unit tests are fixed. [ChangeLog][QtPositioning][Important Behavior Changes] Removed QGeoPositionInfoSource::updateTimeout() signal. Use QGeoPositionInfoSource::errorOccurred() with a new Error::UpdateTimeoutError value instead. Removed PositionSource::updateTimeout() signal from QML. Use PositionSource::sourceErrorChanged() with a new PositionSource.UpdateTimeoutError value instead. Task-number: QTBUG-90491 Change-Id: I7458382a5cb7fdea192b3924baf9e86ee28d1028 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: adapt to Qt6Ivan Solovev2021-01-201-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Make QtPositioning module buildable under Qt6: - remove calls to deleted QMetaType-registration methods - replace int -> qsizetype where it prevents the code from being compiled - fix some deprecation warnings - fix library dependencies in .pro file for building tests - fix weatherinfo example For now only qmake is supported. CMake support will be done in scope of a separate patch. Geoflickr example is yet to be ported, as it requires extracting XmlListModel from xmlpatterns. QtLocation is also skipped for now, as it seems to require heavy refactoring due to changes in QSGMaterialShader interface. QtLocation build is disabled in qmake for now. Task-number: QTBUG-89853 Change-Id: I8cc4da6efabe32ce114701219d5431f8480bee3b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add missing overrideAlexander Volkov2020-06-291-2/+2
| | | | | Change-Id: Ieae01bc4669cdd503f97399c622989795a0ad734 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix 5.14 QML API inconsistenciesv5.14.0-beta2Paolo Angelelli2019-10-041-2/+2
| | | | | | Change-Id: I54bf3791d3d5e40fb9405c2f1527758fcfba8120 Fixes: QTBUG-78690 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Fix 5.14 positioning APIsPaolo Angelelli2019-09-191-1/+1
| | | | | | | | This patch fixes a few inconsistencies in the newely added features. Change-Id: Icdf1c9208fd0d5ab1d6ec6d87fcc5be5072c3f58 Fixes: QTBUG-77865 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Allow setting backend properties of positioning pluginsPaolo Angelelli2019-07-241-0/+3
| | | | | | | | | | This change adds a pair of setter/getter to specify positioning backend properties at runtime, both in QGeoPositionInfoSource and QDeclarativePositionSource. Task-number: QTBUG-66304 Change-Id: Iea9421fb708879bee5c62c4afaf45cbda57f50bb Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Accept and honor PluginParameters in PositionSource elementsPaolo Angelelli2019-07-181-1/+18
| | | | | | | | | This patch implements the support for PluginParameters inside PositionSources. Task-number: QTBUG-66304 Change-Id: Ia28e1c620b6f6abc462a0e4c68a0ff517a40cfa9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Move PluginParameter into PositioningQuick, expose also in QtPositioningPaolo Angelelli2019-06-211-3/+2
| | | | | | | | | | | | | | | | | | | | | | With this patch the QDeclarativeGeoServiceProviderParameter in the location-private module becomes QDeclarativePluginParameter in the positioningquick-private module. This renamed class is then registered, under the same QML typename "PluginParameter" both in QtPositioning and QtLocation qml plugins. In this way it will become possible to use the same type both inside QtLocation "Plugin" and inside QtPositioning "PositionSource", and regardless of which is the QML plugin that provides "PluginParameter", this will translate into the same cpp type. [ChangeLog][QtPositioning] Exposed PluginParameter also from QtPositioning qml plugin, to be used in PositionSource as replacement of environment variables. Task-number: QTBUG-66304 Change-Id: I1d982ff689130ae896c616480567aa12d9b49c3a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add QGeoPositionInfoSource::supportedPositioningMethodsChangedPaolo Angelelli2018-04-091-0/+1
| | | | | | | | The signal is meant to be emitted by backends Task-number: QTBUG-66427 Change-Id: I8bc123e358dc76489b5eac85f397cd7f40072335 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Move QtPositioning QML wrappers into declarativepositioning modulePaolo Angelelli2017-12-151-0/+174
In this way it will be possible to use these types in additional QML plugins/components Change-Id: Ie82e37877198b99a98ff4a2b076f39f6a9e4fe32 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>