CSMSExampleParser Class Reference

List of all members.

Public Member Functions

IMPORT_C ~CSMSExampleParser (void)
IMPORT_C TBool ParseMessage (const TDesC &aMessage, TDes &aNumber)

Static Public Member Functions

static IMPORT_C CSMSExampleParserNewL ()

Detailed Description

Parser that searches for a number from SMS message body.

Definition at line 14 of file SMSExampleParser.h.

Constructor & Destructor Documentation

EXPORT_C CSMSExampleParser::~CSMSExampleParser ( void   ) 


Definition at line 13 of file SMSExampleParser.cpp.

Member Function Documentation

EXPORT_C CSMSExampleParser * CSMSExampleParser::NewL (  )  [static]

Create new CSMSExampleParser object

a pointer to the created instance of CSMSExampleParser.

Definition at line 17 of file SMSExampleParser.cpp.

EXPORT_C TBool CSMSExampleParser::ParseMessage ( const TDesC &  aMessage,
TDes &  aNumber 

Parse body and try to find a number.

aMessage SMS message body.
aNumber Found number. Searches for exactly 10 digits that are one after another(no whitespaces).
ETrue if found, EFalse otherwise.

Definition at line 30 of file SMSExampleParser.cpp.

Generated by  doxygen 1.6.2