equal
deleted
inserted
replaced
1069 // check if rights have expired |
1069 // check if rights have expired |
1070 TBool checkViewRights = (cat==EMPXImage); |
1070 TBool checkViewRights = (cat==EMPXImage); |
1071 |
1071 |
1072 //Since uri can be either focused or unfocused item |
1072 //Since uri can be either focused or unfocused item |
1073 //better call ItemRightsValidityCheckL which doesn't modify lastconsumedUri. |
1073 //better call ItemRightsValidityCheckL which doesn't modify lastconsumedUri. |
1074 drmInvalid = !iDrmUtility->ItemRightsValidityCheckL(uri, checkViewRights); |
1074 CreateImageViewerInstanceL(); |
1075 |
1075 if(iImageViewerInstance->IsPrivate()) |
|
1076 { |
|
1077 drmInvalid = !iDrmUtility->ItemRightsValidityCheckL(iImageViewerInstance->ImageFileHandle(), checkViewRights); |
|
1078 } |
|
1079 else |
|
1080 { |
|
1081 drmInvalid = !iDrmUtility->ItemRightsValidityCheckL(uri, checkViewRights); |
|
1082 } |
|
1083 DeleteImageViewerInstance(); |
1076 CGlxMedia* properties = const_cast<CGlxMedia*>(aMedia.Properties()); |
1084 CGlxMedia* properties = const_cast<CGlxMedia*>(aMedia.Properties()); |
1077 if( !drmInvalid ) |
1085 if( !drmInvalid ) |
1078 { |
1086 { |
1079 properties->SetTObjectValueL(KGlxMediaGeneralDRMRightsValid, EGlxDrmRightsValid); |
1087 properties->SetTObjectValueL(KGlxMediaGeneralDRMRightsValid, EGlxDrmRightsValid); |
1080 } |
1088 } |
1301 return EFalse; |
1309 return EFalse; |
1302 } |
1310 } |
1303 } |
1311 } |
1304 return ETrue; |
1312 return ETrue; |
1305 } |
1313 } |
|
1314 |
|
1315 // ----------------------------------------------------------------------------- |
|
1316 // CreateImageViewerInstanceL |
|
1317 // ----------------------------------------------------------------------------- |
|
1318 // |
|
1319 void CGlxTextureManagerImpl::CreateImageViewerInstanceL() |
|
1320 { |
|
1321 TRACER("CGlxTextureManagerImpl::CreateImageViewerInstanceL"); |
|
1322 iImageViewerInstance = CGlxImageViewerManager::InstanceL(); |
|
1323 __ASSERT_ALWAYS(iImageViewerInstance, Panic(EGlxPanicNullPointer)); |
|
1324 } |
|
1325 |
|
1326 // ----------------------------------------------------------------------------- |
|
1327 // DeleteImageViewerInstance |
|
1328 // ----------------------------------------------------------------------------- |
|
1329 // |
|
1330 void CGlxTextureManagerImpl::DeleteImageViewerInstance() |
|
1331 { |
|
1332 TRACER("CGlxTextureManagerImpl::DeleteImageViewerInstance"); |
|
1333 if ( iImageViewerInstance ) |
|
1334 { |
|
1335 iImageViewerInstance->DeleteInstance(); |
|
1336 } |
|
1337 } |