browserutilities/feedsengine/FeedsServer/FeedHandler/src/FeedParser.cpp
branchRCL_3
changeset 70 8bfb9186a8b8
parent 37 cb62a4f66ebe
child 93 79859ed3eea9
equal deleted inserted replaced
67:4917f9bf7995 70:8bfb9186a8b8
   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