hti/hti_plat/hti_api/inc/HtiCommPluginInterface.inl
branchRCL_3
changeset 59 8ad140f3dd41
parent 0 a03f92240627
equal deleted inserted replaced
49:7fdc9a71d314 59:8ad140f3dd41
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Contins ECom related implementaion of CHTICommInterface
       
    15 *        definition
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 inline CHTICommPluginInterface* CHTICommPluginInterface::NewL()
       
    21     {
       
    22     return NewL(KCommDefaultImplementation);
       
    23     }
       
    24 
       
    25 inline CHTICommPluginInterface* CHTICommPluginInterface::NewL(
       
    26     const TDesC8& aMatchString)
       
    27     {
       
    28 
       
    29     TEComResolverParams resolverParams;
       
    30     resolverParams.SetDataType(aMatchString);
       
    31     TAny* ptr = REComSession::CreateImplementationL(
       
    32         KHTICommInterfaceUid,
       
    33         _FOFF(CHTICommPluginInterface,iDtor_ID_Key),
       
    34         resolverParams);
       
    35 
       
    36      return reinterpret_cast<CHTICommPluginInterface*>( ptr );
       
    37     }
       
    38 
       
    39 inline CHTICommPluginInterface::~CHTICommPluginInterface()
       
    40     {
       
    41     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    42     }