--- a/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetobjectinfo.cpp Wed Sep 15 12:45:22 2010 +0300
+++ b/mmappcomponents/mmmtpdataprovider/mmmtpdprequestprocessor/src/cgetobjectinfo.cpp Wed Oct 13 15:06:09 2010 +0300
@@ -95,6 +95,7 @@
//
EXPORT_C void CGetObjectInfo::ConstructL()
{
+ CActiveScheduler::Add( this );
}
// -----------------------------------------------------------------------------
@@ -105,7 +106,7 @@
void CGetObjectInfo::ServiceL()
{
PRINT( _L( "MM MTP => CGetObjectInfo::ServiceL" ) );
-
+
MmMtpDpUtility::SetPSStatus(EMtpPSStatusActive);
delete iObjectInfo;
@@ -173,13 +174,8 @@
// Image Bit Depth
iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EImageBitDepth, 0 );
// Parent Object
- TUint32 parentHandle = object->Uint( CMTPObjectMetaData::EParentHandle );
- // refer to 5.3.1.9 of MTP Spec 1.0
- if ( parentHandle == KMTPHandleNoParent )
- {
- parentHandle = KMTPHandleNone;
- }
- iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject, parentHandle );
+ iObjectInfo->SetUint32L( CMTPTypeObjectInfo::EParentObject,
+ object->Uint( CMTPObjectMetaData::EParentHandle ) );
// Association Type
iObjectInfo->SetUint16L( CMTPTypeObjectInfo::EAssociationType, 0 );
// Association Description