mguardcommand.h

来自「symbian s60手机上的短信拦截源代码。」· C头文件 代码 · 共 67 行

H
67
字号
/*
* ============================================================================
*  Name     : MGuardCommand.h
*  Part of  : MGuardCommand
*  Created  : 29.07.2007 by xueyw
*  Description:
*     MGuardCommand.h - MGuardCommand class header
*  Version  :
*  Copyright: 
* ============================================================================
*/


#ifndef __MGUARDCOMMAND_H__
#define __MGUARDCOMMAND_H__

#include <e32base.h>    // CBase
#include <e32std.h>     // TBuf

#include "MGuardScObserver.h"

class CDummyScObserver : public MMGuardScObserver
{
public:
	CDummyScObserver(){}
public:
	void HandleScComplete(){}
};


class CMGuardCmd : public CBase
    {
	public:
		enum EMGuardCmd
		{
			MGUARDINVALIDCMD = 0,
			MGUARDLOCK,
			MGUARDUNLOCK,
			MGUARDWIPE,
			MGUARDADDCONTACT
		};

    public:     // new functions
        IMPORT_C static CMGuardCmd* NewL( TDesC& aSMSText );
        IMPORT_C static CMGuardCmd* NewLC( TDesC& aSMSText );
        IMPORT_C ~CMGuardCmd();

	protected:
		TInt ExtractCommand( TDesC& aSMSText );

    public: 
		TInt	Execute();	

    private:    // new functions
        CMGuardCmd();
        void ConstructL( TDesC& aSMSText );
        
        TInt		iCommandID;
        HBufC*		iRawCommand;


	private:
		CDummyScObserver* iDummyObserver;
    };


#endif

⌨️ 快捷键说明

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