Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
gypsy.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page position-plugin-gypsy.html
6\title Qt Positioning Gypsy plugin
7\ingroup QtPositioning-plugins
8
9\brief Uses the Gypsy daemon to provide satellite information
10
11\section1 Overview
12
13The plugin is an interface to the \l {Gypsy daemon}. It requires the daemon
14to be installed and running on the system to function.
15
16The plugin uses D-Bus and GLib to connect to GPS device and provide satellite
17information.
18
19Currently the plugin \e {does not} provide positioning information.
20
21The plugin can be loaded using provider name \b gypsy.
22
23\section1 Parameters
24
25The following table lists parameters that \e can be passed to the gypsy
26plugin.
27
28\table
29\header
30 \li Parameter
31 \li Description
32\row
33 \li deviceName
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}.
37\row
38 \li gconfKey
39 \li The key that will be used to extract device name from the GConf
40 configuration system.
41\endtable
42
43The plugin supports two ways of specifying the device name:
44\list
45 \li Specify the device name directly with the \e deviceName plugin
46 parameter.
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.
51\endlist
52
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
55hardcoded key:
56
57\badcode
58/apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice
59\endcode
60
61\section2 Using GConf to set parameters
62
63To specify a value for a key in the GConf configuration system, use
64\e {gconftool-2} as follows:
65
66\badcode
67gconftool-2 -t string -s /apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice /dev/ttyUSB0
68\endcode
69
70\section1 Examples
71
72The following examples show how to create a \b gypsy satellite info source
73from C++.
74
75Specifying device name directly:
76
77\code
78QVariantMap parameters;
79parameters["deviceName"] = "/dev/ttyACM0";
80QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
81\endcode
82
83Using GConf key:
84
85\code
86QVariantMap parameters;
87parameters["gconfKey"] = "/apps/myapp/mykey";
88QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
89\endcode
90
91*/