mtpdataproviders/mtpimagedp/src/cmtpimagedpsetobjectproplist.cpp
branchRCL_3
changeset 48 debf68073f2f
parent 11 4843bb5893b6
child 58 142dacf7b30e
equal deleted inserted replaced
45:74aa6861c87d 48:debf68073f2f
   114                         objects.ModifyObjectL(*iObjectMeta);
   114                         objects.ModifyObjectL(*iObjectMeta);
   115                         break;
   115                         break;
   116                     case EMTPObjectPropCodeNonConsumable:
   116                     case EMTPObjectPropCodeNonConsumable:
   117                         iPropertyMgr.SetPropertyL(TMTPObjectPropertyCode(propertyCode), element.Uint8L(CMTPTypeObjectPropListElement::EValue));
   117                         iPropertyMgr.SetPropertyL(TMTPObjectPropertyCode(propertyCode), element.Uint8L(CMTPTypeObjectPropListElement::EValue));
   118                         objects.ModifyObjectL(*iObjectMeta);
   118                         objects.ModifyObjectL(*iObjectMeta);
   119                         break;                        
   119                         break;
       
   120                     case EMTPObjectPropCodeHidden:
       
   121                         iPropertyMgr.SetPropertyL(TMTPObjectPropertyCode(propertyCode), element.Uint16L(CMTPTypeObjectPropListElement::EValue));
       
   122                         break;
   120                     default:
   123                     default:
   121                         responseCode = EMTPRespCodeInvalidObjectPropCode;
   124                         responseCode = EMTPRespCodeInvalidObjectPropCode;
   122                         break;
   125                         break;
   123                     }
   126                     }
   124                 
   127                 
   178         case EMTPObjectPropCodeNonConsumable:
   181         case EMTPObjectPropCodeNonConsumable:
   179             if (aDataType != EMTPTypeUINT8)
   182             if (aDataType != EMTPTypeUINT8)
   180                 {
   183                 {
   181                 responseCode = EMTPRespCodeInvalidObjectPropFormat;
   184                 responseCode = EMTPRespCodeInvalidObjectPropFormat;
   182                 }
   185                 }
   183             break;            
   186             break;
       
   187         case EMTPObjectPropCodeHidden:
       
   188             if (aDataType != EMTPTypeUINT16)
       
   189                 {
       
   190                 responseCode = EMTPRespCodeInvalidObjectPropFormat;
       
   191                 }
       
   192             break;
   184         default:
   193         default:
   185             responseCode = EMTPRespCodeInvalidObjectPropCode;
   194             responseCode = EMTPRespCodeInvalidObjectPropCode;
   186         }
   195         }
   187     __FLOG(_L8("<< CMTPImageDpSetObjectPropList::CheckPropCode"));
   196     __FLOG(_L8("<< CMTPImageDpSetObjectPropList::CheckPropCode"));
   188     return responseCode;
   197     return responseCode;