Qt Positioning Gypsy plugin
The plugin is an interface to the Gypsy daemon. It requires the daemon to be installed and running on the system to function.
The plugin uses D-Bus and GLib to connect to GPS device and provide satellite information.
Currently the plugin does not provide positioning information.
The plugin can be loaded using provider name gypsy.
The following table lists parameters that can be passed to the gypsy plugin.
|deviceName||The name of the device (or path to the device file) that will be used to provide satellite information. The typical values can be |
|gconfKey||The key that will be used to extract device name from the GConf configuration system.|
The plugin supports two ways of specifying the device name:
- Specify the device name directly with the deviceName plugin parameter.
- Specify the configuration key using gconfKey plugin parameter and extract the device name from the GConf configuration system. This approach is useful when the device name is already specified for some other GConf-based application.
By default, when none of the parameters is specified, the plugin will try to extract the device name from the GConf configuration system using the following hardcoded key:
To specify a value for a key in the GConf configuration system, use gconftool-2 as follows:
gconftool-2 -t string -s /apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice /dev/ttyUSB0
The following examples show how to create a gypsy satellite info source from C++.
Specifying device name directly:
QVariantMap parameters; parameters["deviceName"] = "/dev/ttyACM0"; QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
Using GConf key:
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.