equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 __FEPPLUGIN_INL__ |
|
17 #define __FEPPLUGIN_INL__ |
|
18 |
|
19 #include <ecom/ecom.h> |
|
20 |
|
21 /** |
|
22 Factory function to create and return a FEP plug-in with the specified UID. |
|
23 |
|
24 @return A FEP plug-in object instance corresponding to the UID provided |
|
25 @param aFepUid The UID of the FEP plug-in implementation to be loaded |
|
26 */ |
|
27 inline CCoeFepPlugIn* CCoeFepPlugIn::NewL(TUid aFepUid) |
|
28 { // static |
|
29 TAny* any = REComSession::CreateImplementationL(aFepUid, _FOFF(CCoeFepPlugIn, iDtorTag)); |
|
30 CCoeFepPlugIn* feppi = reinterpret_cast<CCoeFepPlugIn*>(any); |
|
31 return feppi; |
|
32 } |
|
33 |
|
34 /** |
|
35 Destructor that destroys the FEP plug-in. |
|
36 */ |
|
37 inline CCoeFepPlugIn::~CCoeFepPlugIn() |
|
38 { |
|
39 REComSession::DestroyedImplementation(iDtorTag); |
|
40 } |
|
41 |
|
42 |
|
43 #endif // __FEPPLUGIN_INL__ |