#ifndef SATELLITEACCESS_H
#define SATELLITEACCESS_H
#include <QtCore>
#include<QDebug>
#include <qgeosatelliteinfo.h>
#include <qgeosatelliteinfosource.h>
// Use the QtMobility namespace
using namespace QtMobility;
class SatelliteAccess : public QObject
{
Q_OBJECT
public:
SatelliteAccess(QObject *parent = 0): QObject(parent)
{
//startSatelliteMonitor();
}
private slots:
/**
* Called when the number of satellites in use is updated.
*/
void satellitesInUseUpdated(const QList<QGeoSatelliteInfo> &satellites);
/**
* Called when the number of satellites in view is updated.
*/
void satellitesInViewUpdated(
const QList<QGeoSatelliteInfo> &satellites);
signals :
void SatellitesUsedUpdate(QList<QGeoSatelliteInfo> info );
void SatelliteViewUpdate(QList<QGeoSatelliteInfo> info);
private:
QGeoSatelliteInfoSource *satelliteInfoSource;
void startSatelliteMonitor();
};
#endif // SATELLITEACCESS_H