summaryrefslogtreecommitdiff
path: root/src/plugins/position/gypsy
Commit message (Collapse)AuthorAgeFilesLines
* Remove QtPositioning module from qtlocation.gitIvan Solovev2021-10-277-763/+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 Pick-to: 6.2 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>
* Fix static buildIvan Solovev2021-08-101-1/+2
| | | | | | | | | | | | | This patch fixes the "Bundled_Clip2Tri not found" error during static QtPositioning build. Fix backend plugins so that they get automatically linked in static build. Fixes: QTBUG-95582 Pick-to: 6.2 Change-Id: Iea31c23a055689d9b8f6471345558b330795f597 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* CMake: Use renamed qt6_add_plugin PLUGIN_TYPE optionAlexandru Croitor2021-08-101-1/+1
| | | | | | | Task-number: QTBUG-95170 Pick-to: 6.2 Change-Id: I041d949a1b5d3097f756befb1d03ed3734665f82 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* CMake: Don't give plugins PUBLIC usage requirements part 2Li Xinwei2021-08-061-1/+0
| | | | | | | | | Amends bc9ddc25379b969b8e751a192ba66093a7b7dbc2 Pick-to: 6.2 Task-number: QTBUG-90819 Change-Id: I91d61a86d7ea79b371de7586b3406bd3b3d3c66b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Gypsy plugin: introduce plugin parametersIvan Solovev2021-08-023-21/+58
| | | | | | | | | | | | | | | | | | Previously the plugin was taking the device name from a hardcoded path in the GConf parameters. This patch adds the possibility to specify the device in two ways: * use 'gconfKey' parameter to specify the GConf key, that should be used to extract the device name; * use 'deviceName' parameter to specify the device name directly. If none of these parameters is specified, the old behavior is used, i.e. the plugin uses the hardcoded GConf key to try to extract the device name. Task-number: QTBUG-74995 Pick-to: 6.2 Change-Id: I7c911630a2d367310e62764a1660171a6856e27b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Gypsy plugin: add satellite identifier and satellite system informationIvan Solovev2021-07-301-0/+17
| | | | | | | | | | | | Gypsy daemon provides the satellite_id of the available satellites, but this information was never used before. We can also try to determine the satellite system based on the satellite identifier. Task-number: QTBUG-74995 Pick-to: 6.2 Change-Id: I7eba052034ddb7b64d91a81381d136bf9f2ddeca Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: remove duplicated signals from GYPSY pluginIvan Solovev2021-03-101-4/+0
| | | | | | | | | | | The signal definition in plugin shadows the signals from the base class. This results in incorrect behavior while connecting to signals of the base class (without explicit casting to QGeoSatelliteInfoSourceGypsy). Task-number: QTBUG-91528 Change-Id: I74d045de469eeb13377f934ad9c473ba4c8374e0 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: increase control object lifetime in GYPSY pluginIvan Solovev2021-03-022-5/+6
| | | | | | | | | | | | | For some reason the GObject control object was destroyed as soon as the device was created. With the current version of glib it results in immediate destruction of all the created objects, so the newly created device got destroyed as well. As a result, the plugin was unusable. This patch extends the lifetime of the main control object for the lifetime of the whole plugin. Change-Id: I2ff2d40dea33b89c70f1f1188569f06fed4c88d9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: get rid of unneeded private exportsIvan Solovev2021-02-151-1/+1
| | | | | | | | | | | | In this patch we try to get rid of Q_POSITIONING_PRIVATE_EXPORT exports that are not really used outside of QtPositioning library, and so should not be exported. We also revisited the CMakeLists.txt files to remove unneeded private dependencies. Task-number: QTBUG-90491 Change-Id: Ia46579d340c3d1b088dd76ce5a1aacbef34358ad Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: reset errors properlyIvan Solovev2021-01-291-0/+6
| | | | | | | | | | | | | Calling startUpdates(), startMonitoring() or requestUpdate() on QGeoPositionInfoSource/QGeoSatelliteInfoSource/QGeoAreaMonitorSource subclasses effectively means starting a new work session, which means that we should not care about the previous errors. This patch resets the errors to Error::NoError in all subclasses when calling these methods. Task-number: QTBUG-90491 Change-Id: Ia9cf0345e8c672d47814d8d0a865cd23541af61a Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: remove QGeoSatelliteInfoSource::requestTimeout signalIvan Solovev2021-01-262-5/+17
| | | | | | | | | | | | | | | A new Error::UpdateTimeoutError enum value is introduced instead. An errorOccurred() signal with this value is used to notify about update timeouts. [ChangeLog][QtPositioning][Important Behavior Changes] Removed QGeoSatelliteInfoSource::requestTimeout() signal. Use QGeoSatelliteInfoSource::errorOccurred() with a new Error::UpdateTimeoutError value instead. Task-number: QTBUG-90491 Change-Id: I1ab8277896035234cb65a8ece9426b9fa9896f7b Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* QtPositioning: get rid of warningsIvan Solovev2021-01-221-1/+3
| | | | | | | | | | Fix warnings in QtPositioning sources. These are mostly the warnings regarding a missing "override" keyword in unit tests. Task-number: QTBUG-90491 Change-Id: I6ca676de0733767d4b85353670103ad5a8d60688 Reviewed-by: Juha Vuolle <juha.vuolle@insta.fi> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* 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/+24
| | | | | | | | | | 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>
* QtPositioning: adapt to Qt6Ivan Solovev2021-01-202-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* 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>
* Remove moc_* inclusions from source filesPaolo Angelelli2017-02-141-1/+0
| | | | | | Change-Id: I7385348d7b6ec22fa92ed1be65f89e262c38b5c0 Reviewed-by: Michal Klocek <michal.klocek@qt.io> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Set parent to timers in position pluginsVyacheslav Koscheev2017-02-071-1/+1
| | | | | | | | | 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>
* Convert qtlocation to the new configure systemLars Knoll2016-10-281-3/+2
| | | | | | | | And clean up the code detecting gypsy and the WinRT positioning API. Change-Id: Ic561d565d6fc733703ef6c0dc164e737e0b3d4fd Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@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>
* 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-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>
* 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-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-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>
* Add NoError to the various Positioning Source classes.Alex Blasche2013-10-301-1/+1
| | | | | | | 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-172-2/+2
| | | | | | | | | | | | | | 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-223-2/+9
| | | | | | | | | 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>
* Update copyright year to 2013Sergio Ahumada2013-06-132-2/+2
| | | | | Change-Id: I5b0cb7d56997ad7b91c073b3e02b31d0368fdcfa Reviewed-by: Alex <alexander.blasche@digia.com>
* Change copyright from 2012 to 2013Rainer Keller2013-01-172-2/+2
| | | | | Change-Id: I61ae1bd1a9f68d120d4e11635f306374b1f494d0 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
* adjust to qt_plugin.prf changesOswald Buddenhagen2012-11-231-5/+1
| | | | | | | | DESTDIR and INSTALLS+=target are set up automatically now, but PLUGIN_TYPE needs to be defined. Change-Id: Ifd9c031343b793f6da2a1ac595d54cb0b1176e5c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Change copyrights from Nokia to DigiaIikka Eklund2012-09-244-98/+98
| | | | | | | | Change copyrights and license headers from Nokia to Digia Change-Id: Ic1390da64a219642fa1e1482a7677a4c2db15cbc Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* centralize load(qt_build_config)s in .qmake.confOswald Buddenhagen2012-09-131-2/+0
| | | | | Change-Id: Icbf4870866053bb6812f6ff0084744d6c2566e6f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
* Add config test to detect when to build gypsy backend.Aaron McCarthy2012-06-253-6/+17
| | | | | | | | Previously the gypsy backend was only being built when CONFIG+=meego was set. Change-Id: Ia738ea270252206974f5fcdf146a53ba221925f0 Reviewed-by: Alex <alex.blasche@nokia.com>
* build system cleanupsOswald Buddenhagen2012-06-251-2/+1
| | | | | | | | | | | | | | | - load(qt_module) => load(qt_build_config) - remove: - CONFIG+=module (obsolete) - abuse of QMAKE_PKGCONFIG_REQUIRES - QT_BUILD_*_LIB defines (automated now) - code relating to module version headers (automated now) - %mastercontent assignment (automated now) - pointless QPRO_PWD assignments - pointless DEFINES+=QT_MAKEDLL Change-Id: I3f129ee42289aa409418eb9d29b1902cc40370f9 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Removed spurious pointer check before deletionCristian Adam2012-05-161-4/+2
| | | | | | | | | In C++ it is perfectly valid to delete a null pointer. http://www.parashift.com/c++-faq-lite/freestore-mgmt.html#faq-16.8 Change-Id: I60dc123b01e1ef015751143274579024e4c0becf Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Coding style fixes: whitespace around pointers/referencesAlex Wilson2012-05-152-28/+28
| | | | | | Change-Id: Ie527591e2d9a1578137136fb6664e86c43eed1bf Reviewed-by: Thomas Lowe <thomas.lowe@nokia.com> Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
* Change uses of {to,from}Ascii to {to,from}Latin1Thiago Macieira2012-05-081-1/+1
| | | | | | | | | | This operation should be a no-op anyway, since at this point in time, the fromAscii and toAscii functions simply call their fromLatin1 and toLatin1 counterparts. Task-number: QTBUG-21872 Change-Id: I2e16486d80df6257ab88dc8c3b5d9dd497a19708 Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Call position source backends' init() functions after creationvbologa2012-04-131-1/+6
| | | | | | | | | | This should probably be replaced long-term with a better use of the existing error() method + enum, or something similar. But for now, this keeps compatibility. Change-Id: I1b1cf5d8584c8b0c4e58dac80c2e592301843290 Reviewed-by: Alex Wilson <alex.wilson@nokia.com> Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
* Update positioning sources to use new plugin styleAlex Wilson2012-03-126-0/+660
Notably, also splits the default sources that were previously compiled into the library, out into their own plugins. This follows a similar pattern to the geoservices change. We also drop the "plugin whitelisting" feature in favour of a simple Priority value in the plugin JSON -- the whitelist provides no additional security over this solution on any of our platforms. Task-number: QTBUG-24331 Change-Id: I62a9c940157ad2e33a9a575fa09633b98656b276 Reviewed-by: Alex <alex.blasche@nokia.com>