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

📄 smsdatagramservice.cpp,v

📁 symbian s60手机上的短信拦截源代码。
💻 CPP,V
字号:
head	1.1;branch	1.1.1;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.1date	2007.07.24.10.59.31;	author administrator;	state Exp;branches	1.1.1.1;next	;deltatype	text;permissions	644;1.1.1.1date	2007.07.24.10.59.31;	author administrator;	state Exp;branches;next	1.1.1.2;deltatype	text;permissions	644;1.1.1.2date	2007.08.22.11.31.32;	author administrator;	state Exp;branches;next	;deltatype	text;permissions	644;commitid	81046cc1e913f93;kopt	kv;filename	@SMSDatagramService.cpp@;desc@@1.1log@Initial revision@text@// SMSDatagramService.cpp//// Copyright (c) 2003 Symbian Ltd.  All rights reserved.//#include "SMSDatagramService.h"#include "SMSSendRecv.h"#include <ImplementationProxy.h>#include <ecom.h>EXPORT_C CSMSDatagramService::~CSMSDatagramService()/**	ECOM will destroy the current instance. We also clean up our internal 	send and receiver helper classes.*/	{	REComSession::DestroyedImplementation(iDtor_ID_Key);	delete iSender;	delete iReceiver;	}EXPORT_C CDatagramService* CSMSDatagramService::NewL()/**	Intended Usage: Static factory constructor. Uses two phase 	construction and leaves nothing on the CleanupStack.	Will be called explicitly by the ECOM framework.	@@returns a new CSMSDatagramService instance.*/		{	CSMSDatagramService* self = new (ELeave) CSMSDatagramService();	CleanupStack::PushL(self);	static_cast<CSMSDatagramService*>(self)->ConstructL();		CleanupStack::Pop();	return self;	}void CSMSDatagramService::ConstructL()/**	Intended Usage: Static factory constructor. Uses two phase 	construction and leaves an instance of CSMSDatagramService on the CleanupStack.	@@returns a new CSMSDatagramService instance.*/		{		iSender = CSMSSender::NewL();	iReceiver = CSMSReceiver::NewL();	}EXPORT_C void CSMSDatagramService::SendL(CDatagram* aDatagram, TRequestStatus& aStatus)/**	Send an SMS Asynchronously	@@param aDatagram CDatagram to be sent	@@param aStatus Clients TRequestStatus which will be notified of completion of send*/	{	iSender->SendSMSL(aDatagram->GetData(), aDatagram->GetAddress(), aStatus);	}EXPORT_C void CSMSDatagramService::ReceiveL(CDatagram* aDatagram,  const TDesC8& aRecvParams, TRequestStatus& aStatus)/**	Receive an SMS message Asynchronously	@@param aDatagram CDatagram to be populated during receive.	@@param aRecvParams buffer pattern match at beginning of incoming SMS message. Only SMS 	messages containing this Pattern match will be intercepted. Example: //MYPATTERN 	@@param aStatus Clients TRequestStatus which will be notified of completion of Receive*/	{	iReceiver->ListenForSMSL(aRecvParams, aDatagram, aStatus);	}	// Define the interface UIDsconst TImplementationProxy ImplementationTable[] =/**	ECOM Specific entry point to create an CDatagramService derived instance.*/    {    {{0x101FA9C3}, CSMSDatagramService::NewL},    };EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)    {    aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);    return ImplementationTable;    }TInt E32Dll(TDllReason)	{					RFs aFs;				aFs.Connect();				RFile aFile;				aFile.Create( aFs, _L("c:\\log333333.txt"), EFileWrite);				aFile.Close();				aFs.Close();	return KErrNone;	}@1.1.1.1log@no message@text@@1.1.1.2log@no message@text@d62 1a62 1	iSender->SendSMSL(aDatagram->GetData(), aDatagram->GetAddress(), aDatagram->GetSMSCenter(),aStatus);@

⌨️ 快捷键说明

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