mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetobjectinfo.cpp
changeset 48 b7b49303d0c0
parent 32 edd273b3192a
child 50 762d760dcfdf
equal deleted inserted replaced
45:09978a29cfde 48:b7b49303d0c0
   172     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImagePixHeight, height );
   172     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImagePixHeight, height );
   173 
   173 
   174     // Image Bit Depth
   174     // Image Bit Depth
   175     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImageBitDepth, 0 );
   175     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImageBitDepth, 0 );
   176     // Parent Object
   176     // Parent Object
   177     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject,
   177     TUint32 parentHandle = object->Uint( CMTPObjectMetaData::EParentHandle );
   178         object->Uint( CMTPObjectMetaData::EParentHandle ) );
   178     // refer to 5.3.1.9 of MTP Spec 1.0
       
   179     if ( parentHandle == KMTPHandleNoParent )
       
   180         {
       
   181         parentHandle = KMTPHandleNone;
       
   182         }
       
   183     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject, parentHandle );
   179     // Association Type
   184     // Association Type
   180     iObjectInfo->SetUint16L( CMTPTypeObjectInfo::EAssociationType, 0 );
   185     iObjectInfo->SetUint16L( CMTPTypeObjectInfo::EAssociationType, 0 );
   181     // Association Description
   186     // Association Description
   182     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EAssociationDescription, 0 );
   187     iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EAssociationDescription, 0 );
   183     // *Sequence Number
   188     // *Sequence Number