⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gpsposition.h

📁 symbian s60上的GPS
💻 H
字号:

#ifndef __TGpsPosition_H__
#define __TGpsPosition_H__

#include <E32Base.h>

class TGpsPosition : public CBase 
{
public:
	IMPORT_C TGpsPosition( void );
	IMPORT_C TGpsPosition( const TReal & aLongitude, const TReal & aLatitude );
	IMPORT_C TGpsPosition( const TGpsPosition & aGpsPosition );
	IMPORT_C void Reset( void );

public:
	IMPORT_C void Set( const TReal & aLongitude, const TReal & aLatitude );
	IMPORT_C void Set( const TGpsPosition & aGpsPosition );

public:
	IMPORT_C void SetExtendedInfo( TBool aValidFixFlag, TInt aNumberOfSatellites, const TReal & aHdop );
	// in the NMEA format "hhmmss.dd".
	IMPORT_C void SetTimeInfo( const TReal & aUtcTime, TUint aTickCount );
	IMPORT_C void SetCourseData( const TReal & aHeading, const TReal & aSpeedInKnots, TBool aValidFlag );

public:
	IMPORT_C const TReal & Longitude( void ) const;
	IMPORT_C const TReal & Latitude( void ) const;

public:
	IMPORT_C TInt Satellites( void ) const;
	IMPORT_C const TReal & Hdop( void ) const;

public:
	IMPORT_C const TReal & UtcTime( void ) const;
	IMPORT_C TUint TickCount( void ) const;

public:
	IMPORT_C const TReal & Heading( void ) const;
	IMPORT_C const TReal & SpeedInKnots( void ) const;
	IMPORT_C const TReal SpeedInKmh( void ) const;
	IMPORT_C TBool CourseDataValid( void ) const;

public:
	IMPORT_C const TReal & Wgs84Longitude( void ) const;
	IMPORT_C const TReal & Wgs84Latitude( void ) const;
	IMPORT_C TBool IsValid( void ) const;

public:
	IMPORT_C const TDesC & ToStringL( void ) const;

protected:
	void ValidatePosition( void );

private:
	/* Position data first. */
	TReal		iLongitude;
	TReal		iLatitude;
	TBool		iPositionDataValid;

private:
	TInt		iNumberOfSatellites;
	TReal		iHdop;

private:
	/* Timing data. */
	TReal		iUtcTime;
	TUint		iTickCount;

private:
	/* Course data. */
	TReal		iHeading;
	TReal		iSpeedInKnots;
	TBool		iCourseDataValid;
};

#endif 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -