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-geoclue2.html
6\title Qt Positioning GeoClue v2 plugin
7\ingroup QtPositioning-plugins
9\brief Uses the GeoClue v2 library to provide positioning updates
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.
16The plugin uses D-Bus to establish communication with the GeoClue v2 D-Bus
17service and to provide positioning information.
19The plugin can be used to receive only the positioning information.
20It \e {does not} provide satellite information.
22The plugin can be loaded by using the provider name \b geoclue2.
26The following table lists parameters that \e can be passed to the geoclue2
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.
40\section1 Usage example
42The following examples show how to create a \b geoclue2 PositionSource from
50 PluginParameter { name: "desktopId"; value: "SomeIdentifierString" }
58params["desktopId"] = "SomeIdentifierString";
59QGeoPositionInfoSource *positionSource = QGeoPositionInfoSource::createSource("geoclue2", params, this);