MythTV  master
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
RecExtDataSource Class Referenceabstract

#include <mythbackend/recordingextender.h>

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

Public Member Functions

RecordingExtendergetExtender ()
 
virtual RecExtDataPagenewPage (const QJsonDocument &doc)=0
 
virtual QUrl makeInfoUrl (const SportInfo &info, const QDateTime &dt)=0
 
virtual QUrl makeGameUrl (const ActiveGame &game, const QString &str)=0
 
virtual QUrl findInfoUrl (ActiveGame &game, SportInfo &info)=0
 
virtual RecExtDataPageloadPage (const ActiveGame &game, const QUrl &_url)=0
 

Static Public Member Functions

static void clearCache ()
 Clear the downloaded document cache. More...
 

Protected Member Functions

 RecExtDataSource (QObject *parent)
 

Protected Attributes

QUrl m_url
 

Static Protected Attributes

static QHash< QString, QJsonDocument > s_downloadedJson {}
 A cache of downloaded documents. More...
 

Detailed Description

Definition at line 259 of file recordingextender.h.

Constructor & Destructor Documentation

◆ RecExtDataSource()

RecExtDataSource::RecExtDataSource ( QObject *  parent)
inlineexplicitprotected

Definition at line 274 of file recordingextender.h.

Member Function Documentation

◆ getExtender()

RecordingExtender* RecExtDataSource::getExtender ( )
inline

Definition at line 264 of file recordingextender.h.

◆ newPage()

virtual RecExtDataPage* RecExtDataSource::newPage ( const QJsonDocument &  doc)
pure virtual

◆ clearCache()

void RecExtDataSource::clearCache ( )
static

Clear the downloaded document cache.

Definition at line 338 of file recordingextender.cpp.

Referenced by RecordingExtender::clearDownloadedInfo().

◆ makeInfoUrl()

virtual QUrl RecExtDataSource::makeInfoUrl ( const SportInfo info,
const QDateTime &  dt 
)
pure virtual

◆ makeGameUrl()

virtual QUrl RecExtDataSource::makeGameUrl ( const ActiveGame game,
const QString &  str 
)
pure virtual

◆ findInfoUrl()

virtual QUrl RecExtDataSource::findInfoUrl ( ActiveGame game,
SportInfo info 
)
pure virtual

◆ loadPage()

virtual RecExtDataPage* RecExtDataSource::loadPage ( const ActiveGame game,
const QUrl &  _url 
)
pure virtual

Member Data Documentation

◆ m_url

QUrl RecExtDataSource::m_url
protected

Definition at line 274 of file recordingextender.h.

◆ s_downloadedJson

QHash< QString, QJsonDocument > RecExtDataSource::s_downloadedJson {}
staticprotected

A cache of downloaded documents.

Definition at line 277 of file recordingextender.h.

Referenced by clearCache(), RecExtEspnDataSource::loadPage(), and RecExtMlbDataSource::loadPage().


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