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
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
13This plugin is an interface to the \l {GeoClue service}{GeoClue v2} library.
14It requires this library to be installed on the system to function.
15
16The plugin uses D-Bus to establish communication with the GeoClue v2 D-Bus
17service and to provide positioning information.
18
19The plugin can be used to receive only the positioning information.
20It \e {does not} provide satellite information.
21
22The plugin can be loaded by using the provider name \b geoclue2.
23
24\section1 Parameters
25
26The following table lists parameters that \e can be passed to the geoclue2
27plugin.
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 application name
37 provided by \l QCoreApplication::applicationName() is used.
38\endtable
39
40\section1 Examples
41
42The following examples show how to create a \b geoclue2 PositionSource from
43C++ and QML.
44
45\section2 QML
46
47\code
48PositionSource {
49 name: "geoclue2"
50 PluginParameter { name: "desktopId"; value: "SomeIdentifierString" }
51}
52\endcode
53
54\section2 C++
55
56\code
57QVariantMap params;
58params["desktopId"] = "SomeIdentifierString";
59QGeoPositionInfoSource *positionSource = QGeoPositionInfoSource::createSource("geoclue2", params, this);
60\endcode
61
62*/