epoc32/include/mw/fepplugin.inl
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 2fe1408b6811
child 4 837f303aceeb
equal deleted inserted replaced
2:2fe1408b6811 3:e1b950c65cb4
       
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.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__