nsIFeedResultListener
Last changed in Gecko 1.8 (Firefox 1.5 / Thunderbird 1.5 / SeaMonkey 1.0)void handleEntry(in nsIFeedEntry entry, in nsIFeedResult result); |
void handleFeedAtFirstEntry(in nsIFeedResult result); |
void handleStartFeed(in nsIFeedResult result); |
void reportError(in AString errorText, in long lineNumber, in boolean bozo); |
Called after each entry or item is processed. If the document is a standalone item or entry, the HandleFeedAtFirstEntry()
method will not already have been called, and the received nsIFeedEntry
will have a null
parent
value.
void handleEntry( in nsIFeedEntry entry, in nsIFeedResult result );
entry
nsIFeedEntry
containing information about the entry that was just processed.result
nsIFeedResult
containing the current information about the feed being processed.Called when the first entry or item in the feed is encountered. In Atom, all feed data is required to precede the entries; in RSS, this isn't required but is typically the case. In other words, by the time this method is called, it is most likely that most or all of the feed-level metadata has been processed and is available in the received nsIFeedResult
object.
void handleFeedAtFirstEntry( in nsIFeedResult result );
result
nsIFeedResult
describing the feed at the point at which the first entry is found, but before processing it.Called as soon as a reasonable start to a feed is detected; this lets your code know that the feed does appear to be an actual feed rather than some other sort of document.
void handleStartFeed( in nsIFeedResult result );
result
nsIFeedResult
describing the current state of the feed at the moment parsing begins.Called by the feed processor when a fatal XML parsing error occurs, or if the document isn't a feed.
void reportError( in AString errorText, in long lineNumber, in boolean bozo );
errorText
lineNumber
bozo
Interwiki lin