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

📄 mguardcmdmain.cpp,v

📁 symbian s60手机上的短信拦截源代码。
💻 CPP,V
字号:
head	1.1;access;symbols;locks; strict;comment	@// @;1.1date	2007.08.22.11.25.58;	author administrator;	state Exp;branches;next	;deltatype	text;permissions	644;commitid	57446cc1d463b5a;kopt	kv;filename	@MGuardCmdMain.cpp@;desc@@1.1log@no message@text@/** ============================================================================*  Name     : MGuardCmdHandler.cpp*  Part of  : MGuardCmdHandler*  Created  : 15.08.2007 by xueyw*  Description:*     Exe source file*  Version  :*  Copyright: * ============================================================================*///  Include Files  #include "MGuardCmdMain.h"#include "MGuardCommand.h"#include <e32base.h>#include <e32std.h>//#include <e32cons.h>            // Console#include <f32file.h>//  Constants_LIT(KTextConsoleTitle, "MGuardCmdHandler");//  Global Variables//LOCAL_D CConsoleBase* console;  // write all messages to this//  Local FunctionsLOCAL_C void MainL(const TDesC& aArgs)    {//		console->Write( aArgs );		HBufC* aCmdText = aArgs.AllocL();		CMGuardCmd* aCmd = CMGuardCmd::NewL( *aCmdText );		aCmd->Execute();		delete aCmd;		delete aCmdText;    }LOCAL_C void DoStartL()    {    // Create active scheduler (to run active objects)    CActiveScheduler* scheduler = new (ELeave) CActiveScheduler();    CleanupStack::PushL(scheduler);    CActiveScheduler::Install(scheduler);    // Call main function with command line    TBuf<256> cmdLine;    RProcess().CommandLine(cmdLine);    MainL(cmdLine);    // Delete active scheduler    CleanupStack::PopAndDestroy(scheduler);    }//  Global FunctionsGLDEF_C TInt E32Main()    {    // Create cleanup stack    __UHEAP_MARK;    CTrapCleanup* cleanup = CTrapCleanup::New();    // Create output console    //TRAPD(createError, console = Console::NewL(KTextConsoleTitle, TSize(KConsFullScreen,KConsFullScreen)));    //if (createError)    //    return createError;    // Run application code inside TRAP harness    TRAPD(mainError, DoStartL());    //    delete console;    delete cleanup;    __UHEAP_MARKEND;    return KErrNone;    }// End of file@

⌨️ 快捷键说明

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