phoneapp/phonemediatorcenter/inc/cphoneterminateallconnectionscommand.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 terminating all connections at Video Telephony shutdown.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPHONETERMINATEALLCONNECTIONSCOMMAND_H
       
    21 #define CPHONETERMINATEALLCONNECTIONSCOMMAND_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 CPhoneTerminateAllConnectionsCommand : public CBase, 
       
    33     public MPhoneShutdownCommand
       
    34     {
       
    35     public:  
       
    36 
       
    37         /**
       
    38          * Destructor.
       
    39          */
       
    40         virtual ~CPhoneTerminateAllConnectionsCommand();
       
    41         
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         */
       
    45         IMPORT_C static CPhoneTerminateAllConnectionsCommand* NewL( 
       
    46             MPhoneEngineMessageSender& aEngineMessageSender );
       
    47         
       
    48         /**
       
    49         * Executes this Command.
       
    50         */
       
    51         virtual void ExecuteLD();
       
    52         
       
    53 
       
    54     private:
       
    55 
       
    56         /**
       
    57         * C++ default constructor.
       
    58         */
       
    59         CPhoneTerminateAllConnectionsCommand( 
       
    60             MPhoneEngineMessageSender& aEngineMessageSender );
       
    61         
       
    62         /**
       
    63          * By default EPOC constructor is private.
       
    64          */
       
    65         void ConstructL();
       
    66         
       
    67         
       
    68     private:
       
    69 
       
    70         /**
       
    71         * For sending message to Phone Engine.
       
    72         */    
       
    73         MPhoneEngineMessageSender& iEngineMessageSender;
       
    74                      
       
    75     };
       
    76     
       
    77 #endif // CPHONETERMINATEALLCONNECTIONSCOMMAND_H
       
    78 
       
    79 // End of File