mtpfws/mtpfw/dataproviders/devdp/src/cmtpdevicedp.cpp
changeset 31 a26669f87b46
parent 20 6e82ae192c3a
child 37 d9d8313203af
equal deleted inserted replaced
29:3ae5cb0b4c02 31:a26669f87b46
   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 			iExtnPluginMapArray.AppendL(extnpluginMap);
   392 			}
   392 			}
   393 
   393 
   394 		}
   394 		}
   395 	CleanupStack::PopAndDestroy(&extnUidArray);
   395 	CleanupStack::PopAndDestroy(&extnUidArray);
   396 	}
   396 	}
   479     TBool isFolder( EFalse );
   479     TBool isFolder( EFalse );
   480     BaflUtils::IsFolder( Framework().Fs(), aPath, isFolder );
   480     BaflUtils::IsFolder( Framework().Fs(), aPath, isFolder );
   481     
   481     
   482     __ASSERT_ALWAYS( isFolder, User::Leave( KErrArgument ));
   482     __ASSERT_ALWAYS( isFolder, User::Leave( KErrArgument ));
   483     __ASSERT_ALWAYS( aParentHandle != KMTPHandleNone, User::Leave( KErrArgument ));
   483     __ASSERT_ALWAYS( aParentHandle != KMTPHandleNone, User::Leave( KErrArgument ));
   484     __ASSERT_ALWAYS( Framework().StorageMgr().ValidStorageId( aStorageId ), User::Invariant());
   484     __ASSERT_ALWAYS( Framework().StorageMgr().ValidStorageId( aStorageId ), User::Leave( KErrArgument ));
   485 
   485 
   486     __FLOG_VA((_L16("Add Entry for Path:%S"), &aPath ));
   486     __FLOG_VA((_L16("Add Entry for Path:%S"), &aPath ));
   487     aObjectInfo.SetUint( CMTPObjectMetaData::EDataProviderId, Framework().DataProviderId() );
   487     aObjectInfo.SetUint( CMTPObjectMetaData::EDataProviderId, Framework().DataProviderId() );
   488     aObjectInfo.SetUint( CMTPObjectMetaData::EFormatCode, EMTPFormatCodeAssociation );
   488     aObjectInfo.SetUint( CMTPObjectMetaData::EFormatCode, EMTPFormatCodeAssociation );
   489     aObjectInfo.SetUint( CMTPObjectMetaData::EStorageId, aStorageId );
   489     aObjectInfo.SetUint( CMTPObjectMetaData::EStorageId, aStorageId );