akregator/src/librss

RSS::FeedDetector Class Reference

#include <feeddetector.h>

List of all members.


Detailed Description

a class providing functions to detect linked feeds in HTML sources

Definition at line 55 of file feeddetector.h.


Static Public Member Functions

static FeedDetectorEntryList extractFromLinkTags (const QString &s)
static QStringList extractBruteForce (const QString &s)
static QString fixRelativeURL (const QString &s, const KURL &baseurl)

Member Function Documentation

FeedDetectorEntryList FeedDetector::extractFromLinkTags ( const QString &  s  )  [static]

searches an HTML page for feeds listed in <link> tags <link> tags with rel attribute values alternate or service.feed are considered as feeds

Parameters:
s the html source to scan (the actual source, no URI)
Returns:
a list containing the detected feeds

Definition at line 37 of file feeddetector.cpp.

QStringList FeedDetector::extractBruteForce ( const QString &  s  )  [static]

searches an HTML page for slightly feed-like looking links and catches everything not running away quickly enough.

Extracts links from <a href> tags which end with xml, rss or rdf

Parameters:
s the html source to scan (the actual source, no URI)
Returns:
a list containing the detected feeds

Definition at line 108 of file feeddetector.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys