telutils/phoneparser/src/CPhoneGsmPcnProcedureHandler.cpp
changeset 46 2fa1fa551b0b
parent 42 35488577e233
child 48 78df25012fda
equal deleted inserted replaced
42:35488577e233 46:2fa1fa551b0b
     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:  Handler for PCN procedures.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "cphonegsmpcnprocedurehandler.h" 
       
    21 #include    "cphonegsmparserresult.h" 
       
    22 #include    "cphonegsmpcnprocedureparser.h" 
       
    23 
       
    24 // CONSTANTS
       
    25 
       
    26 // Position of password in SIM codes.
       
    27 const TInt KPhoneGsmPcnSimPasswordParamAt = 0;
       
    28 
       
    29 // Position of type in SIM codes.
       
    30 const TInt KPhoneGsmPcnSimTypeParamAt = 1;
       
    31 
       
    32 // ============================ MEMBER FUNCTIONS ===============================
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CPhoneGsmPcnProcedureHandler::ProcessL
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 EXPORT_C void CPhoneGsmPcnProcedureHandler::ProcessL( 
       
    39         CPhoneGsmParserResult& aResult )
       
    40     {
       
    41     switch ( aResult.Uid() )
       
    42         {
       
    43         case KPhoneUidSimLockCode:
       
    44             ProcessSimLockL( 
       
    45                 aResult.ParameterAt( KPhoneGsmPcnSimPasswordParamAt ),
       
    46                 aResult.ParameterAt( KPhoneGsmPcnSimTypeParamAt ) );
       
    47             break;
       
    48 
       
    49         case KPhoneUidSimUnlockCode:
       
    50             ProcessSimUnlockL(
       
    51                 aResult.ParameterAt( KPhoneGsmPcnSimPasswordParamAt ),
       
    52                 aResult.ParameterAt( KPhoneGsmPcnSimTypeParamAt ) );
       
    53             break;
       
    54 
       
    55         default:
       
    56             break;
       
    57         }
       
    58     }
       
    59 
       
    60 //  End of File