mtpfws/mtpfw/dataproviders/devdp/src/cmtpdevicedp.cpp
changeset 38 48c22c726cf9
parent 20 6e82ae192c3a
child 47 63cf70d3ecd8
equal deleted inserted replaced
33:883e91c086aa 38:48c22c726cf9
   386 		CDevDpExtnPluginMap* extnpluginMap = NULL;
   386 		CDevDpExtnPluginMap* extnpluginMap = NULL;
   387 		extnpluginMap = CDevDpExtnPluginMap::NewL(*this, TUid::Uid(extnUidArray[i]));
   387 		extnpluginMap = CDevDpExtnPluginMap::NewL(*this, TUid::Uid(extnUidArray[i]));
   388 
   388 
   389 		if(extnpluginMap )
   389 		if(extnpluginMap )
   390 			{
   390 			{
   391 			iExtnPluginMapArray.Append(extnpluginMap);
   391             CleanupStack::PushL(extnpluginMap);
       
   392 			iExtnPluginMapArray.AppendL(extnpluginMap);
       
   393 			CleanupStack::Pop(extnpluginMap);
   392 			}
   394 			}
   393 
   395 
   394 		}
   396 		}
   395 	CleanupStack::PopAndDestroy(&extnUidArray);
   397 	CleanupStack::PopAndDestroy(&extnUidArray);
   396 	}
   398 	}
   479     TBool isFolder( EFalse );
   481     TBool isFolder( EFalse );
   480     BaflUtils::IsFolder( Framework().Fs(), aPath, isFolder );
   482     BaflUtils::IsFolder( Framework().Fs(), aPath, isFolder );
   481     
   483     
   482     __ASSERT_ALWAYS( isFolder, User::Leave( KErrArgument ));
   484     __ASSERT_ALWAYS( isFolder, User::Leave( KErrArgument ));
   483     __ASSERT_ALWAYS( aParentHandle != KMTPHandleNone, User::Leave( KErrArgument ));
   485     __ASSERT_ALWAYS( aParentHandle != KMTPHandleNone, User::Leave( KErrArgument ));
   484     __ASSERT_ALWAYS( Framework().StorageMgr().ValidStorageId( aStorageId ), User::Invariant());
   486     __ASSERT_ALWAYS( Framework().StorageMgr().ValidStorageId( aStorageId ), User::Leave( KErrArgument ));
   485 
   487 
   486     __FLOG_VA((_L16("Add Entry for Path:%S"), &aPath ));
   488     __FLOG_VA((_L16("Add Entry for Path:%S"), &aPath ));
   487     aObjectInfo.SetUint( CMTPObjectMetaData::EDataProviderId, Framework().DataProviderId() );
   489     aObjectInfo.SetUint( CMTPObjectMetaData::EDataProviderId, Framework().DataProviderId() );
   488     aObjectInfo.SetUint( CMTPObjectMetaData::EFormatCode, EMTPFormatCodeAssociation );
   490     aObjectInfo.SetUint( CMTPObjectMetaData::EFormatCode, EMTPFormatCodeAssociation );
   489     aObjectInfo.SetUint( CMTPObjectMetaData::EStorageId, aStorageId );
   491     aObjectInfo.SetUint( CMTPObjectMetaData::EStorageId, aStorageId );