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

#include <libmythbase/rssparse.h>

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

Public Member Functions

 Parse ()=default
 
 ~Parse () override=default
 
QStringList GetAllCategories (const QDomElement &) const
 

Static Public Member Functions

static ResultItem::resultList parseRSS (const QDomDocument &domDoc)
 
static ResultItemParseItem (const QDomElement &item)
 
static QString GetLink (const QDomElement &parent)
 
static QString GetAuthor (const QDomElement &parent)
 
static QString GetCommentsRSS (const QDomElement &parent)
 
static QString GetCommentsLink (const QDomElement &parent)
 
static QDateTime GetDCDateTime (const QDomElement &parent)
 
static QDateTime FromRFC3339 (const QString &t)
 
static QDateTime RFC822TimeToQDateTime (const QString &parent)
 
static QList< MRSSEntryGetMediaRSS (const QDomElement &item)
 
static QList< EnclosureGetEnclosures (const QDomElement &entry)
 
static QString UnescapeHTML (const QString &escaped)
 

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"
 

Static Private Attributes

static 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()

Parse::~Parse ( )
overridedefault

Member Function Documentation

◆ parseRSS()

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

Definition at line 711 of file rssparse.cpp.

Referenced by RSSSite::process(), and Search::process().

◆ ParseItem()

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

Definition at line 734 of file rssparse.cpp.

Referenced by GrabberScript::parseDBTree(), and parseRSS().

◆ GetLink()

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

Definition at line 954 of file rssparse.cpp.

◆ GetAuthor()

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

Definition at line 973 of file rssparse.cpp.

Referenced by ParseItem(), and RSSEditPopup::SlotSave().

◆ GetCommentsRSS()

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

Definition at line 995 of file rssparse.cpp.

◆ GetCommentsLink()

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

Definition at line 1005 of file rssparse.cpp.

◆ GetDCDateTime()

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

Definition at line 1014 of file rssparse.cpp.

Referenced by ParseItem().

◆ FromRFC3339()

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

Definition at line 1074 of file rssparse.cpp.

Referenced by GetDCDateTime().

◆ RFC822TimeToQDateTime()

QDateTime Parse::RFC822TimeToQDateTime ( const QString &  parent)
static

Definition at line 1022 of file rssparse.cpp.

Referenced by ParseItem().

◆ GetAllCategories()

QStringList Parse::GetAllCategories ( const QDomElement &  ) const

◆ GetMediaRSS()

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

Definition at line 1130 of file rssparse.cpp.

Referenced by ParseItem().

◆ GetEnclosures()

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

Definition at line 1109 of file rssparse.cpp.

Referenced by ParseItem().

◆ 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.

Referenced by GetMediaRSS().

Member Data Documentation

◆ m_timezoneOffsets

QMap< QString, int > Parse::m_timezoneOffsets
staticprivate
Initial value:
{
{ "EDT" , -4 },
{ "EST" , -5 }
}

Definition at line 213 of file rssparse.h.

Referenced by RFC822TimeToQDateTime().

◆ kDC

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

Definition at line 216 of file rssparse.h.

Referenced by GetAuthor(), and GetDCDateTime().

◆ kWFW

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

Definition at line 217 of file rssparse.h.

Referenced by GetCommentsRSS().

◆ kAtom

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

Definition at line 218 of file rssparse.h.

◆ kRDF

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

Definition at line 219 of file rssparse.h.

◆ kSlash

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

Definition at line 220 of file rssparse.h.

◆ kEnc

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

Definition at line 221 of file rssparse.h.

◆ kITunes

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

Definition at line 222 of file rssparse.h.

Referenced by GetAuthor(), and ParseItem().

◆ kGeoRSSSimple

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

Definition at line 223 of file rssparse.h.

◆ kGeoRSSW3

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

Definition at line 224 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 226 of file rssparse.h.

Referenced by ParseItem().


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