mobile.h

来自「windows ce开发技巧与实例光盘代码」· C头文件 代码 · 共 67 行

H
67
字号
//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_)

⌨️ 快捷键说明

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