drm_plat/wmdrm_ota_access_api/inc/wmdrmotaaccessecominterface.inl
branchRCL_3
changeset 14 8cdda00a45da
equal deleted inserted replaced
13:a20e54f39dd4 14:8cdda00a45da
       
     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:
       
    15 *  wmdrmotaaccessecominterface.inl
       
    16 *
       
    17 */
       
    18 
       
    19 #include <ecom/ecom.h> // for interface
       
    20 
       
    21 // ---------------------------------------------------------------------------
       
    22 // CWmDrmOtaAccessEcomInterface::NewL
       
    23 // ---------------------------------------------------------------------------
       
    24 //
       
    25 CWmDrmOtaAccessEcomInterface* CWmDrmOtaAccessEcomInterface::NewL()
       
    26     {
       
    27     const TUid KWmdrmOtaAccessEcomInterfaceUid =
       
    28         {
       
    29         0x2002E67D
       
    30         };
       
    31     TAny* theImplementation( NULL );
       
    32 
       
    33     TEComResolverParams resolveParams;
       
    34     resolveParams.SetWildcardMatch( ETrue );
       
    35 
       
    36     theImplementation = REComSession::CreateImplementationL(
       
    37         KWmdrmOtaAccessEcomInterfaceUid,
       
    38         _FOFF( CWmDrmOtaAccessEcomInterface, iDtor_ID_Key ),
       
    39         resolveParams );
       
    40 
       
    41     return reinterpret_cast<CWmDrmOtaAccessEcomInterface*>( theImplementation );
       
    42     }
       
    43 
       
    44 
       
    45 // ---------------------------------------------------------------------------
       
    46 // CWmDrmOtaAccessEcomInterface::NewLC
       
    47 // ---------------------------------------------------------------------------
       
    48 //
       
    49 CWmDrmOtaAccessEcomInterface* CWmDrmOtaAccessEcomInterface::NewLC()
       
    50     {
       
    51     CWmDrmOtaAccessEcomInterface* self( CWmDrmOtaAccessEcomInterface::NewL() );
       
    52 
       
    53     CleanupStack::PushL( self );
       
    54     return self;
       
    55     }
       
    56 
       
    57 
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface()
       
    64     {
       
    65     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    66     }
       
    67