phoneapp/phonemediatorcenter/inc/cphonecontinueemergencycallcommand.h
changeset 36 2eacb6118286
parent 30 ebdbd102c78a
child 37 ba76fc04e6c2
equal deleted inserted replaced
30:ebdbd102c78a 36:2eacb6118286
     1 /*
       
     2 * Copyright (c) 2008 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 *     Command for letting Phone Engine continue Emergency call initialization.
       
    16 *     This is needed because VT has to release dataport before we can continue
       
    17 *     emergency call. Otherwise VT call after emergency call fails as dataport
       
    18 *     isn't released.
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef CPHONECONTINUEEMERGENCYCALLCOMMAND_H
       
    24 #define CPHONECONTINUEEMERGENCYCALLCOMMAND_H
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 #include "mphoneshutdowncommand.h"
       
    29 #include "mphoneenginemessagesender.h"
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 class CPhoneContinueEmergencyCallCommand : public CBase, 
       
    36     public MPhoneShutdownCommand
       
    37     {
       
    38     public:  
       
    39 
       
    40         /**
       
    41          * Destructor.
       
    42          */
       
    43         virtual ~CPhoneContinueEmergencyCallCommand();
       
    44         
       
    45         /**
       
    46         * Two-phased constructor.
       
    47         */
       
    48         IMPORT_C static CPhoneContinueEmergencyCallCommand* NewL( 
       
    49             MPhoneEngineMessageSender& aEngineMessageSender );
       
    50         
       
    51         /**
       
    52         * Executes this Command.
       
    53         */
       
    54         virtual void ExecuteLD();
       
    55         
       
    56 
       
    57     private:
       
    58 
       
    59         /**
       
    60         * C++ default constructor.
       
    61         */
       
    62         CPhoneContinueEmergencyCallCommand( 
       
    63             MPhoneEngineMessageSender& aEngineMessageSender );
       
    64         
       
    65         /**
       
    66          * By default EPOC constructor is private.
       
    67          */
       
    68         void ConstructL();
       
    69         
       
    70         
       
    71     private:
       
    72 
       
    73         /**
       
    74         * For sending message to Phone Engine.
       
    75         */    
       
    76         MPhoneEngineMessageSender& iEngineMessageSender;
       
    77                      
       
    78     };
       
    79     
       
    80 #endif // CPHONECONTINUEEMERGENCYCALLCOMMAND_H
       
    81 
       
    82 // End of File