equal
deleted
inserted
replaced
71 CleanupStack::PopAndDestroy(charset); |
71 CleanupStack::PopAndDestroy(charset); |
72 } |
72 } |
73 |
73 |
74 void COpmlParser::OnEndDocumentL(TInt aErrorCode) |
74 void COpmlParser::OnEndDocumentL(TInt aErrorCode) |
75 { |
75 { |
76 iFeedEngine.OpmlParsingComplete(aErrorCode, iNumFeedsAdded); |
76 iFeedEngine.OpmlParsingCompleteL(aErrorCode, iNumFeedsAdded); |
77 //DP("OnEndDocumentL()"); |
77 //DP("OnEndDocumentL()"); |
78 } |
78 } |
79 |
79 |
80 void COpmlParser::OnStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes, TInt /*aErrorCode*/) |
80 void COpmlParser::OnStartElementL(const RTagInfo& aElement, const RAttributeArray& aAttributes, TInt /*aErrorCode*/) |
81 { |
81 { |
150 |
150 |
151 if (iSearching) { |
151 if (iSearching) { |
152 iFeedEngine.AddSearchResultL(newFeed); |
152 iFeedEngine.AddSearchResultL(newFeed); |
153 CleanupStack::Pop(newFeed); |
153 CleanupStack::Pop(newFeed); |
154 } else { |
154 } else { |
155 if(iFeedEngine.AddFeedL(*newFeed)) |
155 TRAPD(err, iFeedEngine.AddFeedL(*newFeed)) |
|
156 if (err == KErrNone) |
156 { |
157 { |
157 iNumFeedsAdded++; |
158 iNumFeedsAdded++; |
158 } |
159 } |
159 CleanupStack::PopAndDestroy(newFeed); |
160 CleanupStack::PopAndDestroy(newFeed); |
160 } |
161 } |
227 } |
228 } |
228 |
229 |
229 void COpmlParser::OnError(TInt aErrorCode) |
230 void COpmlParser::OnError(TInt aErrorCode) |
230 { |
231 { |
231 DP1("COpmlParser::OnError %d", aErrorCode); |
232 DP1("COpmlParser::OnError %d", aErrorCode); |
232 iFeedEngine.OpmlParsingComplete(aErrorCode, iNumFeedsAdded); |
233 iFeedEngine.OpmlParsingCompleteL(aErrorCode, iNumFeedsAdded); |
233 } |
234 } |
234 |
235 |
235 TAny* COpmlParser::GetExtendedInterface(const TInt32 /*aUid*/) |
236 TAny* COpmlParser::GetExtendedInterface(const TInt32 /*aUid*/) |
236 { |
237 { |
237 //DP("GetExtendedInterface()"); |
238 //DP("GetExtendedInterface()"); |