mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetobjectproplist.cpp
equal
deleted
inserted
replaced
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: |