1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page position-plugin-gypsy.html
6\title Qt Positioning Gypsy plugin
7\ingroup QtPositioning-plugins
9\brief Uses the Gypsy daemon to provide satellite information
13The plugin is an interface to the \l {Gypsy daemon}. It requires the daemon
14to be installed and running on the system to function.
16The plugin uses D-Bus and GLib to connect to GPS device and provide satellite
19Currently the plugin \e {does not} provide positioning information.
21The plugin can be loaded using provider name \b gypsy.
25The following table lists parameters that \e can be passed to the gypsy
34 \li The name of the device (or path to the device file) that will be used
35 to provide satellite information. The typical values can be
36 \c {/dev/ttyUSB0} or \c {/dev/ttyACM0}.
39 \li The key that will be used to extract device name from the GConf
43The plugin supports two ways of specifying the device name:
45 \li Specify the device name directly with the \e deviceName plugin
47 \li Specify the configuration key using \e gconfKey plugin parameter and
48 extract the device name from the GConf configuration system. This
49 approach is useful when the device name is already specified for some
50 other GConf-based application.
53By default, when none of the parameters is specified, the plugin will try to
54extract the device name from the GConf configuration system using the following
58/apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice
61\section2 Using GConf to set parameters
63To specify a value for a key in the GConf configuration system, use
64\e {gconftool-2} as follows:
67gconftool-2 -t string -s /apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice /dev/ttyUSB0
70\section1 Usage example
72The following examples show how to create a \b gypsy satellite info source
75Specifying device name directly:
78QVariantMap parameters;
79parameters["deviceName"] = "/dev/ttyACM0";
80QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
86QVariantMap parameters;
87parameters["gconfKey"] = "/apps/myapp/mykey";
88QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);