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

📄 mobile.h

📁 功能介绍:通过COM口或红外线口连接手机发送短信、自动判断中英文进行PDU编码
💻 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_)

⌨️ 快捷键说明

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