Public Member Functions | |
IMPORT_C | ~CSMSExampleParser (void) |
IMPORT_C TBool | ParseMessage (const TDesC &aMessage, TDes &aNumber) |
Static Public Member Functions | |
static IMPORT_C CSMSExampleParser * | NewL () |
Parser that searches for a number from SMS message body.
Definition at line 14 of file SMSExampleParser.h.
EXPORT_C CSMSExampleParser::~CSMSExampleParser | ( | void | ) |
Destructor.
Definition at line 13 of file SMSExampleParser.cpp.
EXPORT_C CSMSExampleParser * CSMSExampleParser::NewL | ( | ) | [static] |
Create new CSMSExampleParser object
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). |
Definition at line 30 of file SMSExampleParser.cpp.