MythTV  master
Classes | Public Types | Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
RSSSite Class Reference

#include <mythrssmanager.h>

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

Classes

class  List
 

Public Types

typedef QList< RSSSite * > rssList
 

Signals

void finished (RSSSite *item)
 

Public Member Functions

 RSSSite (const QString &title, const QString &sortTitle, const QString &image, const ArticleType &type, const QString &description, const QString &url, const QString &author, const bool &download, const QDateTime &updated)
 
 ~RSSSite ()=default
 
const QString & GetTitle () const
 
const QString & GetSortTitle () const
 
const QString & GetImage () const
 
const ArticleTypeGetType () const
 
const QString & GetDescription () const
 
const QString & GetURL () const
 
const QString & GetAuthor () const
 
const boolGetDownload () const
 
const QDateTime & GetUpdated () const
 
unsigned int timeSinceLastUpdate (void) const
 
void insertRSSArticle (ResultItem *item)
 
void clearRSSArticles (void)
 
ResultItem::resultList GetVideoList (void) const
 
void retrieve (void)
 
void stop (void)
 
void process (void)
 

Private Slots

void slotCheckRedirect (QNetworkReply *reply)
 

Private Member Functions

QUrl redirectUrl (const QUrl &possibleRedirectUrl, const QUrl &oldRedirectUrl) const
 

Private Attributes

QString m_title
 
QString m_sortTitle
 
QString m_image
 
ArticleType m_type
 
QString m_description
 
QString m_url
 
QUrl m_urlReq
 
QString m_author
 
bool m_download
 
QDateTime m_updated
 
QMutex m_lock {QMutex::Recursive}
 
QByteArray m_data
 
QString m_imageURL
 
bool m_podcast {false}
 
ResultItem::resultList m_articleList
 
QNetworkReply * m_reply {nullptr}
 
QNetworkAccessManager * m_manager {nullptr}
 

Detailed Description

Definition at line 19 of file mythrssmanager.h.

Member Typedef Documentation

◆ rssList

typedef QList<RSSSite *> RSSSite::rssList

Definition at line 51 of file mythrssmanager.h.

Constructor & Destructor Documentation

◆ RSSSite()

RSSSite::RSSSite ( const QString &  title,
const QString &  sortTitle,
const QString &  image,
const ArticleType type,
const QString &  description,
const QString &  url,
const QString &  author,
const bool download,
const QDateTime &  updated 
)

Definition at line 110 of file mythrssmanager.cpp.

◆ ~RSSSite()

RSSSite::~RSSSite ( )
default

Member Function Documentation

◆ GetTitle()

const QString& RSSSite::GetTitle ( ) const
inline

◆ GetSortTitle()

const QString& RSSSite::GetSortTitle ( ) const
inline

Definition at line 54 of file mythrssmanager.h.

Referenced by insertInDB(), and NetTree::UpdateSiteItem().

◆ GetImage()

const QString& RSSSite::GetImage ( ) const
inline

◆ GetType()

const ArticleType& RSSSite::GetType ( ) const
inline

◆ GetDescription()

const QString& RSSSite::GetDescription ( ) const
inline

◆ GetURL()

const QString& RSSSite::GetURL ( ) const
inline

◆ GetAuthor()

const QString& RSSSite::GetAuthor ( ) const
inline

◆ GetDownload()

const bool& RSSSite::GetDownload ( ) const
inline

Definition at line 60 of file mythrssmanager.h.

Referenced by RSSEditPopup::Create(), and insertInDB().

◆ GetUpdated()

const QDateTime& RSSSite::GetUpdated ( ) const
inline

Definition at line 61 of file mythrssmanager.h.

Referenced by insertInDB().

◆ timeSinceLastUpdate()

unsigned int RSSSite::timeSinceLastUpdate ( void  ) const

Definition at line 193 of file mythrssmanager.cpp.

◆ insertRSSArticle()

