www.pudn.com > HPMapx.rar > bluetoothgps.h


// bluetoothgps.h 
 
#ifndef _BLUETOOTHGPS_H__ 
#define _BLUETOOTHGPS_H__ 
 
#pragma once 
 
#include "SerialPort.h" 
#include "GpsData.HPP" 
 
// build by brent. 
 
class CBlueToothGPS : public CWnd 
{ 
public: 
 
	CBlueToothGPS(); 
	virtual ~CBlueToothGPS(){ m_Comm.Close();} 
	bool	OpenGPS(); 
 
public: 
	//{{AFX_VIRTUAL(CBlueToothGPS) 
	public: 
	//}}AFX_VIRTUAL 
	 
protected: 
 
	//{{AFX_MSG(CBlueToothGPS) 
	//}}AFX_MSG 
	afx_msg LONG OnRecvMessage(WPARAM ch, LPARAM port); 
	DECLARE_MESSAGE_MAP() 
private: 
	HWND	hwParentWindow; 
	CCommCE m_Comm; 
	char	m_MainMsg[MAX_PATH]; 
	 
	GPS_TYPE   CurrentType; 
	MyData*	   m_GpsData; 
 
	void		ParseData();	 
	GPS_TYPE	IsValid(); 
public: 
	void	Clear(); 
	double	GetMapPosX(); 
	double	GetMapPosY(); 
	double	GetUTCTime(); 
	double	GetSpeed(); 
	float	GetDirection(); 
	int	GetStarNumber(); 
	 
	// still Coding yet.by brent. 
	 
}; 
//{{AFX_INSERT_LOCATION}} 
#endif