equal
deleted
inserted
replaced
1610 // valid rights |
1610 // valid rights |
1611 if ( !omaError ) |
1611 if ( !omaError ) |
1612 { |
1612 { |
1613 permission = iOmaClient.GetActiveRightsL( aIntent, *aContentUri, |
1613 permission = iOmaClient.GetActiveRightsL( aIntent, *aContentUri, |
1614 reason ); |
1614 reason ); |
|
1615 |
|
1616 if( !permission ) |
|
1617 { |
|
1618 User::Leave( KErrCANoPermission); //coverity check |
|
1619 } |
|
1620 |
1615 CleanupStack::PushL( permission ); |
1621 CleanupStack::PushL( permission ); |
1616 |
1622 |
1617 toplevel = permission->TopLevelConstraint(); |
1623 toplevel = permission->TopLevelConstraint(); |
1618 constraint = permission->ConstraintForIntent( aIntent ); |
1624 constraint = permission->ConstraintForIntent( aIntent ); |
1619 |
1625 |
3770 TAiwGenericParam param( EGenericParamFile, variantObject ); |
3776 TAiwGenericParam param( EGenericParamFile, variantObject ); |
3771 paramList->AppendL( param ); |
3777 paramList->AppendL( param ); |
3772 |
3778 |
3773 CAknLaunchAppService* launchAppService( CAknLaunchAppService::NewL( |
3779 CAknLaunchAppService* launchAppService( CAknLaunchAppService::NewL( |
3774 KUidDRMUI, this, paramList ) ); |
3780 KUidDRMUI, this, paramList ) ); |
|
3781 CleanupStack::PushL( launchAppService ); |
3775 iWait.Start(); |
3782 iWait.Start(); |
3776 delete launchAppService; |
3783 CleanupStack::PopAndDestroy( 2, paramList ); |
3777 CleanupStack::PopAndDestroy( paramList ); |
|
3778 } |
3784 } |
3779 else |
3785 else |
3780 { |
3786 { |
3781 // no UI to embed, launch Rights Manager UI stand-alone |
3787 // no UI to embed, launch Rights Manager UI stand-alone |
3782 // check if Rights Manager UI is already running |
3788 // check if Rights Manager UI is already running |