drm_plat/wmdrm_ota_access_api/inc/wmdrmotaaccessecominterface.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 14 Apr 2010 16:15:06 +0300
branchRCL_3
changeset 14 8cdda00a45da
permissions -rw-r--r--
Revision: 201013 Kit: 201015

/*
* 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:
*  wmdrmotaaccessecominterface.inl
*
*/

#include <ecom/ecom.h> // for interface

// ---------------------------------------------------------------------------
// CWmDrmOtaAccessEcomInterface::NewL
// ---------------------------------------------------------------------------
//
CWmDrmOtaAccessEcomInterface* CWmDrmOtaAccessEcomInterface::NewL()
    {
    const TUid KWmdrmOtaAccessEcomInterfaceUid =
        {
        0x2002E67D
        };
    TAny* theImplementation( NULL );

    TEComResolverParams resolveParams;
    resolveParams.SetWildcardMatch( ETrue );

    theImplementation = REComSession::CreateImplementationL(
        KWmdrmOtaAccessEcomInterfaceUid,
        _FOFF( CWmDrmOtaAccessEcomInterface, iDtor_ID_Key ),
        resolveParams );

    return reinterpret_cast<CWmDrmOtaAccessEcomInterface*>( theImplementation );
    }


// ---------------------------------------------------------------------------
// CWmDrmOtaAccessEcomInterface::NewLC
// ---------------------------------------------------------------------------
//
CWmDrmOtaAccessEcomInterface* CWmDrmOtaAccessEcomInterface::NewLC()
    {
    CWmDrmOtaAccessEcomInterface* self( CWmDrmOtaAccessEcomInterface::NewL() );

    CleanupStack::PushL( self );
    return self;
    }



// ---------------------------------------------------------------------------
// CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface
// ---------------------------------------------------------------------------
//
CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface()
    {
    REComSession::DestroyedImplementation( iDtor_ID_Key );
    }