RawLocationParser.hpp Example File
locationdiagnostics/src/RawLocationParser.hpp
#ifndef RAWLOCATIONPARSER_HPP
#define RAWLOCATIONPARSER_HPP
#include <QtCore/QObject>
#include <QtCore/QVariant>
class RawLocationParser
{
public:
RawLocationParser(const QVariant & replyData);
double latitude() const;
double longitude() const;
double altitude() const;
double horizontalAccuracy() const;
double verticalAccuracy() const;
double heading() const;
double speed() const;
double ttff() const;
double gpsWeek() const;
double gpsTow() const;
double utc() const;
double hdop() const;
double vdop() const;
double pdop() const;
bool propagated() const;
QString positionMethod() const;
QString error() const;
int numberOfSatellites() const;
double satelliteId(int satIndex) const;
double satelliteCarrierToNoiseRatio(int satIndex) const;
bool satelliteEphemerisAvailable(int satIndex) const;
double satelliteAzimuth(int satIndex) const;
double satelliteElevation(int satIndex) const;
bool satelliteTracked(int satIndex) const;
bool satelliteUsed(int satIndex) const;
bool satelliteAlmanac(int satIndex) const;
private:
double parseDouble(const QVariant & replyData, const QString & key) const;
bool parseBool(const QVariant & replyData, const QString & key) const;
QString parseString(const QVariant & replyData, const QString & key) const;
bool parseList(QVariantList *out, const QVariant & replyData, const QString & key) const;
QVariant m_replyData;
};
#endif