smsexampleparser.h

来自「symbian平台」· C头文件 代码 · 共 63 行

H
63
字号
/*
* ============================================================================
*  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 + =
减小字号Ctrl + -
显示快捷键?