MythTV  master
Public Member Functions | Static Public Member Functions | Static Protected Attributes | Private Attributes | Friends | List of all members
Parse Class Reference

#include <rssparse.h>

Inheritance diagram for Parse:
Inheritance graph
[legend]
Collaboration diagram for Parse:
Collaboration graph
[legend]

Public Member Functions

 Parse ()=default
 
virtual ~Parse ()=default
 
ResultItem::resultList parseRSS (const QDomDocument &domDoc)
 
ResultItemParseItem (const QDomElement &item) const
 
QString GetLink (const QDomElement &) const
 
QString GetAuthor (const QDomElement &) const
 
QString GetCommentsRSS (const QDomElement &) const
 
QString GetCommentsLink (const QDomElement &) const
 
QDateTime GetDCDateTime (const QDomElement &) const
 
QDateTime FromRFC3339 (const QString &) const
 
QDateTime RFC822TimeToQDateTime (const QString &) const
 
int GetNumComments (const QDomElement &) const
 
QStringList GetAllCategories (const QDomElement &) const
 
QPair< double, double > GetGeoPoint (const QDomElement &) const
 
QList< MRSSEntryGetMediaRSS (const QDomElement &) const
 
QList< EnclosureGetEnclosures (const QDomElement &entry) const
 

Static Public Member Functions

static QString UnescapeHTML (const QString &)
 

Static Protected Attributes

static const QString s_DC = "http://purl.org/dc/elements/1.1/"
 
static const QString s_WFW = "http://wellformedweb.org/CommentAPI/"
 
static const QString s_Atom = "http://www.w3.org/2005/Atom"
 
static const QString s_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
static const QString s_Slash = "http://purl.org/rss/1.0/modules/slash/"
 
static const QString s_Enc = "http://purl.oclc.org/net/rss_2.0/enc#"
 
static const QString s_ITunes = "http://www.itunes.com/dtds/podcast-1.0.dtd"
 
static const QString s_GeoRSSSimple = "http://www.georss.org/georss"
 
static const QString s_GeoRSSW3 = "http://www.w3.org/2003/01/geo/wgs84_pos#"
 
static const QString s_MediaRSS = "http://search.yahoo.com/mrss/"
 
static const QString s_MythRSS = "http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format"
 

Private Attributes

QMap< QString, int > TimezoneOffsets
 

Friends

class MRSSParser
 

Detailed Description

Definition at line 188 of file rssparse.h.

Constructor & Destructor Documentation

◆ Parse()

Parse::Parse ( )
default

◆ ~Parse()

virtual Parse::~Parse ( )
virtualdefault

Member Function Documentation

◆ parseRSS()

ResultItem::resultList Parse::parseRSS ( const QDomDocument &  domDoc)

Definition at line 712 of file rssparse.cpp.

Referenced by Search::process().

◆ ParseItem()

ResultItem * Parse::ParseItem ( const QDomElement &  item) const

Definition at line 735 of file rssparse.cpp.

Referenced by GrabberScript::parseDBTree().

◆ GetLink()

QString Parse::GetLink ( const QDomElement &  parent) const

Definition at line 941 of file rssparse.cpp.

◆ GetAuthor()

QString Parse::GetAuthor ( const QDomElement &  parent) const

Definition at line 960 of file rssparse.cpp.

◆ GetCommentsRSS()

QString Parse::GetCommentsRSS ( const QDomElement &  parent) const

Definition at line 982 of file rssparse.cpp.

◆ GetCommentsLink()

QString Parse::GetCommentsLink ( const QDomElement &  parent) const

Definition at line 992 of file rssparse.cpp.

◆ GetDCDateTime()

QDateTime Parse::GetDCDateTime ( const QDomElement &  parent) const

Definition at line 1001 of file rssparse.cpp.

◆ FromRFC3339()

QDateTime Parse::FromRFC3339 ( const QString &  t) const

Definition at line 1056 of file rssparse.cpp.

◆ RFC822TimeToQDateTime()

QDateTime Parse::RFC822TimeToQDateTime ( const QString &  t) const

Definition at line 1009 of file rssparse.cpp.

◆ GetNumComments()

int Parse::GetNumComments ( const QDomElement &  ) const

◆ GetAllCategories()

QStringList Parse::GetAllCategories ( const QDomElement &  ) const

◆ GetGeoPoint()

QPair<double, double> Parse::GetGeoPoint ( const QDomElement &  ) const

◆ GetMediaRSS()

QList< MRSSEntry > Parse::GetMediaRSS ( const QDomElement &  item) const

Definition at line 1111 of file rssparse.cpp.

◆ GetEnclosures()

QList< Enclosure > Parse::GetEnclosures ( const QDomElement &  entry) const

Definition at line 1090 of file rssparse.cpp.

◆ UnescapeHTML()

QString Parse::UnescapeHTML ( const QString &  escaped)
static

Friends And Related Function Documentation

◆ MRSSParser

friend class MRSSParser
friend

Definition at line 191 of file rssparse.h.

Member Data Documentation

◆ TimezoneOffsets

QMap<QString, int> Parse::TimezoneOffsets
private

Definition at line 215 of file rssparse.h.

◆ s_DC

const QString Parse::s_DC = "http://purl.org/dc/elements/1.1/"
staticprotected

Definition at line 218 of file rssparse.h.

◆ s_WFW

const QString Parse::s_WFW = "http://wellformedweb.org/CommentAPI/"
staticprotected

Definition at line 219 of file rssparse.h.

◆ s_Atom

const QString Parse::s_Atom = "http://www.w3.org/2005/Atom"
staticprotected

Definition at line 220 of file rssparse.h.

◆ s_RDF

const QString Parse::s_RDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
staticprotected

Definition at line 221 of file rssparse.h.

◆ s_Slash

const QString Parse::s_Slash = "http://purl.org/rss/1.0/modules/slash/"
staticprotected

Definition at line 222 of file rssparse.h.

◆ s_Enc

const QString Parse::s_Enc = "http://purl.oclc.org/net/rss_2.0/enc#"
staticprotected

Definition at line 223 of file rssparse.h.

◆ s_ITunes

const QString Parse::s_ITunes = "http://www.itunes.com/dtds/podcast-1.0.dtd"
staticprotected

Definition at line 224 of file rssparse.h.

◆ s_GeoRSSSimple

const QString Parse::s_GeoRSSSimple = "http://www.georss.org/georss"
staticprotected

Definition at line 225 of file rssparse.h.

◆ s_GeoRSSW3

const QString Parse::s_GeoRSSW3 = "http://www.w3.org/2003/01/geo/wgs84_pos#"
staticprotected

Definition at line 226 of file rssparse.h.

◆ s_MediaRSS

const QString Parse::s_MediaRSS = "http://search.yahoo.com/mrss/"
staticprotected

◆ s_MythRSS

const QString Parse::s_MythRSS = "http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format"
staticprotected

Definition at line 228 of file rssparse.h.


The documentation for this class was generated from the following files: