mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetobjectproplist.cpp
changeset 48 b7b49303d0c0
parent 35 2ee890d2f7e7
child 50 762d760dcfdf
equal deleted inserted replaced
45:09978a29cfde 48:b7b49303d0c0
   642 
   642 
   643         // Parent Object
   643         // Parent Object
   644         case EMTPObjectPropCodeParentObject:
   644         case EMTPObjectPropCodeParentObject:
   645             {
   645             {
   646             iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) );
   646             iPropertyElement = &( iPropertyList->ReservePropElemL( aHandle, aPropCode ) );
   647             iPropertyElement->SetUint32L( CMTPTypeObjectPropListElement::EValue, iObject->Uint( CMTPObjectMetaData::EParentHandle ) );
   647             TUint32 parentHandle = iObject->Uint( CMTPObjectMetaData::EParentHandle );
       
   648             // refer to 5.3.1.9 of MTP Spec 1.0
       
   649             if ( parentHandle == KMTPHandleNoParent )
       
   650                 {
       
   651                 parentHandle = KMTPHandleNone;
       
   652                 }
       
   653             iPropertyElement->SetUint32L( CMTPTypeObjectPropListElement::EValue, parentHandle );
   648             }
   654             }
   649             break;
   655             break;
   650 
   656 
   651         // PUID
   657         // PUID
   652         case EMTPObjectPropCodePersistentUniqueObjectIdentifier:
   658         case EMTPObjectPropCodePersistentUniqueObjectIdentifier: