phoneapp/phoneuistates/inc/cphonestatemachinegsm.h
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
equal deleted inserted replaced
36:2eacb6118286 37:ba76fc04e6c2
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *       The class implements a GSM-specific state machine
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONESTATEMACHINEGSM_H
       
    21 #define CPHONESTATEMACHINEGSM_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "cphonestatemachine.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class MPhoneCustomization;
       
    30 
       
    31 /**
       
    32 *  The class implements a GSM-specific state machine
       
    33 */
       
    34 
       
    35 class CPhoneStateMachineGSM : public CPhoneStateMachine
       
    36     {
       
    37     public:  
       
    38 
       
    39         /**
       
    40         * Destructor.
       
    41         */
       
    42         IMPORT_C virtual ~CPhoneStateMachineGSM();
       
    43 
       
    44     public: // New functions
       
    45         
       
    46         /**
       
    47         * Creates the only instance of state machine class
       
    48         * @param aViewCommandHandle: a handle to the Phone UI view
       
    49         * @return an instance of class CPhoneStateMachine
       
    50         */
       
    51         static CPhoneStateMachineGSM* NewL(
       
    52             MPhoneViewCommandHandle* aViewCommandHandle );
       
    53 
       
    54     public: // From MPhoneStateMachine
       
    55 
       
    56         /**
       
    57         * Returns active state
       
    58         */
       
    59         IMPORT_C MPhoneState* State();
       
    60         
       
    61         /**
       
    62         * Instantiates protocol specific Phone Engine
       
    63         * @param reference to Engine Monitor
       
    64         * @return Phone Engine instance
       
    65         */
       
    66         IMPORT_C MPEPhoneModel* CreatePhoneEngineL( MEngineMonitor& aEngineMonitor );
       
    67 
       
    68     protected:
       
    69 
       
    70         /**
       
    71         * By default EPOC constructor is private.
       
    72         */
       
    73         IMPORT_C CPhoneStateMachineGSM(
       
    74             MPhoneViewCommandHandle* aViewCommandHandle );
       
    75  
       
    76         // Phone customization
       
    77         MPhoneCustomization* iCustomization;
       
    78         
       
    79     private: // Data
       
    80     
       
    81         // Is emergency object instantiated - needed to prevent multiple instantiation
       
    82         TBool iEmergencyStateConstructed;
       
    83     
       
    84          // Emergency state which is hold in memory all the time.
       
    85         MPhoneState* iEmergencyState;         
       
    86     };
       
    87 
       
    88 #endif      // CPHONESTATEMACHINEGSM_H
       
    89             
       
    90 // End of File