equal
deleted
inserted
replaced
258 // Ask the rights from CAF, same call for both ECanPlay and ECanView |
258 // Ask the rights from CAF, same call for both ECanPlay and ECanView |
259 User::LeaveIfError( aContent.GetAttribute( ContentAccess::ECanPlay, value ) ); |
259 User::LeaveIfError( aContent.GetAttribute( ContentAccess::ECanPlay, value ) ); |
260 |
260 |
261 if ( !value ) |
261 if ( !value ) |
262 { |
262 { |
263 ShowNoRightsNoteL( aContent, reason ); |
263 ShowNoRightsNoteL( aContent, reason, aOperationId, aObserver ); |
264 User::LeaveIfError( aContent.GetAttribute( ContentAccess::ECanPlay, value ) ); |
264 User::LeaveIfError( aContent.GetAttribute( ContentAccess::ECanPlay, value ) ); |
265 if ( value ) |
265 if ( value ) |
266 { |
266 { |
267 CallRightsAvailable( aObserver, aOperationId, KErrNone ); |
267 CallRightsAvailable( aObserver, aOperationId, KErrNone ); |
268 } |
268 } |
482 |
482 |
483 switch ( rightsAction ) |
483 switch ( rightsAction ) |
484 { |
484 { |
485 case DRM::EUHCheckRightsActionDefault: |
485 case DRM::EUHCheckRightsActionDefault: |
486 { |
486 { |
487 ShowNoRightsNoteL( aContent, aReason ); |
487 ShowNoRightsNoteL( aContent, aReason, aOperationId, aObserver ); |
488 } |
488 } |
489 break; |
489 break; |
490 |
490 |
491 case DRM::EUHCheckRightsActionOpenDetailsView: |
491 case DRM::EUHCheckRightsActionOpenDetailsView: |
492 { |
492 { |
540 // CDrmUtilityWMDrmWrapper::ShowNoRightsNoteL |
540 // CDrmUtilityWMDrmWrapper::ShowNoRightsNoteL |
541 // ----------------------------------------------------------------------------- |
541 // ----------------------------------------------------------------------------- |
542 // |
542 // |
543 void DRM::CDrmUtilityWMDrmWrapper::ShowNoRightsNoteL( |
543 void DRM::CDrmUtilityWMDrmWrapper::ShowNoRightsNoteL( |
544 ContentAccess::CData& aContent, |
544 ContentAccess::CData& aContent, |
545 TUint32 /*aReason*/ ) |
545 TUint32 /*aReason*/, |
546 { |
546 TInt aOperationId, |
|
547 DRM::MDrmHandleErrorObserver* aObserver ) |
|
548 { |
|
549 TInt value; |
547 TRAPD( err, LoadDlaWrapperL() ); |
550 TRAPD( err, LoadDlaWrapperL() ); |
548 if ( !err ) |
551 if ( !err ) |
549 { |
552 { |
550 TInt ret( EOk ); |
553 TInt ret( EOk ); |
551 RFile file; |
554 RFile file; |
566 } |
569 } |
567 |
570 |
568 if ( !err && ret == EOk ) |
571 if ( !err && ret == EOk ) |
569 { |
572 { |
570 TRAP_IGNORE( DlaLicenseAcquisitionL( file ) ); |
573 TRAP_IGNORE( DlaLicenseAcquisitionL( file ) ); |
|
574 |
|
575 // Ask the rights from CAF, same call for both ECanPlay and ECanView |
|
576 aContent.GetAttribute( ContentAccess::ECanPlay, value ); |
|
577 // call given HandleErrorObserver |
|
578 if( value > 0 ) |
|
579 { |
|
580 aObserver->RightsAvailable( aOperationId, KErrNone ); |
|
581 } |
571 } |
582 } |
572 CleanupStack::PopAndDestroy( &file ); |
583 CleanupStack::PopAndDestroy( &file ); |
573 } |
584 } |
574 else |
585 else |
575 { |
586 { |