234 if (!iIterator->InRange(aListIndex)) |
234 if (!iIterator->InRange(aListIndex)) |
235 { |
235 { |
236 return; |
236 return; |
237 } |
237 } |
238 |
238 |
|
239 CleanupClosePushL(aAttributes); |
239 // Just list all attributes specified for this context |
240 // Just list all attributes specified for this context |
240 TInt count = iAttributes.Count(); |
241 TInt count = iAttributes.Count(); |
241 for (TInt i = 0; i < count; i++) |
242 for (TInt i = 0; i < count; i++) |
242 { |
243 { |
243 aAttributes.AppendL(iAttributes[i]); |
244 aAttributes.AppendL(iAttributes[i]); |
244 } |
245 } |
|
246 CleanupStack::Pop(&aAttributes); |
245 } |
247 } |
246 |
248 |
247 // ----------------------------------------------------------------------------- |
249 // ----------------------------------------------------------------------------- |
248 // Number of current requests |
250 // Number of current requests |
249 // From MGlxFetchContext |
251 // From MGlxFetchContext |
341 // ----------------------------------------------------------------------------- |
343 // ----------------------------------------------------------------------------- |
342 void CGlxAttributeContext::AddItemAttributeL(RArray<TMPXAttribute>& aAttributes, |
344 void CGlxAttributeContext::AddItemAttributeL(RArray<TMPXAttribute>& aAttributes, |
343 const TMPXAttribute& aAttribute) const |
345 const TMPXAttribute& aAttribute) const |
344 { |
346 { |
345 TRACER("CGlxAttributeContext::AddItemAttributeL"); |
347 TRACER("CGlxAttributeContext::AddItemAttributeL"); |
346 |
348 CleanupClosePushL(aAttributes); |
347 TIdentityRelation<TMPXAttribute> match(&TMPXAttribute::Match); |
349 TIdentityRelation<TMPXAttribute> match(&TMPXAttribute::Match); |
348 TInt index = aAttributes.Find(aAttribute, match); |
350 TInt index = aAttributes.Find(aAttribute, match); |
349 |
351 |
350 if (index == KErrNotFound) |
352 if (index == KErrNotFound) |
351 { |
353 { |
352 aAttributes.AppendL(aAttribute); |
354 aAttributes.AppendL(aAttribute); |
353 } |
355 } |
|
356 CleanupStack::Pop(&aAttributes); |
354 } |
357 } |
355 |
358 |
356 // ----------------------------------------------------------------------------- |
359 // ----------------------------------------------------------------------------- |
357 // ----------------------------------------------------------------------------- |
360 // ----------------------------------------------------------------------------- |
358 // CGlxDefaultAttributeContext |
361 // CGlxDefaultAttributeContext |