Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
13
The plugin is an interface to the \l {Gypsy daemon}. It requires the daemon
14
to be installed and running on the system to function.
15
16
The plugin uses D-Bus and GLib to connect to GPS device and provide satellite
17
information.
18
19
Currently the plugin \e {does not} provide positioning information.
20
21
The plugin can be loaded using provider name \b gypsy.
22
23
\section1 Parameters
24
25
The following table lists parameters that \e can be passed to the gypsy
26
plugin.
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
43
The 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
53
By default, when none of the parameters is specified, the plugin will try to
54
extract the device name from the GConf configuration system using the following
55
hardcoded key:
56
57
\badcode
58
/apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice
59
\endcode
60
61
\section2 Using GConf to set parameters
62
63
To specify a value for a key in the GConf configuration system, use
64
\e {gconftool-2} as follows:
65
66
\badcode
67
gconftool-2 -t string -s /apps/geoclue/master/org.freedesktop.Geoclue.GPSDevice /dev/ttyUSB0
68
\endcode
69
70
\section1 Examples
71
72
The following examples show how to create a \b gypsy satellite info source
73
from C++.
74
75
Specifying device name directly:
76
77
\code
78
QVariantMap parameters;
79
parameters["deviceName"] = "/dev/ttyACM0";
80
QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
81
\endcode
82
83
Using GConf key:
84
85
\code
86
QVariantMap parameters;
87
parameters["gconfKey"] = "/apps/myapp/mykey";
88
QGeoSatelliteInfoSource *source = QGeoSatelliteInfoSource::createSource("gypsy", parameters, this);
89
\endcode
90
91
*/
qtpositioning
src
positioning
doc
src
plugins
gypsy.qdoc
Generated on
for Qt by
1.14.0