drm_plat/wmdrm_access_api/inc/wmdrmaccessecominterface.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:29:38 +0300
branchRCL_3
changeset 71 1221b68b8a5f
parent 0 95b198f216e5
child 72 1481bf457703
permissions -rw-r--r--
Revision: 201033 Kit: 201035

/*
* Copyright (c) 2009 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:
*  wmdrmaccessecominterface.inl
*
*/
#include <ecom/ecom.h> // for interface

// ---------------------------------------------------------------------------
// CWmDrmAccessEcomInterface::NewL
// ---------------------------------------------------------------------------
//
CWmDrmAccessEcomInterface* CWmDrmAccessEcomInterface::NewL()
    {
    const TUid KWmdrmAccessEcomInterfaceUid =
        {
        0x20026FDB
        };
    TAny* theImplementation( NULL );

    TEComResolverParams resolveParams;
    resolveParams.SetWildcardMatch( ETrue );

    theImplementation = REComSession::CreateImplementationL(
        KWmdrmAccessEcomInterfaceUid,
        _FOFF( CWmDrmAccessEcomInterface, iDtor_ID_Key ),
        resolveParams );

    return reinterpret_cast<CWmDrmAccessEcomInterface*>( theImplementation );
    }


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

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



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