1 // Copyright (c) 2008-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 #ifndef ILCOMPONENTIF_INL |
|
17 #define ILCOMPONENTIF_INL |
|
18 |
|
19 #include <ecom/ecom.h> |
|
20 |
|
21 #include "ilcomponentif.h" |
|
22 |
|
23 /** |
|
24 Create a CILComponentIf object with a known implementation Uid. |
|
25 Asks ECOM plugin framework to instantiate this concret plugin implementation. |
|
26 Will leave if it is not found (KErrNotFound). |
|
27 @param aUid - The Uid of a plugin implementation |
|
28 @return An instantiated CILComponentIf derived object from ECom. |
|
29 */ |
|
30 inline CILComponentIf* CILComponentIf::CreateImplementationL(TUid aImplementationUid) |
|
31 { |
|
32 TAny* ptr = REComSession::CreateImplementationL(aImplementationUid , _FOFF(CILComponentIf, iDtor_ID_Key)); |
|
33 return static_cast<CILComponentIf*>(ptr); |
|
34 } |
|
35 |
|
36 /** |
|
37 Interface base class destructor |
|
38 */ |
|
39 inline CILComponentIf::~CILComponentIf() |
|
40 { |
|
41 // Destroy any instance variables and then inform ecom that this specific |
|
42 // instance of the interface has been destroyed. |
|
43 REComSession::DestroyedImplementation(iDtor_ID_Key); |
|
44 } |
|
45 |
|
46 #endif // ILCOMPONENTIF_INL |
|