📄 mguardcommand.h
字号:
/*
* ============================================================================
* 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -