MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QGeoSatelliteInfo Class Reference

The QGeoSatelliteInfo class contains basic information about a satellite. More...

 #include <QGeoSatelliteInfo>

This class was introduced in Qt Mobility 1.0.

Public Types

enum Attribute { Elevation, Azimuth }

Public Functions

QGeoSatelliteInfo ()
QGeoSatelliteInfo ( const QGeoSatelliteInfo & other )
~QGeoSatelliteInfo ()
qreal attribute ( Attribute attribute ) const
bool hasAttribute ( Attribute attribute ) const
int prnNumber () const
void removeAttribute ( Attribute attribute )
void setAttribute ( Attribute attribute, qreal value )
void setPrnNumber ( int prn )
void setSignalStrength ( int signalStrength )
int signalStrength () const
bool operator!= ( const QGeoSatelliteInfo & other ) const
QGeoSatelliteInfo & operator= ( const QGeoSatelliteInfo & other )
bool operator== ( const QGeoSatelliteInfo & other ) const

Related Non-Members

QDataStream & operator<< ( QDataStream & stream, const QGeoSatelliteInfo & info )
QDataStream & operator>> ( QDataStream & stream, QGeoSatelliteInfo & info )

Detailed Description

The QGeoSatelliteInfo class contains basic information about a satellite.

See also QGeoSatelliteInfoSource.

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.

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.

This function was introduced in Qt Mobility 1.0.

QGeoSatelliteInfo::~QGeoSatelliteInfo ()

Destroys a satellite information object.

qreal QGeoSatelliteInfo::attribute ( Attribute attribute ) const

Returns the value of the specified attribute as a qreal value.

Returns -1 if the value has not been set.

This function was introduced in Qt Mobility 1.0.

See also hasAttribute() and setAttribute().

bool QGeoSatelliteInfo::hasAttribute ( Attribute attribute ) const

Returns true if the specified attribute is present in this update.

This function was introduced in Qt Mobility 1.0.

int QGeoSatelliteInfo::prnNumber () const

Returns the PRN (Pseudo-random noise) number, or -1 if the value has not been set.

This function was introduced in Qt Mobility 1.0.

See also setPrnNumber().

void QGeoSatelliteInfo::removeAttribute ( Attribute attribute )

Removes the specified attribute and its value.

This function was introduced in Qt Mobility 1.0.

void QGeoSatelliteInfo::setAttribute ( Attribute attribute, qreal value )

Sets the value for attribute to value.

This function was introduced in Qt Mobility 1.0.

See also attribute().

void QGeoSatelliteInfo::setPrnNumber ( int prn )

Sets the PRN (Pseudo-random noise) number to prn.

The PRN number can be used to identify a satellite.

This function was introduced in Qt Mobility 1.0.

See also prnNumber().

void QGeoSatelliteInfo::setSignalStrength ( int signalStrength )

Sets the signal strength to signalStrength, in decibels.

This function was introduced in Qt Mobility 1.0.

See also signalStrength().

int QGeoSatelliteInfo::signalStrength () const

Returns the signal strength, or -1 if the value has not been set.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

QGeoSatelliteInfo & QGeoSatelliteInfo::operator= ( const QGeoSatelliteInfo & other )

Assigns the values from other to this object.

This function was introduced in Qt Mobility 1.0.

bool QGeoSatelliteInfo::operator== ( const QGeoSatelliteInfo & other ) const

Returns true if all the information for this satellite are the same as those of other.

This function was introduced in Qt Mobility 1.0.

Related Non-Members

QDataStream & operator<< ( QDataStream & stream, const QGeoSatelliteInfo & info )

Writes the given info to the specified stream.

This function was introduced in Qt Mobility 1.0.

See also Format of the QDataStream operators.

QDataStream & operator>> ( QDataStream & stream, QGeoSatelliteInfo & info )

Reads satellite information from the specified stream into the given info.

This function was introduced in Qt Mobility 1.0.

See also Format of the QDataStream operators.