sysstatemgmt/systemstatereferenceplugins/custcmd/src/cmddeactivaterfforemergencycall.cpp
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent
       
    19  @released
       
    20 */
       
    21 
       
    22 #include "cmddeactivaterfforemergencycall.h"
       
    23 
       
    24 CCustomCmdDeactivateRfForEmergencyCall* CCustomCmdDeactivateRfForEmergencyCall::NewL()
       
    25 	{
       
    26 	CCustomCmdDeactivateRfForEmergencyCall* self = new (ELeave) CCustomCmdDeactivateRfForEmergencyCall();
       
    27 	return self;
       
    28 	}
       
    29 
       
    30 CCustomCmdDeactivateRfForEmergencyCall::CCustomCmdDeactivateRfForEmergencyCall()
       
    31 	{
       
    32 	}
       
    33 
       
    34 CCustomCmdDeactivateRfForEmergencyCall::~CCustomCmdDeactivateRfForEmergencyCall()
       
    35 	{
       
    36 	}
       
    37 
       
    38 TInt CCustomCmdDeactivateRfForEmergencyCall::Initialize(CSsmCustomCommandEnv* /*aCmdEnv*/)
       
    39 	{
       
    40 	//Connect to RSsmEmergencyCallRfAdaptation
       
    41 	return iSsmEmergencyCallRfAdaptation.Connect();
       
    42 	}
       
    43 
       
    44 void CCustomCmdDeactivateRfForEmergencyCall::Close()
       
    45 	{
       
    46 	//Cancel the request if there is any
       
    47 	iSsmEmergencyCallRfAdaptation.Cancel();
       
    48 	
       
    49 	//Close RSsmEmergencyCallRfAdaptation
       
    50 	iSsmEmergencyCallRfAdaptation.Close();
       
    51 	}
       
    52 
       
    53 void CCustomCmdDeactivateRfForEmergencyCall::Release()
       
    54 	{
       
    55 	delete this;
       
    56 	}
       
    57 
       
    58 void CCustomCmdDeactivateRfForEmergencyCall::Execute(const TDesC8& /*aParams*/, TRequestStatus& aStatus)
       
    59 	{
       
    60 	//Deactivate Rf for emergency call
       
    61 	iSsmEmergencyCallRfAdaptation.DeactivateRfForEmergencyCall(aStatus);
       
    62 	}
       
    63 
       
    64 void CCustomCmdDeactivateRfForEmergencyCall::ExecuteCancel()
       
    65 	{
       
    66 	//Cancel the request if there is any
       
    67 	iSsmEmergencyCallRfAdaptation.Cancel();
       
    68 	}