QGeoSatelliteInfo Class▲
-
Header: QGeoSatelliteInfo
-
Since: Qt 5.2
-
qmake: QT += positioning
-
Group: QGeoSatelliteInfo is part of QtPositioning-positioning
Detailed Description▲
Member Type Documentation▲
enum QGeoSatelliteInfo::Attribute▲
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. |
enum QGeoSatelliteInfo::SatelliteSystem▲
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). |
Member Function Documentation▲
QGeoSatelliteInfo::QGeoSatelliteInfo()▲
Creates a satellite information object.
QGeoSatelliteInfo::QGeoSatelliteInfo(const QGeoSatelliteInfo &other)▲
Creates a satellite information object with the values of other.
QGeoSatelliteInfo::~QGeoSatelliteInfo()▲
Destroys a satellite information object.
qreal QGeoSatelliteInfo::attribute(QGeoSatelliteInfo::Attribute attribute) const▲
Returns the value of the specified attribute as a qreal value.
Returns -1 if the value has not been set.
See Also▲
See also hasAttribute(), setAttribute()
bool QGeoSatelliteInfo::hasAttribute(QGeoSatelliteInfo::Attribute attribute) const▲
Returns true if the specified attribute is present in this update.
void QGeoSatelliteInfo::removeAttribute(QGeoSatelliteInfo::Attribute attribute)▲
Removes the specified attribute and its value.
int QGeoSatelliteInfo::satelliteIdentifier() const▲
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▲
See also setSatelliteIdentifier()
QGeoSatelliteInfo::SatelliteSystem QGeoSatelliteInfo::satelliteSystem() const▲
void QGeoSatelliteInfo::setAttribute(QGeoSatelliteInfo::Attribute attribute, qreal value)▲
void QGeoSatelliteInfo::setSatelliteIdentifier(int satId)▲
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▲
See also satelliteIdentifier()
void QGeoSatelliteInfo::setSatelliteSystem(QGeoSatelliteInfo::SatelliteSystem system)▲
void QGeoSatelliteInfo::setSignalStrength(int signalStrength)▲
int QGeoSatelliteInfo::signalStrength() const▲
Returns the signal strength, or -1 if the value has not been set.
See Also▲
See also setSignalStrength()
bool QGeoSatelliteInfo::operator!=(const QGeoSatelliteInfo &other) const▲
Returns true if any of the information for this satellite are not the same as those of other.
QGeoSatelliteInfo &QGeoSatelliteInfo::operator=(const QGeoSatelliteInfo &other)▲
Assigns the values from other to this object.
bool QGeoSatelliteInfo::operator==(const QGeoSatelliteInfo &other) const▲
Returns true if all the information for this satellite are the same as those of other.
Related Non-Members▲
QDataStream &operator<<(QDataStream &stream, const QGeoSatelliteInfo &info)▲
QDataStream &operator>>(QDataStream &stream, QGeoSatelliteInfo &info)▲
Reads satellite information from the specified stream into the given info.
See Also▲
See also Serializing Qt Data Types