void RSSSite::insertRSSArticle ( ResultItem item)

Definition at line 128 of file mythrssmanager.cpp.

Referenced by process().

◆ clearRSSArticles()

void RSSSite::clearRSSArticles ( void  )

Definition at line 134 of file mythrssmanager.cpp.

◆ GetVideoList()

ResultItem::resultList RSSSite::GetVideoList ( void  ) const

Definition at line 187 of file mythrssmanager.cpp.

Referenced by RSSManager::processAndInsertRSS().

◆ retrieve()

void RSSSite::retrieve ( void  )

Definition at line 140 of file mythrssmanager.cpp.

◆ stop()

void RSSSite::stop ( void  )

◆ process()

void RSSSite::process ( void  )

Definition at line 202 of file mythrssmanager.cpp.

Referenced by slotCheckRedirect().

◆ redirectUrl()

QUrl RSSSite::redirectUrl ( const QUrl &  possibleRedirectUrl,
const QUrl &  oldRedirectUrl 
) const
private

Definition at line 156 of file mythrssmanager.cpp.

Referenced by slotCheckRedirect().

◆ slotCheckRedirect

void RSSSite::slotCheckRedirect ( QNetworkReply *  reply)
privateslot

Definition at line 165 of file mythrssmanager.cpp.

Referenced by retrieve().

◆ finished

void RSSSite::finished ( RSSSite item)
signal

Referenced by process(), and retrieve().

Member Data Documentation

◆ m_title

QString RSSSite::m_title
private

Definition at line 79 of file mythrssmanager.h.

Referenced by RSSSite().

◆ m_sortTitle

QString RSSSite::m_sortTitle
private

Definition at line 80 of file mythrssmanager.h.

Referenced by RSSSite().

◆ m_image

QString RSSSite::m_image
private

Definition at line 81 of file mythrssmanager.h.

◆ m_type

ArticleType RSSSite::m_type
private

Definition at line 82 of file mythrssmanager.h.

◆ m_description

QString RSSSite::m_description
private

Definition at line 83 of file mythrssmanager.h.

◆ m_url

QString RSSSite::m_url
private

Definition at line 84 of file mythrssmanager.h.

Referenced by retrieve().

◆ m_urlReq

QUrl RSSSite::m_urlReq
private

Definition at line 85 of file mythrssmanager.h.

Referenced by retrieve().

◆ m_author

QString RSSSite::m_author
private

Definition at line 86 of file mythrssmanager.h.

◆ m_download

bool RSSSite::m_download
private

Definition at line 87 of file mythrssmanager.h.

◆ m_updated

QDateTime RSSSite::m_updated
private

Definition at line 88 of file mythrssmanager.h.

Referenced by timeSinceLastUpdate().

◆ m_lock

QMutex RSSSite::m_lock {QMutex::Recursive}
mutableprivate

◆ m_data

QByteArray RSSSite::m_data
private

Definition at line 91 of file mythrssmanager.h.

Referenced by process(), retrieve(), and slotCheckRedirect().

◆ m_imageURL

QString RSSSite::m_imageURL
private

Definition at line 92 of file mythrssmanager.h.

◆ m_podcast

bool RSSSite::m_podcast {false}
private

Definition at line 93 of file mythrssmanager.h.

◆ m_articleList

ResultItem::resultList RSSSite::m_articleList
private

Definition at line 95 of file mythrssmanager.h.

Referenced by clearRSSArticles(), GetVideoList(), insertRSSArticle(), process(), and retrieve().

◆ m_reply

QNetworkReply* RSSSite::m_reply {nullptr}
private

Definition at line 97 of file mythrssmanager.h.

Referenced by retrieve(), and slotCheckRedirect().

◆ m_manager

QNetworkAccessManager* RSSSite::m_manager {nullptr}
private

Definition at line 98 of file mythrssmanager.h.

Referenced by retrieve(), and slotCheckRedirect().


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