sl@0: /*
sl@0: * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description:
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: 
sl@0: 
sl@0: /**
sl@0:  @file
sl@0:  @publishedPartner
sl@0:  @released
sl@0: */
sl@0: 
sl@0: #include <ecom/ecom.h>
sl@0: 
sl@0: // -----------------------------------------------------------------------------
sl@0: // CFeatureInfoPlugin::~CFeatureInfoPlugin
sl@0: // Destructor informs ECom that implementation has been destroyed.
sl@0: // -----------------------------------------------------------------------------
sl@0: //
sl@0: inline CFeatureInfoPlugin::~CFeatureInfoPlugin()
sl@0:     {
sl@0:     REComSession::DestroyedImplementation( iDestructorIDKey );
sl@0:     }
sl@0: 
sl@0: // -----------------------------------------------------------------------------
sl@0: // CFeatureInfoPlugin::NewL
sl@0: // Factory method to create implementation. Implementation is found via ECom.
sl@0: // -----------------------------------------------------------------------------
sl@0: //
sl@0: inline CFeatureInfoPlugin* CFeatureInfoPlugin::NewL(
sl@0:     TUid aImplementationUid,
sl@0:     MFeatureInfoPluginCallback& aResponseCallback )
sl@0:     {
sl@0:     TAny* interface = REComSession::CreateImplementationL(
sl@0:         aImplementationUid,
sl@0:         _FOFF( CFeatureInfoPlugin, iDestructorIDKey ) );
sl@0: 
sl@0:     CFeatureInfoPlugin* service = reinterpret_cast<CFeatureInfoPlugin*>( interface );
sl@0: 
sl@0:     // Set response callback pointer
sl@0:     service->iResponseCallback = &aResponseCallback;
sl@0: 
sl@0:     return service;
sl@0:     }
sl@0: 
sl@0: // End of File