diff -r 04da681812a9 -r 457cd4423b8c omadrm/drmengine/roap/src/RoapEngBase.cpp --- a/omadrm/drmengine/roap/src/RoapEngBase.cpp Tue Apr 27 16:56:11 2010 +0300 +++ b/omadrm/drmengine/roap/src/RoapEngBase.cpp Tue May 11 16:28:38 2010 +0300 @@ -17,6 +17,7 @@ // INCLUDE FILES +#include #include #include // #include // from S60 @@ -50,6 +51,8 @@ iReturnedROs.ResetAndDestroy(); delete iDomainRightsResp; delete iRiAlias; + + FeatureManager::UnInitializeLib(); } // --------------------------------------------------------- @@ -78,6 +81,8 @@ iImplicitJoinDomain = EFalse; iReRegistered = EFalse; iRiAlias = NULL; + + FeatureManager::InitializeLibL(); } @@ -94,10 +99,12 @@ { LOGLIT( "CRoapEngBase::SetTriggerL" ) -#ifndef __DRM_OMA2 - User::Leave(KErrNotSupported); -#endif - + if ( !( FeatureManager::FeatureSupported( + KFeatureIdFfOmadrm2Support ) ) ) + { + User::Leave(KErrNotSupported); + } + __ASSERT_ALWAYS( iState == EInit || iState == EReady, \ User::Invariant() ); TBool registered = EFalse;