|
1 /* |
|
2 * Copyright (c) 2006-2006 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: CCFActionPlugIn class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <ecom/ecom.h> |
|
21 |
|
22 #include "cfactionplugin.h" |
|
23 #include "CFActionPluginImpl.h" |
|
24 #include "cftrace.h" |
|
25 |
|
26 EXPORT_C CCFActionPlugIn* CCFActionPlugIn::NewL( |
|
27 const TUid& aImplementationUid ) |
|
28 { |
|
29 FUNC_LOG; |
|
30 |
|
31 CCFActionPlugIn* self = CCFActionPlugIn::NewLC( aImplementationUid ); |
|
32 CleanupStack::Pop( self ); |
|
33 |
|
34 return self; |
|
35 } |
|
36 |
|
37 EXPORT_C CCFActionPlugIn* CCFActionPlugIn::NewLC( |
|
38 const TUid& aImplementationUid ) |
|
39 { |
|
40 FUNC_LOG; |
|
41 |
|
42 CCFActionPlugIn* self = |
|
43 reinterpret_cast<CCFActionPlugIn*>( |
|
44 REComSession::CreateImplementationL( |
|
45 aImplementationUid, |
|
46 _FOFF( CCFActionPlugIn, iDtorKey ) ) ); |
|
47 CleanupStack::PushL( self ); |
|
48 |
|
49 return self; |
|
50 } |
|
51 |
|
52 EXPORT_C CCFActionPlugIn::~CCFActionPlugIn() |
|
53 { |
|
54 FUNC_LOG; |
|
55 |
|
56 delete iImpl; |
|
57 |
|
58 #ifndef _DEBUG |
|
59 REComSession::DestroyedImplementation( iDtorKey ); |
|
60 #else |
|
61 if( iDtorKey != KNullUid ) |
|
62 { |
|
63 REComSession::DestroyedImplementation( iDtorKey ); |
|
64 } |
|
65 #endif |
|
66 } |
|
67 |
|
68 EXPORT_C CCFActionPlugIn::CCFActionPlugIn() |
|
69 { |
|
70 FUNC_LOG; |
|
71 } |
|
72 |
|
73 // METHODS |
|
74 |
|
75 //----------------------------------------------------------------------------- |
|
76 // CCFActionPlugIn::Extension |
|
77 //----------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C TAny* CCFActionPlugIn::Extension( const TUid& /*aExtensionUid*/ ) const |
|
80 { |
|
81 FUNC_LOG; |
|
82 |
|
83 return NULL; |
|
84 } |
|
85 |
|
86 //----------------------------------------------------------------------------- |
|
87 // CCFActionPlugIn::AsyncExecutionCompleted |
|
88 //----------------------------------------------------------------------------- |
|
89 // |
|
90 EXPORT_C void CCFActionPlugIn::AsyncExecutionCompleted() |
|
91 { |
|
92 FUNC_LOG; |
|
93 |
|
94 if ( iImpl ) |
|
95 { |
|
96 iImpl->AsyncExecutionCompleted(); |
|
97 } |
|
98 } |
|
99 |
|
100 //------------------------------------------------------------------------------ |
|
101 // CCFActionPlugIn::PrepareExecutionL |
|
102 //------------------------------------------------------------------------------ |
|
103 // |
|
104 EXPORT_C void CCFActionPlugIn::PrepareExecutionL() |
|
105 { |
|
106 FUNC_LOG; |
|
107 |
|
108 // Empty |
|
109 } |
|
110 |
|
111 //----------------------------------------------------------------------------- |
|
112 // CCFActionPlugIn::FinishedExecution |
|
113 //----------------------------------------------------------------------------- |
|
114 // |
|
115 EXPORT_C void CCFActionPlugIn::FinishedExecution() |
|
116 { |
|
117 FUNC_LOG; |
|
118 |
|
119 // Empty |
|
120 } |
|
121 |
|
122 // End of File |