www.pudn.com > IrMobile.zip > Mobile.h


//Mobile control class by SkyVense 
//If you modified this file, please send a copy to skyvense@online.sh.cn 
//Thank you! 
 
 
//Last modifed 2002-02-29 by SkyVense 
 
// Mobile.h: interface for the CMobile class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MOBILE_H__9818BB98_F520_4307_9437_D56D603A1921__INCLUDED_) 
#define AFX_MOBILE_H__9818BB98_F520_4307_9437_D56D603A1921__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#include "CSerial.h" 
 
class CMobile   
{ 
public: 
	CMobile(); 
	virtual ~CMobile(); 
 
	BOOL ConnectMobile(int nPort, int Speed); 
	void DisConnectMobile(); 
	BOOL CloseEcho(); 
 
//Query Functions: 
	CString GetMobileFactory(); 
	CString GetMobileModel(); 
	CString GetMobileFirmwareVer(); 
	CString GetMobileIMEI(); 
	CString GetMobileFactorySerial(); 
 
	BOOL LockKeypad(BOOL bLock); 
	BOOL ShutdownMobile(); 
 
//SMS Functions: 
	BOOL SendSMS( 
		BOOL bNeedReply, 
		char *PhoneNumber, 
		char *Text 
		); 
 
	CString m_LastQueryResult,m_CommandResult; 
private:	 
	CSerial *cs; 
	BOOL ReadResponse(); 
	CString m_LastResponese; 
	 
 
	 
	void SendData(char *str); 
	BOOL AnalysisResponse(); 
	int EncodeData( 
					BOOL bNeedReply, 
					char *PhoneNumber, 
					char *Text,  
					char *ret 
				  ); 
}; 
 
#endif // !defined(AFX_MOBILE_H__9818BB98_F520_4307_9437_D56D603A1921__INCLUDED_)