telutils/phoneparser/inc/CPhoneGsmImeiParser.h
branchRCL_3
changeset 19 7d48bed6ce0c
parent 18 594d59766373
child 20 987c9837762f
equal deleted inserted replaced
18:594d59766373 19:7d48bed6ce0c
     1 /*
       
     2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  It is parser for Imei string.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEGSMIMEIPARSER_H_
       
    20 #define CPHONEGSMIMEIPARSER_H_
       
    21 
       
    22 // INCLUDES
       
    23 #include    "CPhoneGsmParserBase.h"
       
    24 
       
    25 // CONSTANTS
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 * It is parser for IMEI string.
       
    32 *
       
    33 * @since 1.0
       
    34 * @lib phoneparser.lib
       
    35 */
       
    36 NONSHARABLE_CLASS( CPhoneGsmImeiParser )
       
    37     : public CPhoneGsmParserBase
       
    38     {
       
    39     public:  // Constructors and destructor      
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CPhoneGsmImeiParser* NewLC();
       
    45         
       
    46     public: // Functions from base classes
       
    47 
       
    48         /**
       
    49         * From CPhoneGsmParserBase, parses string.
       
    50         *
       
    51         * @param aString string to be parsed.
       
    52         * @param aResult It will contain result.
       
    53         * @param aOptions It contains all options related to parsing.
       
    54         * @return It returns boolean value indicating success of parsing.
       
    55         */
       
    56         TBool ParseL( 
       
    57             const TDesC& aString,
       
    58             CPhoneGsmParserResult& aResult,
       
    59             CPhoneGsmOptionContainerBase& aOptions );
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64         * C++ default constructor.
       
    65         */
       
    66         CPhoneGsmImeiParser();
       
    67 
       
    68     };
       
    69 
       
    70 #endif /*CPHONEGSMIMEIPARSER_H_*/
       
    71 
       
    72 // End of File