phoneengine/phonemodel/inc/cpeparsersimcontrolhandler.h
changeset 0 5f000ab63145
child 21 92ab7f8d0eab
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2006 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:  This file contains the header file of the
       
    15 *                CPEParserSimControlHandler object
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPEPARSERSIMCONTROLHANDLER_H
       
    21 #define CPEPARSERSIMCONTROLHANDLER_H
       
    22 
       
    23 //INCLUDES
       
    24 #include <CPhoneGsmSimControlHandler.h>
       
    25 #include <pevirtualengine.h>
       
    26 
       
    27 // CONSTANTS
       
    28 // None.
       
    29 
       
    30 // MACROS
       
    31 // None.
       
    32 
       
    33 // DATA TYPES
       
    34 // None.
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 // None.
       
    38 
       
    39 // FORWARD DECLARATIONS
       
    40 class MPEContactHandling;
       
    41 class MPEPhoneModelInternal;
       
    42 class CManualSecuritySettings;
       
    43 
       
    44 // CLASS DECLARATION
       
    45 
       
    46 /**
       
    47 *  Provides processing for ICC/SIM related Phone Parser requests
       
    48 *
       
    49 *  @lib phoneenginegsm.lib
       
    50 *  @since Series 60 4.0
       
    51 */
       
    52 NONSHARABLE_CLASS( CPEParserSimControlHandler ) : public CPhoneGsmSimControlHandler
       
    53     {
       
    54     public:  //Constructors and descructor    
       
    55 
       
    56         /**
       
    57         * Two-phased constructor.
       
    58         */
       
    59         static CPEParserSimControlHandler* NewL
       
    60             (
       
    61             MPEPhoneModelInternal& aModel, 
       
    62             MPEContactHandling& aContactHandling );
       
    63 
       
    64         /**
       
    65         * Destructor.
       
    66         */
       
    67         virtual ~CPEParserSimControlHandler();
       
    68 
       
    69     public: // Functions from base classes
       
    70 
       
    71         /**
       
    72         * Change pin code
       
    73         *
       
    74         * @param aType It is type of pin.
       
    75         * @param aOldPin It is old pin.
       
    76         * @param aNewPin It is new pin.
       
    77         * @param aNewPin2 It is new pin.
       
    78         * @return None. 
       
    79         */
       
    80         void ProcessChangePinL
       
    81                 ( 
       
    82                 TPinCode aType, 
       
    83                 const TDesC& aOldPin, 
       
    84                 const TDesC& aNewPin, 
       
    85                 const TDesC& aVerifyNew 
       
    86                 );
       
    87 
       
    88         /**
       
    89         * Unblock pin code.
       
    90         *
       
    91         * @param aType It is type of pin to unblock.
       
    92         * @param aPuk It is unblocking code.
       
    93         * @param aNewPin It is new pin.
       
    94         * @param aNewPin2 It is new pin.
       
    95         * @return None. 
       
    96         */
       
    97         void ProcessUnblockPinL
       
    98                 ( 
       
    99                 TPinCode aType, 
       
   100                 const TDesC& aPuk, 
       
   101                 const TDesC& aNewPin, 
       
   102                 const TDesC& aVerifyNew 
       
   103                 );
       
   104     
       
   105     private:
       
   106 
       
   107         /**
       
   108         * C++ default constructor.
       
   109         */
       
   110         CPEParserSimControlHandler
       
   111                 ( 
       
   112                 MPEPhoneModelInternal& aModel, 
       
   113                 MPEContactHandling& aContactHandling
       
   114                 );
       
   115 
       
   116     private:
       
   117         //MPEPhoneModelInternal is used to send message to the phone application
       
   118         MPEPhoneModelInternal& iModel;
       
   119         // Handle to contact handling
       
   120         MPEContactHandling& iContactHandling;
       
   121         // Contains information of the Suplementary Services command.
       
   122         TPESSCommandInfo iSupplementaryServicesCommandInfo;
       
   123         // Security model
       
   124         CManualSecuritySettings* iSecurityModel;
       
   125     };
       
   126 
       
   127 #endif // CPEPARSERSIMCONTROLHANDLER_H
       
   128             
       
   129 // End of File