remotemgmt_plat/syncml_ds_customization_api/inc/nsmldevinfextdatacontainerplugin.inl
branchRCL_3
changeset 25 b183ec05bd8c
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Inline methods for ECom plugin use.
       
    15 *
       
    16 */
       
    17 
       
    18 inline CNSmlDevInfExtDataContainerPlugin::~CNSmlDevInfExtDataContainerPlugin()
       
    19     {
       
    20     // Inform the ECOM framework that this specific instance of the
       
    21     // interface has been destroyed.
       
    22     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    23     }
       
    24     
       
    25 inline CNSmlDevInfExtDataContainerPlugin* CNSmlDevInfExtDataContainerPlugin::NewL()
       
    26     {
       
    27     const TUid KExtDataContainerInterfaceUid = { 0x2002DC7C };
       
    28     TEComResolverParams resolutionParameters;
       
    29     resolutionParameters.SetGenericMatch( ETrue );
       
    30 	TAny* interface = REComSession::CreateImplementationL (
       
    31 		KExtDataContainerInterfaceUid, 
       
    32         _FOFF( CNSmlDevInfExtDataContainerPlugin, iDtor_ID_Key ),
       
    33         resolutionParameters );
       
    34 
       
    35 	return reinterpret_cast < CNSmlDevInfExtDataContainerPlugin* > ( interface );
       
    36     }
       
    37