19 #ifndef _STELLOCATIONMGR_P_HPP_ 20 #define _STELLOCATIONMGR_P_HPP_ 26 #include "StelLocationMgr.hpp" 30 class GPSLookupHelper :
public QObject
34 GPSLookupHelper(QObject* parent) : QObject(parent)
39 virtual bool isReady() = 0;
43 virtual void query() = 0;
49 void queryError(
const QString& msg);
55 class LibGPSLookupHelper :
public GPSLookupHelper
59 LibGPSLookupHelper(QObject * parent);
60 ~LibGPSLookupHelper();
62 virtual bool isReady() Q_DECL_OVERRIDE;
63 virtual
void query() Q_DECL_OVERRIDE;
68 #endif //ENABLE_LIBGPS 70 #include <QNmeaPositionInfoSource> 71 #include <QSerialPort> 72 #include <QSerialPortInfo> 73 class NMEALookupHelper :
public GPSLookupHelper
77 NMEALookupHelper(QObject* parent);
78 virtual bool isReady() Q_DECL_OVERRIDE
83 virtual void query() Q_DECL_OVERRIDE;
85 void nmeaError(QGeoPositionInfoSource::Error error);
86 void nmeaUpdated(const QGeoPositionInfo &update);
90 QNmeaPositionInfoSource* nmea;
95 #endif // _STELLOCATIONMGR_P_HPP_ Store the informations for a location on a planet.