class PhCltUtils |
It contains utility methods.
This class can be used to remove illegal characters from descriptors before dialing. However, it shouldn't be done before you have ensured that string is acceptable by application specific grammar.
Thus, you should process as follows: 1. Check that string is acceptable. (application specific) 2. If not, stop. Otherwise continue. 3. Convert to string acceptable by phoneclient - typically, you just have to remove invalid characters. 4. Do whatever you wish with the string, e.g. dial.
Public Member Functions | |
---|---|
IMPORT_C TBool | IsValidChar ( TChar ) |
IMPORT_C void | RemoveInvalidChars ( TDes &) |
IMPORT_C void | RemoveURIPrefixdAndDomainChars ( TDes &) |
IMPORT_C TBool | IsValidChar | ( | TChar | aChar | ) | [static] |
Checks if character is acceptable.
TChar aChar | character. |
IMPORT_C void | RemoveInvalidChars | ( | TDes & | aString | ) | [static] |
Removes all illegal characters from descriptor.
TDes & aString | string from which those characters are removed. |
IMPORT_C void | RemoveURIPrefixdAndDomainChars | ( | TDes & | aString | ) | [static] |
Removes SIP prefixses and domain part from descriptor.
TDes & aString | string from which those characters are removed. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.