mtpdataproviders/mtpimagedp/src/cmtpimagedpobjectpropertymgr.cpp
changeset 25 48a2e0d8a4ce
parent 22 a5c0bb5018eb
child 33 883e91c086aa
equal deleted inserted replaced
22:a5c0bb5018eb 25:48a2e0d8a4ce
   401         break;
   401         break;
   402     case EMTPObjectPropCodeRepresentativeSampleFormat:
   402     case EMTPObjectPropCodeRepresentativeSampleFormat:
   403         aValue = KThumbFormatCode;
   403         aValue = KThumbFormatCode;
   404        break;        
   404        break;        
   405     case EMTPObjectPropCodeProtectionStatus:
   405     case EMTPObjectPropCodeProtectionStatus:
   406         iFs.Entry(iObjectInfo->DesC(CMTPObjectMetaData::ESuid), entry);
   406         {
   407         if (entry.IsReadOnly())
   407         TInt err = iFs.Entry(iObjectInfo->DesC(CMTPObjectMetaData::ESuid), entry);        
       
   408         if ( err == KErrNone && entry.IsReadOnly())
   408             {
   409             {
   409             aValue = EMTPProtectionReadOnly;
   410             aValue = EMTPProtectionReadOnly;
   410             }
   411             }
   411         else
   412         else
   412             {
   413             {
   413             aValue = EMTPProtectionNoProtection;
   414             aValue = EMTPProtectionNoProtection;
   414             }
   415             }        
   415         break;        
   416         }    
       
   417         break;    
   416     default:
   418     default:
   417         aValue = 0;//initialization
   419         aValue = 0;//initialization
   418         //ingore the failure if we can't get properties form MdS
   420         //ingore the failure if we can't get properties form MdS
   419         TRAP_IGNORE(GetPropertyFromMdsL(aProperty, &aValue));
   421         TRAP_IGNORE(GetPropertyFromMdsL(aProperty, &aValue));
   420         break;
   422         break;