The QGeoSatelliteInfo class contains basic information about a satellite. More...
Header: | #include <QGeoSatelliteInfo> |
qmake: | QT += positioning |
Since: | Qt 5.2 |
enum | Attribute { Elevation, Azimuth } |
enum | SatelliteSystem { Undefined, GPS, GLONASS } |
QGeoSatelliteInfo() | |
QGeoSatelliteInfo(const QGeoSatelliteInfo &other) | |
~QGeoSatelliteInfo() | |
qreal | attribute(QGeoSatelliteInfo::Attribute attribute) const |
bool | hasAttribute(QGeoSatelliteInfo::Attribute attribute) const |
void | removeAttribute(QGeoSatelliteInfo::Attribute attribute) |
int | satelliteIdentifier() const |
QGeoSatelliteInfo::SatelliteSystem | satelliteSystem() const |
void | setAttribute(QGeoSatelliteInfo::Attribute attribute, qreal value) |
void | setSatelliteIdentifier(int satId) |
void | setSatelliteSystem(QGeoSatelliteInfo::SatelliteSystem system) |
void | setSignalStrength(int signalStrength) |
int | signalStrength() const |
bool | operator!=(const QGeoSatelliteInfo &other) const |
QGeoSatelliteInfo & | operator=(const QGeoSatelliteInfo &other) |
bool | operator==(const QGeoSatelliteInfo &other) const |
QDataStream & | operator<<(QDataStream &stream, const QGeoSatelliteInfo &info) |
QDataStream & | operator>>(QDataStream &stream, QGeoSatelliteInfo &info) |
The QGeoSatelliteInfo class contains basic information about a satellite.
See also QGeoSatelliteInfoSource.
Defines the attributes for the satellite information.
Constant | Value | Description |
---|---|---|
QGeoSatelliteInfo::Elevation |
0 |
The elevation of the satellite, in degrees. |
QGeoSatelliteInfo::Azimuth |
1 |
The azimuth to true north, in degrees. |
Defines the GNSS system of the satellite.
Constant | Value | Description |
---|---|---|
QGeoSatelliteInfo::Undefined |
0x00 |
Not defined. |
QGeoSatelliteInfo::GPS |
0x01 |
Global Positioning System (USA). |
QGeoSatelliteInfo::GLONASS |
0x02 |
Global Positioning System (Russia). |
Creates a satellite information object.
Creates a satellite information object with the values of other.
Destroys a satellite information object.
Returns the value of the specified attribute as a qreal value.
Returns -1 if the value has not been set.
See also hasAttribute() and setAttribute().
Returns true if the specified attribute is present in this update.
Removes the specified attribute and its value.
Returns the satellite identifier number.
The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.
See also setSatelliteIdentifier().
Returns the Satellite System (GPS, GLONASS, ...)
See also setSatelliteSystem().
Sets the value for attribute to value.
See also attribute().
Sets the satellite identifier number to satId.
The satellite identifier number can be used to identify a satellite inside the satellite system. For satellite system GPS the satellite identifier number represents the PRN (Pseudo-random noise) number. For satellite system GLONASS the satellite identifier number represents the slot number.
See also satelliteIdentifier().
Sets the Satellite System (GPS, GLONASS, ...) to system.
See also satelliteSystem().
Sets the signal strength to signalStrength, in decibels.
See also signalStrength().
Returns the signal strength, or -1 if the value has not been set.
See also setSignalStrength().
Returns true if any of the information for this satellite are not the same as those of other.
Assigns the values from other to this object.
Returns true if all the information for this satellite are the same as those of other.
Writes the given info to the specified stream.
See also Serializing Qt Data Types.
Reads satellite information from the specified stream into the given info.
See also Serializing Qt Data Types.