293 // |
293 // |
294 void CFeedParser::AddMappingL(RArray<ElementHandlerMapEntry>& aMappings, |
294 void CFeedParser::AddMappingL(RArray<ElementHandlerMapEntry>& aMappings, |
295 const TDesC8& aNamespace, const TDesC8& aElementName, TInt aValueId, |
295 const TDesC8& aNamespace, const TDesC8& aElementName, TInt aValueId, |
296 ElementHandlerFunctionL aHandler) |
296 ElementHandlerFunctionL aHandler) |
297 { |
297 { |
|
298 CleanupClosePushL(aMappings); |
298 ElementHandlerMapEntry entry; |
299 ElementHandlerMapEntry entry; |
299 |
300 |
300 // Init the entry. |
301 // Init the entry. |
301 entry.iElementNamespace.Set(aNamespace); |
302 entry.iElementNamespace.Set(aNamespace); |
302 entry.iElementName.Set(aElementName); |
303 entry.iElementName.Set(aElementName); |
303 entry.iValueId = aValueId; |
304 entry.iValueId = aValueId; |
304 entry.iElementHandlerL = aHandler; |
305 entry.iElementHandlerL = aHandler; |
305 |
306 |
306 // Append the entry. |
307 // Append the entry. |
307 User::LeaveIfError(aMappings.Append(entry)); |
308 User::LeaveIfError(aMappings.Append(entry)); |
|
309 CleanupStack::Pop(); |
308 } |
310 } |
309 |
311 |
310 |
312 |
311 // ----------------------------------------------------------------------------- |
313 // ----------------------------------------------------------------------------- |
312 // CFeedParser::HandleChildL |
314 // CFeedParser::HandleChildL |