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
 
QDateTime RFC822TimeToQDateTime (const QString &) const
 
int GetNumComments (const QDomElement &) const
 
QStringList GetAllCategories (const QDomElement &) const
 
QPair< double, double > GetGeoPoint (const QDomElement &) const
 

Static Public Member Functions

static QString GetLink (const QDomElement &)
 
static QString GetAuthor (const QDomElement &)
 
static QString GetCommentsRSS (const QDomElement &)
 
static QString GetCommentsLink (const QDomElement &)
 
static QDateTime GetDCDateTime (const QDomElement &)
 
static QDateTime FromRFC3339 (const QString &)
 
static QList< MRSSEntryGetMediaRSS (const QDomElement &)
 
static QList< EnclosureGetEnclosures (const QDomElement &entry)
 
static QString UnescapeHTML (const QString &)
 

Static Protected Attributes

static const QString kDC = "http://purl.org/dc/elements/1.1/"
 
static const QString kWFW = "http://wellformedweb.org/CommentAPI/"
 
static const QString kAtom = "http://www.w3.org/2005/Atom"
 
static const QString kRDF = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
 
static const QString kSlash = "http://purl.org/rss/1.0/modules/slash/"
 
static const QString kEnc = "http://purl.oclc.org/net/rss_2.0/enc#"
 
static const QString kITunes = "http://www.itunes.com/dtds/podcast-1.0.dtd"
 
static const QString kGeoRSSSimple = "http://www.georss.org/georss"
 
static const QString kGeoRSSW3 = "http://www.w3.org/2003/01/geo/wgs84_pos#"
 
static const QString kMediaRSS = "http://search.yahoo.com/mrss/"
 
static const QString kMythRSS = "http://www.mythtv.org/wiki/MythNetvision_Grabber_Script_Format"
 

Private Attributes

QMap< QString, int > m_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)
static

Definition at line 955 of file rssparse.cpp.

◆ GetAuthor()

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

Definition at line 974 of file rssparse.cpp.

Referenced by RSSEditPopup::SlotSave().

◆ GetCommentsRSS()

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

Definition at line 996 of file rssparse.cpp.

◆ GetCommentsLink()

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

Definition at line 1006 of file rssparse.cpp.

◆ GetDCDateTime()

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

Definition at line 1015 of file rssparse.cpp.

◆ FromRFC3339()

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

Definition at line 1071 of file rssparse.cpp.

◆ RFC822TimeToQDateTime()

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

Definition at line 1023 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)
static

Definition at line 1125 of file rssparse.cpp.

◆ GetEnclosures()

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

Definition at line 1104 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

◆ m_timezoneOffsets

QMap<QString, int> Parse::m_timezoneOffsets
private

Definition at line 215 of file rssparse.h.

◆ kDC

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

Definition at line 218 of file rssparse.h.

◆ kWFW

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

Definition at line 219 of file rssparse.h.

◆ kAtom

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

Definition at line 220 of file rssparse.h.

◆ kRDF

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

Definition at line 221 of file rssparse.h.

◆ kSlash

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

Definition at line 222 of file rssparse.h.

◆ kEnc

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

Definition at line 223 of file rssparse.h.

◆ kITunes

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

Definition at line 224 of file rssparse.h.

◆ kGeoRSSSimple

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

Definition at line 225 of file rssparse.h.

◆ kGeoRSSW3

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

Definition at line 226 of file rssparse.h.

◆ kMediaRSS

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

◆ kMythRSS

const QString Parse::kMythRSS = "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: