Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
geosatelliteinfo.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \qmlvaluetype geoSatelliteInfo
6 \ingroup qmlvaluetypes
7 \inqmlmodule QtPositioning
8 \ingroup qml-QtPositioning5-basictypes
9 \since 6.5
10
11 \brief The geoSatelliteInfo type represents basic information about a
12 satellite.
13
14 This type is a QML representation of \l QGeoSatelliteInfo. The type is
15 uncreatable from QML and can only be used when handling satellite updates
16 from \l SatelliteSource.
17
18 This type contains the \c satelliteSystem, \c satelliteIdentifier and
19 \c signalStrength read-only properties, and also optional attributes.
20
21 Use the \l hasAttribute method to check if the attribute exists or not,
22 and the \l attribute method to get its value.
23
24 \sa QGeoSatelliteInfo
25*/
26
27/*!
28 \qmlproperty enumeration QtPositioning::geoSatelliteInfo::satelliteSystem
29 \readonly
30
31 Holds the GNSS system of the satellite.
32
33 \value GeoSatelliteInfo.Undefined Not defined.
34 \value GeoSatelliteInfo.GPS Global Positioning System (USA).
35 \value GeoSatelliteInfo.GLONASS Global Positioning System (Russia).
36 \value GeoSatelliteInfo.GALILEO Global navigation satellite system (EU).
37 \value GeoSatelliteInfo.BEIDOU BeiDou navigation satellite system (China).
38 \value GeoSatelliteInfo.QZSS Quasi-Zenith Satellite System (Japan).
39 \value GeoSatelliteInfo.Multiple This type normally indicates that the
40 information is received from a device that supports multiple
41 satellite systems, and the satellite system is not explicitly
42 specified.
43 \value GeoSatelliteInfo.CustomType The first type that can be used
44 for user purposes.
45*/
46
47/*!
48 \qmlproperty int QtPositioning::geoSatelliteInfo::satelliteIdentifier
49 \readonly
50
51 Holds the satellite identifier number.
52
53 The satellite identifier number can be used to identify a satellite within
54 the satellite system.
55
56 The actual value may vary, depending on the platform and the selected
57 backend.
58*/
59
60/*!
61 \qmlproperty real QtPositioning::geoSatelliteInfo::signalStrength
62 \readonly
63
64 Holds the signal strength in decibels.
65*/
66
67/*!
68 \qmlmethod real QtPositioning::geoSatelliteInfo::attribute(Attribute attr)
69
70 Returns the value of the attribute \a attr or -1 if the value has not been
71 set.
72
73 The following attributes are supported:
74
75 \list
76 \li \c {GeoSatelliteInfo.Elevation} - the elevation of the satellite,
77 in degrees.
78 \li \c {GeoSatelliteInfo.Azimuth} - the azimuth to true north,
79 in degrees.
80 \endlist
81*/
82
83/*!
84 \qmlmethod bool QtPositioning::geoSatelliteInfo::hasAttribute(Attribute attr)
85
86 Returns \c true if the satellite information contains the attribute \a attr.
87 Otherwise returns \c false.
88
89 See \l attribute() for the list of supported attributes.
90*/