mtpdataproviders/mtpimagedp/src/cmtpimagedpgetobjectinfo.cpp
branchRCL_3
changeset 24 523717cdb0ad
parent 0 d0791faffa3f
equal deleted inserted replaced
23:f5809cfbf6d5 24:523717cdb0ad
   112     {
   112     {
   113     __FLOG(_L8(">> CMTPImageDpGetObjectInfo::BuildObjectInfoL"));
   113     __FLOG(_L8(">> CMTPImageDpGetObjectInfo::BuildObjectInfoL"));
   114     iObjectPropertyMgr.SetCurrentObjectL(*iObjectMeta, EFalse);
   114     iObjectPropertyMgr.SetCurrentObjectL(*iObjectMeta, EFalse);
   115     
   115     
   116     //1. storage id
   116     //1. storage id
   117     TUint32 storageId;
   117     TUint32 storageId(0);
   118     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeStorageID, storageId);
   118     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeStorageID, storageId);
   119     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EStorageID, storageId);	
   119     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EStorageID, storageId);	
   120     
   120     
   121     //2. object format
   121     //2. object format
   122     TUint16 format;
   122     TUint16 format(0);
   123     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeObjectFormat, format);
   123     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeObjectFormat, format);
   124     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EObjectFormat, format);
   124     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EObjectFormat, format);
   125     
   125     
   126     //3. protection status,
   126     //3. protection status,
   127     TUint16 protection;
   127     TUint16 protection(0);
   128     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeProtectionStatus, protection);
   128     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeProtectionStatus, protection);
   129     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EProtectionStatus, protection);
   129     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EProtectionStatus, protection);
   130     
   130     
   131     //4. object compressed size
   131     //4. object compressed size
   132     // see SetFileSizeDateL
   132     // see SetFileSizeDateL
   136     //7. thumb pix width
   136     //7. thumb pix width
   137     //8, thumb pix height
   137     //8, thumb pix height
   138     //9. image pix width
   138     //9. image pix width
   139     //10. image pix height
   139     //10. image pix height
   140     //11. image bit depth
   140     //11. image bit depth
   141     TUint16 thumbFormat;
   141     TUint16 thumbFormat(0);
   142     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleFormat, thumbFormat);
   142     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleFormat, thumbFormat);
   143     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EThumbFormat, thumbFormat);
   143     iObjectInfoToBuild->SetUint16L(CMTPTypeObjectInfo::EThumbFormat, thumbFormat);
   144     TUint32 value;
   144     TUint32 value(0);
   145     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleSize, value);
   145     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleSize, value);
   146     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EThumbCompressedSize, value);
   146     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EThumbCompressedSize, value);
   147     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleWidth, value);
   147     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleWidth, value);
   148     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EThumbPixWidth, value);
   148     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EThumbPixWidth, value);
   149     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleHeight, value);
   149     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeRepresentativeSampleHeight, value);
   155     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EImagePixHeight, value);
   155     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EImagePixHeight, value);
   156     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeImageBitDepth, value);
   156     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeImageBitDepth, value);
   157     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EImageBitDepth, value);
   157     iObjectInfoToBuild->SetUint32L(CMTPTypeObjectInfo::EImageBitDepth, value);
   158     
   158     
   159     //12. Parent object
   159     //12. Parent object
   160     TUint32 parent;
   160     TUint32 parent(0);
   161     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeParentObject, parent);
   161     iObjectPropertyMgr.GetPropertyL(EMTPObjectPropCodeParentObject, parent);
   162     if(KMTPHandleNoParent == parent)
   162     if(KMTPHandleNoParent == parent)
   163         {
   163         {
   164         parent = KMTPHandleNone;
   164         parent = KMTPHandleNone;
   165         }
   165         }