commonphoneparser.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : CommonPhoneParser.h
00004 *  Part of     : Common Services / Common Engine
00005 *  Interface   : SDK, Phone Parser API
00006 *  Description : Offers methods for parsing and validating phone numbers.
00007 *  Version     : %version: ou1cfspd#9 %
00008 *
00009 *  Copyright © 2002-2006 Nokia.  All rights reserved.
00010 *  This material, including documentation and any related computer
00011 *  programs, is protected by copyright controlled by Nokia.  All
00012 *  rights are reserved.  Copying, including reproducing, storing,
00013 *  adapting or translating, any or all of this material requires the
00014 *  prior written consent of Nokia.  This material also contains
00015 *  confidential information which may not be disclosed to others
00016 *  without the prior written consent of Nokia.
00017 * ============================================================================
00018 */
00019 
00020 #ifndef COMMONPHONEPARSER_H
00021 #define COMMONPHONEPARSER_H
00022 
00023 //  INCLUDES
00024 #include    <coemain.h>
00025 
00026 
00027 // CLASS DECLARATION
00028 
00080 class CommonPhoneParser
00081     {
00082     public:
00083 
00089         enum TPhoneNumberType
00090             {
00093             EPlainPhoneNumber,
00096             EContactCardNumber,
00099             EPhoneClientNumber,
00102             ESMSNumber
00103             };
00104 
00117         IMPORT_C static TBool ParsePhoneNumber( TDes& aNumber, 
00118                                                 TPhoneNumberType aType );
00119 
00130         IMPORT_C static TBool IsValidPhoneNumber( const TDesC& aNumber,
00131                                                   TPhoneNumberType aType );
00132         
00144         static TBool IsValidPhoneNumber( const TDesC& aNumber,
00145                                          const TDesC& aValidChars);
00153         static void ParseInvalidChars( TDes& aNumber,
00154                                        const TDesC& aInvalidChars);
00155     };
00156 
00157 // COMMONPHONEPARSER_H
00158 #endif
00159             
00160 // End of File

Copyright © Nokia Corporation 2001-2008
Back to top