|
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 #include <e32base.h> |
|
17 #include <ecom/ecom.h> |
|
18 |
|
19 #include "ctsysystemstatepluginhandler.h" |
|
20 |
|
21 CCtsySystemStatePluginHandler* CCtsySystemStatePluginHandler::NewL() |
|
22 { |
|
23 CCtsySystemStatePluginHandler* self = NewLC(); |
|
24 CleanupStack::Pop(); |
|
25 return self; |
|
26 } |
|
27 |
|
28 CCtsySystemStatePluginHandler* CCtsySystemStatePluginHandler::NewLC() |
|
29 { |
|
30 CCtsySystemStatePluginHandler* self = new(ELeave) CCtsySystemStatePluginHandler(); |
|
31 CleanupStack::PushL(self); |
|
32 self->ConstructL(); |
|
33 return self; |
|
34 } |
|
35 |
|
36 void CCtsySystemStatePluginHandler::ConstructL() |
|
37 { |
|
38 // get plugin instance |
|
39 iSystemStatePluginService = CCtsySystemStatePluginService::NewL(); |
|
40 } |
|
41 |
|
42 CCtsySystemStatePluginHandler::CCtsySystemStatePluginHandler() |
|
43 { |
|
44 } |
|
45 |
|
46 CCtsySystemStatePluginHandler::~CCtsySystemStatePluginHandler() |
|
47 { |
|
48 delete iSystemStatePluginService; |
|
49 REComSession::FinalClose(); |
|
50 } |
|
51 |
|
52 TInt CCtsySystemStatePluginHandler::Connect() |
|
53 { |
|
54 return iSystemStatePluginService->Connect(); |
|
55 } |
|
56 |
|
57 void CCtsySystemStatePluginHandler::ActivateRfForEmergencyCall(MCtsySsmPluginCallback* aSsmPluginCallback, |
|
58 TCtsySsmCallbackData& aCallbackData) |
|
59 { |
|
60 iSystemStatePluginService->ActivateRfForEmergencyCall(aSsmPluginCallback, aCallbackData); |
|
61 } |
|
62 |
|
63 void CCtsySystemStatePluginHandler::DeactivateRfAfterEmergencyCall() |
|
64 { |
|
65 iSystemStatePluginService->DeactivateRfAfterEmergencyCall(); |
|
66 } |
|
67 |
|
68 void CCtsySystemStatePluginHandler::Close() |
|
69 { |
|
70 iSystemStatePluginService->Close(); |
|
71 } |