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
geoclue2.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-geoclue2.html
6
\title Qt Positioning GeoClue v2 plugin
7
\ingroup QtPositioning-plugins
8
9
\brief Uses the GeoClue v2 library to provide positioning updates
10
11
\section1 Overview
12
13
This plugin is an interface to the \l {GeoClue service}{GeoClue v2} library.
14
It requires this library to be installed on the system to function.
15
16
The plugin uses D-Bus to establish communication with the GeoClue v2 D-Bus
17
service and to provide positioning information.
18
19
The plugin can be used to receive only the positioning information.
20
It \e {does not} provide satellite information.
21
22
The plugin can be loaded by using the provider name \b geoclue2.
23
24
\section1 Parameters
25
26
The following table lists parameters that \e can be passed to the geoclue2
27
plugin.
28
29
\table
30
\header
31
\li Parameter
32
\li Description
33
\row
34
\li desktopId
35
\li The \l {GeoClue DesktopId property}{Desktop Id} property used by the
36
D-Bus service. If the parameter is not specified, the desktop file name
37
provided by \l QGuiApplication::desktopFileName() will be used.
38
\endtable
39
40
\section1 Examples
41
42
The following examples show how to create a \b geoclue2 PositionSource from
43
C++ and QML.
44
45
\section2 QML
46
47
\code
48
PositionSource {
49
name: "geoclue2"
50
PluginParameter { name: "desktopId"; value: "SomeIdentifierString" }
51
}
52
\endcode
53
54
\section2 C++
55
56
\code
57
QVariantMap params;
58
params["desktopId"] = "SomeIdentifierString";
59
QGeoPositionInfoSource *positionSource = QGeoPositionInfoSource::createSource("geoclue2", params, this);
60
\endcode
61
62
*/
qtpositioning
src
positioning
doc
src
plugins
geoclue2.qdoc
Generated on
for Qt by
1.14.0