diff -r 493788a4a8a4 -r 3bdc3b853094 drm_plat/wmdrm_ota_access_api/inc/wmdrmotaaccessecominterface.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/drm_plat/wmdrm_ota_access_api/inc/wmdrmotaaccessecominterface.inl Mon May 03 12:46:34 2010 +0300 @@ -0,0 +1,67 @@ +/* +* 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 // 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( theImplementation ); + } + + +// --------------------------------------------------------------------------- +// CWmDrmOtaAccessEcomInterface::NewLC +// --------------------------------------------------------------------------- +// +CWmDrmOtaAccessEcomInterface* CWmDrmOtaAccessEcomInterface::NewLC() + { + CWmDrmOtaAccessEcomInterface* self( CWmDrmOtaAccessEcomInterface::NewL() ); + + CleanupStack::PushL( self ); + return self; + } + + + +// --------------------------------------------------------------------------- +// CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface +// --------------------------------------------------------------------------- +// +CWmDrmOtaAccessEcomInterface::~CWmDrmOtaAccessEcomInterface() + { + REComSession::DestroyedImplementation( iDtor_ID_Key ); + } +