![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtPositioning More...
#include <qgeosatelliteinfo.h>
Public Types | |
enum | Attribute { Elevation , Azimuth } |
Defines the attributes for the satellite information. More... | |
enum | SatelliteSystem { Undefined = 0x00 , GPS = 0x01 , GLONASS = 0x02 , GALILEO = 0x03 , BEIDOU = 0x04 , QZSS = 0x05 , Multiple = 0xFF , CustomType = 0x100 } |
Defines the GNSS system of the satellite. More... | |
Public Member Functions | |
QGeoSatelliteInfo () | |
Creates a satellite information object. | |
QGeoSatelliteInfo (const QGeoSatelliteInfo &other) | |
Creates a satellite information object with the values of other. | |
QGeoSatelliteInfo (QGeoSatelliteInfoPrivate &dd) | |
QGeoSatelliteInfo (QGeoSatelliteInfo &&other) noexcept=default | |
~QGeoSatelliteInfo () | |
Destroys a satellite information object. | |
QGeoSatelliteInfo & | operator= (const QGeoSatelliteInfo &other) |
Assigns the values from other to this object. | |
void | swap (QGeoSatelliteInfo &other) noexcept |
void | setSatelliteSystem (SatelliteSystem system) |
Sets the Satellite System (GPS, GLONASS, ...) to system. | |
SatelliteSystem | satelliteSystem () const |
Returns the Satellite System (GPS, GLONASS, ...) | |
void | setSatelliteIdentifier (int satId) |
Sets the satellite identifier number to satId. | |
int | satelliteIdentifier () const |
Returns the satellite identifier number. | |
void | setSignalStrength (int signalStrength) |
Sets the signal strength to signalStrength, in decibels. | |
int | signalStrength () const |
Returns the signal strength, or -1 if the value has not been set. | |
void | setAttribute (Attribute attribute, qreal value) |
Sets the value for attribute to value. | |
Q_INVOKABLE qreal | attribute (Attribute attribute) const |
Returns the value of the specified attribute as a qreal value. | |
void | removeAttribute (Attribute attribute) |
Removes the specified attribute and its value. | |
Q_INVOKABLE bool | hasAttribute (Attribute attribute) const |
Returns true if the specified attribute is present in this update. | |
void | detach () |
Properties | |
SatelliteSystem | satelliteSystem |
int | satelliteIdentifier |
qreal | signalStrength |
Friends | |
class | QGeoSatelliteInfoPrivate |
bool | operator== (const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs) |
Returns true if all the parameters of the lhs satellite are the same as those of rhs. | |
bool | operator!= (const QGeoSatelliteInfo &lhs, const QGeoSatelliteInfo &rhs) |
Returns true if any of the parameters of the lhs satellite are not the same as those of rhs. | |
QDebug | operator<< (QDebug dbg, const QGeoSatelliteInfo &info) |
QDataStream & | operator<< (QDataStream &stream, const QGeoSatelliteInfo &info) |
Writes the given info to the specified stream. | |
QDataStream & | operator>> (QDataStream &stream, QGeoSatelliteInfo &info) |
Reads satellite information from the specified stream into the given info. | |
Q_POSITIONING_EXPORT size_t | qHash (const QGeoSatelliteInfo &key, size_t seed=0) |
Q_POSITIONING_EXPORT char * | QTest::toString (const QGeoSatelliteInfo &info) |
\inmodule QtPositioning
The QGeoSatelliteInfo class contains basic information about a satellite.
Definition at line 28 of file qgeosatelliteinfo.h.
Defines the attributes for the satellite information.
\value Elevation The elevation of the satellite, in degrees. \value Azimuth The azimuth to true north, in degrees.
Enumerator | |
---|---|
Elevation | |
Azimuth |
Definition at line 36 of file qgeosatelliteinfo.h.
Defines the GNSS system of the satellite.
\value Undefined Not defined. \value GPS Global Positioning System (USA). \value GLONASS Global Positioning System (Russia). \value GALILEO Global navigation satellite system (EU). \value BEIDOU BeiDou navigation satellite system (China). \value QZSS Quasi-Zenith Satellite System (Japan). \value Multiple This type normally indicates that the information is received from a device that supports multiple satellite systems, and the satellite system is not explicitly specified. Depending on the data source, you might use other information to determine the actual system type. One example of the usage of this type is an NMEA $GNGSA message, which contains the IDs of the satellites being used, but does not explicitly mention their system types. \value CustomType The first type that can be used for user purposes. For example when reimplementing NMEA data parsing in \l QNmeaSatelliteInfoSource. User can add more types using {CustomType
+ 1}, {CustomType
+ 2} and so on.
Enumerator | |
---|---|
Undefined | |
GPS | |
GLONASS | |
GALILEO | |
BEIDOU | |
QZSS | |
Multiple | |
CustomType |
Definition at line 42 of file qgeosatelliteinfo.h.
QGeoSatelliteInfo::QGeoSatelliteInfo | ( | ) |
Creates a satellite information object.
Definition at line 58 of file qgeosatelliteinfo.cpp.
QGeoSatelliteInfo::QGeoSatelliteInfo | ( | const QGeoSatelliteInfo & | other | ) |
Creates a satellite information object with the values of other.
Definition at line 70 of file qgeosatelliteinfo.cpp.
QGeoSatelliteInfo::QGeoSatelliteInfo | ( | QGeoSatelliteInfoPrivate & | dd | ) |
Definition at line 75 of file qgeosatelliteinfo.cpp.
|
defaultnoexcept |
Creates a satellite information object by moving from other.
Note that a moved-from QGeoSatelliteInfo can only be destroyed or assigned to. The effect of calling other functions than the destructor or one of the assignment operators is undefined.
QGeoSatelliteInfo::~QGeoSatelliteInfo | ( | ) |
Destroys a satellite information object.
Definition at line 93 of file qgeosatelliteinfo.cpp.
Returns the value of the specified attribute as a qreal value.
Returns -1 if the value has not been set.
Definition at line 248 of file qgeosatelliteinfo.cpp.
void QGeoSatelliteInfo::detach | ( | ) |
Definition at line 275 of file qgeosatelliteinfo.cpp.
bool QGeoSatelliteInfo::hasAttribute | ( | Attribute | attribute | ) | const |
Returns true if the specified attribute is present in this update.
Definition at line 267 of file qgeosatelliteinfo.cpp.
QGeoSatelliteInfo & QGeoSatelliteInfo::operator= | ( | const QGeoSatelliteInfo & | other | ) |
Assigns the values from other to this object.
Move-assigns the value from other to this object
Note that a moved-from QGeoSatelliteInfo can only be destroyed or assigned to. The effect of calling other functions than the destructor or one of the assignment operators is undefined.
Definition at line 102 of file qgeosatelliteinfo.cpp.
Removes the specified attribute and its value.
Definition at line 258 of file qgeosatelliteinfo.cpp.
int QGeoSatelliteInfo::satelliteIdentifier | ( | ) | const |
Returns the satellite identifier number.
The satellite identifier number can be used to identify a satellite within the satellite system.
The actual value may vary, depending on the platform and the selected backend.
For example, if nmea plugin is used, the satellite identifier for GPS satellite system represents the PRN (Pseudo-random noise) number, and the satellite identifier for GLONASS satellite system represents the slot number.
For NMEA-based backends the satellite identifier can be used to determine the satellite system type if it is not available from other sources. You can refer to \l {https://gpsd.gitlab.io/gpsd/NMEA.html#_satellite_ids} {satellite IDs list} to check the ID ranges for different satellite systems.
Definition at line 210 of file qgeosatelliteinfo.cpp.
QGeoSatelliteInfo::SatelliteSystem QGeoSatelliteInfo::satelliteSystem | ( | ) | const |
Returns the Satellite System (GPS, GLONASS, ...)
Definition at line 159 of file qgeosatelliteinfo.cpp.
Sets the value for attribute to value.
Definition at line 235 of file qgeosatelliteinfo.cpp.
void QGeoSatelliteInfo::setSatelliteIdentifier | ( | int | satId | ) |
Sets the satellite identifier number to satId.
The satellite identifier number can be used to identify a satellite within the satellite system.
The actual value may vary, depending on the platform and the selected backend.
For example, if nmea plugin is used, the satellite identifier for GPS satellite system represents the PRN (Pseudo-random noise) number, and the satellite identifier for GLONASS satellite system represents the slot number.
Definition at line 178 of file qgeosatelliteinfo.cpp.
void QGeoSatelliteInfo::setSatelliteSystem | ( | SatelliteSystem | system | ) |
Sets the Satellite System (GPS, GLONASS, ...) to system.
Definition at line 145 of file qgeosatelliteinfo.cpp.
void QGeoSatelliteInfo::setSignalStrength | ( | int | signalStrength | ) |
Sets the signal strength to signalStrength, in decibels.
Definition at line 218 of file qgeosatelliteinfo.cpp.
int QGeoSatelliteInfo::signalStrength | ( | ) | const |
Returns the signal strength, or -1 if the value has not been set.
Definition at line 227 of file qgeosatelliteinfo.cpp.
|
inlinenoexcept |
Definition at line 63 of file qgeosatelliteinfo.h.
|
friend |
Returns true
if any of the parameters of the lhs satellite are not the same as those of rhs.
Otherwise returns false
.
Definition at line 69 of file qgeosatelliteinfo.h.
|
friend |
Writes the given info to the specified stream.
Definition at line 101 of file qgeosatelliteinfo.h.
|
friend |
Definition at line 94 of file qgeosatelliteinfo.h.
|
friend |
Returns true
if all the parameters of the lhs satellite are the same as those of rhs.
Otherwise returns false
.
Definition at line 65 of file qgeosatelliteinfo.h.
|
friend |
Reads satellite information from the specified stream into the given info.
Definition at line 105 of file qgeosatelliteinfo.h.
|
friend |
Definition at line 113 of file qgeosatelliteinfo.h.
|
friend |
Definition at line 386 of file qgeosatelliteinfo.cpp.
|
friend |
|
read |
Definition at line 32 of file qgeosatelliteinfo.h.
|
read |
Definition at line 31 of file qgeosatelliteinfo.h.
|
read |
Definition at line 33 of file qgeosatelliteinfo.h.