phonesrv_plat/string_parser_api/inc/CPhoneGsmSimControlHandler.h
changeset 0 ff3b6d0fd310
child 19 7d48bed6ce0c
equal deleted inserted replaced
-1:000000000000 0:ff3b6d0fd310
       
     1 /*
       
     2 * Copyright (c) 2002 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 handler for SIM control procedures.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPHONEGSMSIMCONTROLHANDLER_H
       
    20 #define CPHONEGSMSIMCONTROLHANDLER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include    "CPhoneGsmHandlerBase.h"
       
    24 
       
    25 // CLASS DECLARATION
       
    26 
       
    27 /**
       
    28 * It is handler for sim control procedures.
       
    29 *
       
    30 * @since 1.0
       
    31 * @lib phoneparser.lib
       
    32 */
       
    33 class CPhoneGsmSimControlHandler 
       
    34     : public CPhoneGsmHandlerBase
       
    35     {
       
    36     public: // New functions
       
    37         
       
    38         /**
       
    39         * It defines different types of codes.
       
    40         */
       
    41         enum TPinCode 
       
    42             {
       
    43             EPinCode,
       
    44             EPin2Code
       
    45             };
       
    46 
       
    47         /**
       
    48         * Change pin code
       
    49         *
       
    50         * @param aType It is type of pin.
       
    51         * @param aOldPin It is old pin.
       
    52         * @param aNewPin It is new pin.
       
    53         * @param aNewPin2 It is new pin.
       
    54         */
       
    55         virtual void ProcessChangePinL( 
       
    56             TPinCode aType, 
       
    57             const TDesC& aOldPin,
       
    58             const TDesC& aNewPin,
       
    59             const TDesC& aNewPin2 ) = 0;
       
    60 
       
    61         /**
       
    62         * Unblock pin code.
       
    63         *
       
    64         * @param aType It is type of pin to unblock.
       
    65         * @param aPuk It is unblocking code.
       
    66         * @param aNewPin It is new pin.
       
    67         * @param aNewPin2 It is new pin.
       
    68         */
       
    69         virtual void ProcessUnblockPinL(
       
    70             TPinCode aType,
       
    71             const TDesC& aPuk,
       
    72             const TDesC& aNewPin,
       
    73             const TDesC& aNewPin2 ) = 0;
       
    74     
       
    75     public: // Functions from base classes
       
    76 
       
    77         /**
       
    78         * From CPhoneGsmHandlerBase, process the results of parsing.
       
    79         *
       
    80         * @param aResult It is results to be processed.
       
    81         */
       
    82         IMPORT_C virtual void ProcessL( 
       
    83             CPhoneGsmParserResult& aResult );
       
    84 
       
    85     private:
       
    86 
       
    87         /**
       
    88         * Process pin change.
       
    89         */
       
    90         void ProcessPinChangeL(
       
    91             TPinCode aType,
       
    92             CPhoneGsmParserResult& aResult );
       
    93 
       
    94         /**
       
    95         * Process pin unblock.
       
    96         */
       
    97         void ProcessPinUnblockL(
       
    98             TPinCode aType,
       
    99             CPhoneGsmParserResult& aResult );
       
   100     };
       
   101 
       
   102 #endif      // CPHONEGSMSIMCONTROLHANDLER_H
       
   103             
       
   104 // End of File