phoneengine/phonemodel/inc/cpepcnparserprocedurehandler.h
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2004 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:  Header file of the CPhoneGsmPcnProcedureHandler class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CPEPCNPARSERPROCEDUREHANDLER_H
       
    20 #define CPEPCNPARSERPROCEDUREHANDLER_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include    <cphonegsmpcnprocedurehandler.h>
       
    24 #include    "pevirtualengine.h"
       
    25 
       
    26 // CONSTANTS
       
    27 //None
       
    28 
       
    29 // MACROS
       
    30 //None
       
    31 
       
    32 // DATA TYPES
       
    33 //None
       
    34 
       
    35 // FUNCTION PROTOTYPES
       
    36 //None
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 //None
       
    40 
       
    41 // CLASS DECLARATION
       
    42 class CPEMessageHandler;
       
    43 class CPESecurityCommand;
       
    44 class CManualSecuritySettings;
       
    45 class MPEPhoneModelInternal;
       
    46 
       
    47 // DESCRIPTION
       
    48 // It is handler for GsmPcn procedures.
       
    49 
       
    50 NONSHARABLE_CLASS( CPEPcnParserProcedureHandler )
       
    51         :public CPhoneGsmPcnProcedureHandler
       
    52     {
       
    53     public:  //Constructors and descructor    
       
    54 
       
    55         /**
       
    56         * Two-phased constructor.
       
    57         */
       
    58         static CPEPcnParserProcedureHandler* NewL
       
    59             (
       
    60             CPEMessageHandler& aOwner,   // The owner of this object.  
       
    61             MPEPhoneModelInternal& aModel   // The reference parameter of the 
       
    62             );                              // phone model object which is used
       
    63                                             // to send message to the phone 
       
    64                                             // application.
       
    65         /**
       
    66         * Destructor.
       
    67         */
       
    68         virtual ~CPEPcnParserProcedureHandler();
       
    69 
       
    70 
       
    71     public: // New functions
       
    72         
       
    73         /**
       
    74         * Process SIM locking.
       
    75         *
       
    76         * Parameters are empty strings if SIM lock
       
    77         * code was just garbage.
       
    78         * 
       
    79         * @param aPassword sequence of digits.
       
    80         * @param aType sequence of digits.
       
    81         */
       
    82         void ProcessSimLockL( 
       
    83             const TDesC& aPassword, 
       
    84             const TDesC& aType );
       
    85 
       
    86         /**
       
    87         * Process SIM unlocking.
       
    88         *
       
    89         * Parameters are empty strings if SIM unlock
       
    90         * code was just garbage.
       
    91         * 
       
    92         * @param aPassword sequence of digits.
       
    93         * @param aType sequence of digits.
       
    94         */
       
    95         void ProcessSimUnlockL(
       
    96             const TDesC& aPassword,
       
    97             const TDesC& aType );
       
    98 
       
    99     private:
       
   100 
       
   101         /**
       
   102         * C++ default constructor.
       
   103         */
       
   104         void ConstructL();
       
   105 
       
   106         /**
       
   107         * C++ default constructor.
       
   108         */
       
   109         CPEPcnParserProcedureHandler
       
   110             ( 
       
   111             CPEMessageHandler& aOwner,  
       
   112             MPEPhoneModelInternal& aModel
       
   113             );
       
   114 
       
   115 
       
   116     private:    
       
   117         // CPEGsmMessageHandler object which owns this requester.
       
   118         CPEMessageHandler& iOwner;
       
   119         // Contains information of the Suplementary Services command.
       
   120         TPESSCommandInfo iSupplementaryServicesCommandInfo;
       
   121         //MPEPhoneModelInternal is used to send message to the phone application
       
   122         MPEPhoneModelInternal& iModel;
       
   123         // Security model
       
   124         CManualSecuritySettings* iSecurityModel;
       
   125 
       
   126     };
       
   127 
       
   128 #endif      // CPEPCNPARSERPROCEDUREHANDLER_H
       
   129             
       
   130 // End of File