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

📄 mguardmsgconsole.h,v

📁 symbian s60手机上的短信拦截源代码。
💻 H,V
字号:
head	1.4;access;symbols	v1_0:1.1.1.2	xueyw:1.1.1	v111:1.1.1.2	MGuard:1.1.1	arelease:1.1.1.1	avendor:1.1.1;locks; strict;comment	@ * @;1.4date	2007.08.08.13.49.47;	author administrator;	state Exp;branches;next	1.3;deltatype	text;permissions	644;commitid	92446b9c9fa638d;kopt	kv;filename	@MGuardMsgConsole.h@;1.3date	2007.07.31.13.30.45;	author administrator;	state Exp;branches;next	1.2;deltatype	text;permissions	644;commitid	90046af398463ec;kopt	kv;filename	@MGuardMsgConsole.h@;1.2date	2007.07.30.13.23.17;	author administrator;	state Exp;branches;next	1.1;deltatype	text;permissions	644;commitid	16846ade6441012;kopt	kv;filename	@MGuardMsgConsole.h@;1.1date	2007.07.24.10.59.30;	author administrator;	state Exp;branches	1.1.1.1;next	;deltatype	text;permissions	644;1.1.1.1date	2007.07.24.10.59.30;	author administrator;	state Exp;branches;next	1.1.1.2;deltatype	text;permissions	644;1.1.1.2date	2007.08.22.11.31.31;	author administrator;	state Exp;branches;next	;deltatype	text;permissions	644;commitid	81046cc1e913f93;kopt	kv;filename	@MGuardMsgConsole.h@;desc@@1.4log@add contact support (chs support)@text@/** ============================================================================*  Name     : MGuardMain.h*  Part of  : MGuardMain*  Created  : 18.07.2007 by xueyw*  Description:*     Exe header file*  Version  :*  Copyright: * ============================================================================*/#ifndef __MGUARDMSGCONSOLE_H__#define __MGUARDMSGCONSOLE_H__//  Include Files#include <e32base.h>#include "DatagramService.h"#include "MGuardKeyCapture.h"const TUid KSMSDatagramServiceInterfaceUID = {0x101FA9C3};const TUint KSMSMaxBufferSize = 256;_LIT8(KTestNumber, "+8613522892272"); // Change this 	_LIT8(KTestPattern, "//TEST");_LIT(KTestMessage, "Test SMS Message");_LIT(KInitTxt, "\nPress Any Key to Continue");_LIT(KTerminateTxt, "\nPress Any Key to Exit");_LIT(KTextEsc,"\n");_LIT(KSendingSMS, "\nSending SMS...");_LIT(KSentSMS, "\nSent SMS!");_LIT(KReceivingSMS, "\nReceiving SMS...");_LIT(KReceivedSMS, "\nReceived SMS\n!");class CMsgConsole : public CActive{public:	enum TMGuardConsoleState {EIdle, ESending, EReceiving};public:	// Static constuction	static CMsgConsole *NewLC( CConsoleBase* aConsole );	static CMsgConsole *NewL( CConsoleBase* aConsole );	// Construction	void ConstructL( CConsoleBase* aConsole );	// Destruction	~CMsgConsole();	// Issue request	//void RequestCharacter();	// Cancel request.	// Defined as pure virtual by CActive;	// implementation provided by this class.	void DoCancel();	void DoStartTestsL();	// Sends an SMS asynchronously.	void DoSendSMSL();			// Receives an SMS asynchronously	void DoReceiveSMSL();		// Service completed request.	// Defined as pure virtual by CActive;	// implementation provided by this class,	void RunL();	// Called from RunL() - an implementation must be provided	// by derived classes to handle the completed request	//virtual void ProcessKeyPress(TChar aChar); protected:	CMsgConsole();private:	CDatagramService* 	iService;		CDatagram* 			iDatagram;	HBufC* 			iBuf;	TMGuardConsoleState iState;	TBuf8<256>			iIncomingAddr;	CConsoleBase*		iConsole;};#endif@1.3log@keep sender's address@text@d28 1a28 1_LIT8(KTestMessage, "Test SMS Message");d88 1a88 1	HBufC8* 			iBuf;@1.2log@1. remove capture member2. move command excution to command class@text@d90 1@1.1log@Initial revision@text@d47 2a48 2	static CMsgConsole *NewLC( CGuardKeyCapturer* aCapture, CConsoleBase* aConsole );	static CMsgConsole *NewL( CGuardKeyCapturer* aCapture, CConsoleBase* aConsole );d51 1a51 1	void ConstructL( CGuardKeyCapturer* aCapture, CConsoleBase* aConsole );a89 1	CGuardKeyCapturer*	iCapturer;@1.1.1.1log@no message@text@@1.1.1.2log@no message@text@d20 1a20 2#include "MGuardScObserver.h"//#include "MGuardKeyCapture.h"d28 1a28 1_LIT(KTestMessage, "Test SMS Message");a36 1#include <msvapi.h>d38 1a38 10class dummyhandler: public MMsvSessionObserver{public:	virtual void HandleSessionEventL( TMsvSessionEvent, TAny*, TAny*, TAny* )	{	}};class CMsgConsole : public CActive, public MMGuardScObserverd47 2a48 2	static CMsgConsole *NewLC( CConsoleBase* aConsole );	static CMsgConsole *NewL( CConsoleBase* aConsole );d51 1a51 1	void ConstructL( CConsoleBase* aConsole );d56 2d64 1d67 1a67 1	void DoResponseL( TInt aRecvCmd );		d70 1a70 1	void DoInterceptL();	d77 3d84 1a84 2public:	void HandleScComplete();d86 5a90 1private:d92 1a92 7	CDatagramService* 		iService;		CDatagram* 				iDatagram;	HBufC* 					iBuf;	TMGuardConsoleState		iState;	TBuf8<20>				iIncomingAddr;	TBuf<20>				iSMSCenter;	CConsoleBase*			iConsole;a93 1@

⌨️ 快捷键说明

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