williamr@2: // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: // All rights reserved. williamr@2: // This component and the accompanying materials are made available williamr@4: // under the terms of "Eclipse Public License v1.0" williamr@2: // which accompanies this distribution, and is available williamr@4: // at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: // williamr@2: // Initial Contributors: williamr@2: // Nokia Corporation - initial contribution. williamr@2: // williamr@2: // Contributors: williamr@2: // williamr@2: // Description: williamr@2: // williamr@2: williamr@2: #ifndef __FEPPLUGIN_INL__ williamr@2: #define __FEPPLUGIN_INL__ williamr@2: williamr@2: #include williamr@2: williamr@2: /** williamr@2: Factory function to create and return a FEP plug-in with the specified UID. williamr@2: williamr@2: @return A FEP plug-in object instance corresponding to the UID provided williamr@2: @param aFepUid The UID of the FEP plug-in implementation to be loaded williamr@2: */ williamr@2: inline CCoeFepPlugIn* CCoeFepPlugIn::NewL(TUid aFepUid) williamr@2: { // static williamr@2: TAny* any = REComSession::CreateImplementationL(aFepUid, _FOFF(CCoeFepPlugIn, iDtorTag)); williamr@2: CCoeFepPlugIn* feppi = reinterpret_cast(any); williamr@2: return feppi; williamr@2: } williamr@2: williamr@2: /** williamr@2: Destructor that destroys the FEP plug-in. williamr@2: */ williamr@2: inline CCoeFepPlugIn::~CCoeFepPlugIn() williamr@2: { williamr@2: REComSession::DestroyedImplementation(iDtorTag); williamr@2: } williamr@2: williamr@2: williamr@2: #endif // __FEPPLUGIN_INL__