hti/hti_plat/hti_api/inc/HtiServicePluginInterface.inl
changeset 36 813b186005b6
parent 30 86a2e675b80a
child 41 838cdffd57ce
equal deleted inserted replaced
30:86a2e675b80a 36:813b186005b6
     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
       
    15 *        CHTIServiceInterfaceinterface class
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 inline CHTIServicePluginInterface* CHTIServicePluginInterface::NewL(
       
    21     const TUid aUID)
       
    22     {
       
    23     TAny* ptr = REComSession::CreateImplementationL(
       
    24         aUID,
       
    25         _FOFF(CHTIServicePluginInterface,iDtor_ID_Key) );
       
    26 
       
    27      return reinterpret_cast<CHTIServicePluginInterface*>( ptr );
       
    28     }
       
    29 
       
    30 inline CHTIServicePluginInterface* CHTIServicePluginInterface::NewL(
       
    31     const TDesC8& aMatchString)
       
    32     {
       
    33 
       
    34     TEComResolverParams resolverParams;
       
    35     resolverParams.SetDataType(aMatchString);
       
    36     TAny* ptr = REComSession::CreateImplementationL(
       
    37         KHTIServiceInterfaceUid,
       
    38         _FOFF(CHTIServicePluginInterface,iDtor_ID_Key),
       
    39         resolverParams);
       
    40 
       
    41      return reinterpret_cast<CHTIServicePluginInterface*>( ptr );
       
    42     }
       
    43 
       
    44 inline CHTIServicePluginInterface::~CHTIServicePluginInterface()
       
    45     {
       
    46     REComSession::DestroyedImplementation(iDtor_ID_Key);
       
    47     }
       
    48 
       
    49 
       
    50 inline void CHTIServicePluginInterface::SetDispatcher(
       
    51                 MHtiDispatcher* aDispatcher)
       
    52     {
       
    53     iDispatcher = aDispatcher;
       
    54     }
       
    55 
       
    56 inline TBool CHTIServicePluginInterface::IsBusy()
       
    57     {
       
    58     return EFalse;
       
    59     }