|
1 /* |
|
2 * Copyright (c) 2007-2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 /** |
|
22 @file |
|
23 @publishedPartner |
|
24 @released |
|
25 */ |
|
26 |
|
27 #include <ecom/ecom.h> |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CFeatureInfoPlugin::~CFeatureInfoPlugin |
|
31 // Destructor informs ECom that implementation has been destroyed. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 inline CFeatureInfoPlugin::~CFeatureInfoPlugin() |
|
35 { |
|
36 REComSession::DestroyedImplementation( iDestructorIDKey ); |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CFeatureInfoPlugin::NewL |
|
41 // Factory method to create implementation. Implementation is found via ECom. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 inline CFeatureInfoPlugin* CFeatureInfoPlugin::NewL( |
|
45 TUid aImplementationUid, |
|
46 MFeatureInfoPluginCallback& aResponseCallback ) |
|
47 { |
|
48 TAny* interface = REComSession::CreateImplementationL( |
|
49 aImplementationUid, |
|
50 _FOFF( CFeatureInfoPlugin, iDestructorIDKey ) ); |
|
51 |
|
52 CFeatureInfoPlugin* service = reinterpret_cast<CFeatureInfoPlugin*>( interface ); |
|
53 |
|
54 // Set response callback pointer |
|
55 service->iResponseCallback = &aResponseCallback; |
|
56 |
|
57 return service; |
|
58 } |
|
59 |
|
60 // End of File |