phoneapp/phonemediatorcenter/src/cphoneterminateallconnectionscommand.cpp
author Pat Downey <patd@symbian.org>
Fri, 04 Jun 2010 10:19:18 +0100
changeset 37 ba76fc04e6c2
child 51 f39ed5e045e0
permissions -rw-r--r--
Revert last code drop.

/*
* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: Implementation of CPhoneTerminateAllConnectionsCommand class.
*
*/


// INCLUDE FILES
#include "phonelogger.h"
#include "cphoneterminateallconnectionscommand.h"
#include "pevirtualengine.h"

// ================= MEMBER FUNCTIONS =======================

// ---------------------------------------------------------
// CPhoneTerminateAllConnectionsCommand::CPhoneTerminateAllConnectionsCommand
// ---------------------------------------------------------
//
CPhoneTerminateAllConnectionsCommand::CPhoneTerminateAllConnectionsCommand( 
    MPhoneEngineMessageSender& aEngineMessageSender ) : 
    iEngineMessageSender( aEngineMessageSender )
    {
    }

// ---------------------------------------------------------
// CPhoneTerminateAllConnectionsCommand::ConstructL
// ---------------------------------------------------------
//
void CPhoneTerminateAllConnectionsCommand::ConstructL()
    {
    }

// ---------------------------------------------------------
// CPhoneTerminateAllConnectionsCommand::NewL
// ---------------------------------------------------------
//
EXPORT_C CPhoneTerminateAllConnectionsCommand* CPhoneTerminateAllConnectionsCommand::NewL( 
    MPhoneEngineMessageSender& aEngineMessageSender )
    {
    __LOGMETHODSTARTEND( EPhoneMediatorCenter, "CPhoneTerminateAllConnectionsCommand::NewL( ) ");
    CPhoneTerminateAllConnectionsCommand* self = new( ELeave ) 
        CPhoneTerminateAllConnectionsCommand( aEngineMessageSender );
    
    CleanupStack::PushL( self );
    self->ConstructL();
    CleanupStack::Pop( self );

    return self;
    }
    
// ---------------------------------------------------------
// CPhoneTerminateAllConnectionsCommand::~CPhoneTerminateAllConnectionsCommand
// ---------------------------------------------------------
//
CPhoneTerminateAllConnectionsCommand::~CPhoneTerminateAllConnectionsCommand()
    {
    }

// ---------------------------------------------------------
// CPhoneTerminateAllConnectionsCommand::ExecuteL
// ---------------------------------------------------------
//
void CPhoneTerminateAllConnectionsCommand::ExecuteLD()
    {
    __LOGMETHODSTARTEND( EPhoneMediatorCenter, 
        "CPhoneTerminateAllConnectionsCommand::ExecuteL( ) ");
    iEngineMessageSender.SendPhoneEngineMessage( 
        MPEPhoneModel::EPEMessageTerminateAllConnections );
    delete this;
    }

//  End of File