|
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 "cmdactivaterfforemergencycall.h" |
|
23 |
|
24 CCustomCmdActivateRfForEmergencyCall* CCustomCmdActivateRfForEmergencyCall::NewL() |
|
25 { |
|
26 CCustomCmdActivateRfForEmergencyCall* self = new (ELeave) CCustomCmdActivateRfForEmergencyCall(); |
|
27 return self; |
|
28 } |
|
29 |
|
30 CCustomCmdActivateRfForEmergencyCall::CCustomCmdActivateRfForEmergencyCall() |
|
31 { |
|
32 } |
|
33 |
|
34 CCustomCmdActivateRfForEmergencyCall::~CCustomCmdActivateRfForEmergencyCall() |
|
35 { |
|
36 } |
|
37 |
|
38 TInt CCustomCmdActivateRfForEmergencyCall::Initialize(CSsmCustomCommandEnv* /*aCmdEnv*/) |
|
39 { |
|
40 //Connect to RSsmEmergencyCallRfAdaptation |
|
41 return iSsmEmergencyCallRfAdaptation.Connect(); |
|
42 } |
|
43 |
|
44 void CCustomCmdActivateRfForEmergencyCall::Close() |
|
45 { |
|
46 //Cancel the request if there is any |
|
47 iSsmEmergencyCallRfAdaptation.Cancel(); |
|
48 |
|
49 //Close RSsmEmergencyCallRfAdaptation |
|
50 iSsmEmergencyCallRfAdaptation.Close(); |
|
51 } |
|
52 |
|
53 void CCustomCmdActivateRfForEmergencyCall::Release() |
|
54 { |
|
55 delete this; |
|
56 } |
|
57 |
|
58 void CCustomCmdActivateRfForEmergencyCall::Execute(const TDesC8& /*aParams*/, TRequestStatus& aStatus) |
|
59 { |
|
60 //Activate Rf for emergency call |
|
61 iSsmEmergencyCallRfAdaptation.ActivateRfForEmergencyCall(aStatus); |
|
62 } |
|
63 |
|
64 void CCustomCmdActivateRfForEmergencyCall::ExecuteCancel() |
|
65 { |
|
66 //Cancel the request if there is any |
|
67 iSsmEmergencyCallRfAdaptation.Cancel(); |
|
68 } |