📄 smsexampleparser.h
字号:
/*
* ============================================================================
* Name : CSMSExampleParser from SMSExampleParser.h
* Part of : SMSExample
* Created : 08.02.2005 by Forum Nokia
* Description:
* Parser that searches for a number from SMS message body.
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef SMSEXAMPLEPARSER_H
#define SMSEXAMPLEPARSER_H
// System includes
#include <e32base.h> // CBase
/**
* Parser
*/
class CSMSExampleParser
{
public:
/**
* Create new CSMSExampleParser object
*
* @return a pointer to the created instance of CSMSExampleParser.
*/
static CSMSExampleParser* NewL();
/**
* Destructor.
*/
~CSMSExampleParser(void);
/**
* Parse body and try to find a number.
* @param aMessage SMS message body.
* @param aNumber Found number. Searches for exactly 10 digits that are one after
* another(no whitespaces).
* @return ETrue if found, EFalse otherwise.
*/
TBool ParseMessage(TDesC& aMessage, TDes& aNumber);
private:
/**
* ConstructL()
*/
void ConstructL();
private:
/**
* A constructor.
*/
CSMSExampleParser(void);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -