equal
deleted
inserted
replaced
247 // |
247 // |
248 void CGlxCache::CopyNewAndModifiedL(CGlxMedia& aTarget, const CMPXMedia& aSource, |
248 void CGlxCache::CopyNewAndModifiedL(CGlxMedia& aTarget, const CMPXMedia& aSource, |
249 RArray<TMPXAttribute>& aNewAttributes) |
249 RArray<TMPXAttribute>& aNewAttributes) |
250 { |
250 { |
251 TRACER("CGlxCache::CopyNewAndModifiedL"); |
251 TRACER("CGlxCache::CopyNewAndModifiedL"); |
|
252 CleanupClosePushL(aNewAttributes); |
252 |
253 |
253 /// @todo This is all temporary until global chunk based CMPXMedia is available |
254 /// @todo This is all temporary until global chunk based CMPXMedia is available |
254 TInt count = aSource.Count(); |
255 TInt count = aSource.Count(); |
255 GLX_DEBUG2("CGlxCache::CopyNewAndModifiedL() Attribs count=%d", count); |
256 GLX_DEBUG2("CGlxCache::CopyNewAndModifiedL() Attribs count=%d", count); |
256 aNewAttributes.ReserveL( count ); |
257 aNewAttributes.ReserveL( count ); |
315 { |
316 { |
316 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TInt64>(attrib)); |
317 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TInt64>(attrib)); |
317 } |
318 } |
318 else if (attrib == KMPXMediaGeneralSize) |
319 else if (attrib == KMPXMediaGeneralSize) |
319 { |
320 { |
320 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TInt>(attrib)); |
321 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TUint>(attrib)); |
321 } |
322 } |
322 else if (attrib == KMPXMediaColDetailSpaceId) |
323 else if (attrib == KMPXMediaColDetailSpaceId) |
323 { |
324 { |
324 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TGlxIdSpaceId>(attrib)); |
325 aTarget.SetTObjectValueL(attrib, aSource.ValueTObjectL<TGlxIdSpaceId>(attrib)); |
325 } |
326 } |
379 |
380 |
380 aNewAttributes.AppendL(attrib); |
381 aNewAttributes.AppendL(attrib); |
381 } |
382 } |
382 } |
383 } |
383 } |
384 } |
|
385 CleanupStack::Pop(&aNewAttributes); |
384 } |
386 } |
385 |
387 |
386 // ----------------------------------------------------------------------------- |
388 // ----------------------------------------------------------------------------- |
387 // Delete |
389 // Delete |
388 // ----------------------------------------------------------------------------- |
390 // ----------------------------------------------------------------------------- |