phoneapp/phonemediatorcenter/inc/cphonereleasecommand.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     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 releasing a connection at Video Telephony shutdown.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONERELEASECOMMAND_H
       
    21 #define CPHONERELEASECOMMAND_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include "mphoneshutdowncommand.h"
       
    26 #include "mphoneenginemessagesender.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 class CPhoneReleaseCommand : public CBase, public MPhoneShutdownCommand
       
    33     {
       
    34     public:  
       
    35 
       
    36         /**
       
    37          * Destructor.
       
    38          */
       
    39         virtual ~CPhoneReleaseCommand();
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         IMPORT_C static CPhoneReleaseCommand* NewL( 
       
    45             MPhoneEngineMessageSender& aEngineMessageSender );
       
    46         
       
    47         /**
       
    48         * Executes this Command.
       
    49         */
       
    50         virtual void ExecuteLD();
       
    51         
       
    52 
       
    53     private:
       
    54 
       
    55         /**
       
    56         * C++ default constructor.
       
    57         */
       
    58         CPhoneReleaseCommand( 
       
    59             MPhoneEngineMessageSender& aEngineMessageSender );
       
    60         
       
    61         /**
       
    62          * By default EPOC constructor is private.
       
    63          */
       
    64         void ConstructL();
       
    65         
       
    66         
       
    67     private:
       
    68 
       
    69         /**
       
    70         * For sending message to Phone Engine.
       
    71         */    
       
    72         MPhoneEngineMessageSender& iEngineMessageSender;
       
    73                      
       
    74     };
       
    75     
       
    76 #endif // CPHONERELEASECOMMAND_H
       
    77 
       
    78 // End of File