diff -r f5b689a4f7a2 -r e0c1916b8ddc remotemgmt_plat/syncml_ds_customization_api/inc/nsmldevinfextdatacontainerplugin.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remotemgmt_plat/syncml_ds_customization_api/inc/nsmldevinfextdatacontainerplugin.inl Thu Sep 02 21:22:11 2010 +0300 @@ -0,0 +1,37 @@ +/* +* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Inline methods for ECom plugin use. +* +*/ + +inline CNSmlDevInfExtDataContainerPlugin::~CNSmlDevInfExtDataContainerPlugin() + { + // Inform the ECOM framework that this specific instance of the + // interface has been destroyed. + REComSession::DestroyedImplementation( iDtor_ID_Key ); + } + +inline CNSmlDevInfExtDataContainerPlugin* CNSmlDevInfExtDataContainerPlugin::NewL() + { + const TUid KExtDataContainerInterfaceUid = { 0x2002DC7C }; + TEComResolverParams resolutionParameters; + resolutionParameters.SetGenericMatch( ETrue ); + TAny* interface = REComSession::CreateImplementationL ( + KExtDataContainerInterfaceUid, + _FOFF( CNSmlDevInfExtDataContainerPlugin, iDtor_ID_Key ), + resolutionParameters ); + + return reinterpret_cast < CNSmlDevInfExtDataContainerPlugin* > ( interface ); + } +