MythTV
master
|
#include <mythbackend/recordingextender.h>
Public Member Functions | |
ActiveGame (int recordedid, QString title) | |
ActiveGame (int recordedid, QString title, SportInfo info) | |
int | getRecordedId () const |
QString | getTitle () const |
SportInfo | getInfo () const |
QString | getTeam1 () const |
QString | getTeam2 () const |
QString | getTeam1Norm () const |
QString | getTeam2Norm () const |
QString | getAbbrev1 () const |
QString | getAbbrev2 () const |
QUrl | getInfoUrl () const |
QUrl | getGameUrl () const |
QDateTime | getStartTime () const |
QString | getStartTimeAsString () const |
void | setInfo (const SportInfo &info) |
void | setTeams (QString team1, QString team2) |
void | setTeamsNorm (QString team1, QString team2) |
void | setAbbrev1 (const QString &abbrev) |
void | setAbbrev2 (const QString &abbrev) |
void | setAbbrevs (QStringList abbrevs) |
void | setInfoUrl (QUrl url) |
Set the game scheduling information URL. More... | |
void | setGameUrl (QUrl url) |
Set the game status information URL. More... | |
void | setStartTime (const QDateTime &time) |
bool | isValid () const |
bool | teamsMatch (const QStringList &names, const QStringList &abbrevs) const |
Do the supplied team names/abbrevs match this game. More... | |
Private Attributes | |
int | m_recordedid {0} |
QString | m_title |
SportInfo | m_info |
QString | m_team1 |
QString | m_team2 |
QString | m_team1Normalized |
QString | m_team2Normalized |
QString | m_abbrev1 |
QString | m_abbrev2 |
QUrl | m_infoUrl |
QUrl | m_gameUrl |
QDateTime | m_startTime |
Definition at line 49 of file recordingextender.h.
|
inline |
Definition at line 52 of file recordingextender.h.
|
inline |
Definition at line 54 of file recordingextender.h.
|
inline |
Definition at line 57 of file recordingextender.h.
Referenced by RecordingExtender::processActiveRecordings().
|
inline |
Definition at line 58 of file recordingextender.h.
Referenced by RecExtEspnDataSource::loadPage(), and RecExtMlbDataSource::loadPage().
|
inline |
Definition at line 59 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), RecExtEspnDataSource::makeGameUrl(), and RecExtMlbDataPage::parseGameObject().
|
inline |
Definition at line 60 of file recordingextender.h.
Referenced by RecordingExtender::extendRecording(), RecExtEspnDataPage::findGameInfo(), RecExtMlbDataPage::findGameInfo(), RecExtEspnDataPage::findGameScore(), RecExtMlbDataPage::findGameScore(), RecExtEspnDataSource::findInfoUrl(), RecordingExtender::finishRecording(), RecordingExtender::processActiveRecordings(), and RecordingExtender::unchangedRecording().
|
inline |
Definition at line 61 of file recordingextender.h.
Referenced by RecordingExtender::extendRecording(), RecExtEspnDataPage::findGameInfo(), RecExtMlbDataPage::findGameInfo(), RecExtEspnDataPage::findGameScore(), RecExtMlbDataPage::findGameScore(), RecExtEspnDataSource::findInfoUrl(), RecordingExtender::finishRecording(), RecordingExtender::processActiveRecordings(), and RecordingExtender::unchangedRecording().
|
inline |
Definition at line 62 of file recordingextender.h.
|
inline |
Definition at line 63 of file recordingextender.h.
|
inline |
Definition at line 64 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), RecExtEspnDataPage::findGameScore(), and RecExtMlbDataPage::findGameScore().
|
inline |
Definition at line 65 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), RecExtEspnDataPage::findGameScore(), and RecExtMlbDataPage::findGameScore().
|
inline |
Definition at line 66 of file recordingextender.h.
Referenced by RecExtEspnDataSource::findInfoUrl(), RecExtMlbDataSource::findInfoUrl(), and RecExtMlbDataSource::makeGameUrl().
|
inline |
Definition at line 67 of file recordingextender.h.
Referenced by RecExtMlbDataSource::findInfoUrl(), RecordingExtender::processActiveRecordings(), and RecordingExtender::processNewRecordings().
|
inline |
Definition at line 68 of file recordingextender.h.
Referenced by RecExtMlbDataPage::findGameInfo().
|
inline |
Definition at line 69 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), RecExtMlbDataPage::findGameInfo(), and RecExtEspnDataSource::findInfoUrl().
|
inline |
Definition at line 72 of file recordingextender.h.
Referenced by RecordingExtender::processNewRecordings().
|
inline |
Definition at line 73 of file recordingextender.h.
Referenced by RecordingExtender::processNewRecordings().
|
inline |
Definition at line 75 of file recordingextender.h.
Referenced by RecordingExtender::processNewRecordings().
|
inline |
Definition at line 77 of file recordingextender.h.
|
inline |
Definition at line 78 of file recordingextender.h.
|
inline |
Definition at line 79 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), and RecExtMlbDataPage::parseGameObject().
void ActiveGame::setInfoUrl | ( | QUrl | url | ) |
Set the game scheduling information URL.
The schedule pages contain the team names, starting time, and game ID (which can be use to create the game status link.)
[in] | names | The new URL. |
Definition at line 73 of file recordingextender.cpp.
Referenced by RecExtEspnDataSource::findInfoUrl(), and RecExtMlbDataSource::findInfoUrl().
void ActiveGame::setGameUrl | ( | QUrl | url | ) |
Set the game status information URL.
The game status page provides the current games state/statistics, which can be used to tell when the game has finished.
[in] | names | The new URL. |
Definition at line 85 of file recordingextender.cpp.
Referenced by RecExtEspnDataPage::findGameInfo(), and RecExtMlbDataPage::parseGameObject().
|
inline |
Definition at line 83 of file recordingextender.h.
Referenced by RecExtEspnDataPage::findGameInfo(), and RecExtMlbDataPage::parseGameObject().
|
inline |
Definition at line 85 of file recordingextender.h.
bool ActiveGame::teamsMatch | ( | const QStringList & | names, |
const QStringList & | abbrevs | ||
) | const |
Do the supplied team names/abbrevs match this game.
First try an exact match of names, and then look for whether the class variable names contain the argument names or vice versa. (I.E. TV listing says 'Chorrera' but ESPN has 'Independiente de la Chorrera'.) Lastly compare the abbreviations.
[in] | names | The names of the two teams. |
[in] | abbrevs | The abbreviations of the two teams. |
Definition at line 101 of file recordingextender.cpp.
Referenced by RecExtEspnDataPage::findGameInfo(), and RecExtMlbDataPage::parseGameObject().
|
private |
Definition at line 94 of file recordingextender.h.
Referenced by getRecordedId().
|
private |
Definition at line 95 of file recordingextender.h.
Referenced by getTitle().
|
private |
Definition at line 96 of file recordingextender.h.
|
private |
Definition at line 98 of file recordingextender.h.
Referenced by getTeam1(), isValid(), setTeams(), and teamsMatch().
|
private |
Definition at line 99 of file recordingextender.h.
Referenced by getTeam2(), isValid(), setTeams(), and teamsMatch().
|
private |
Definition at line 100 of file recordingextender.h.
Referenced by getTeam1Norm(), setTeamsNorm(), and teamsMatch().
|
private |
Definition at line 101 of file recordingextender.h.
Referenced by getTeam2Norm(), setTeamsNorm(), and teamsMatch().
|
private |
Definition at line 102 of file recordingextender.h.
Referenced by getAbbrev1(), setAbbrev1(), and setAbbrevs().
|
private |
Definition at line 103 of file recordingextender.h.
Referenced by getAbbrev2(), setAbbrev2(), and setAbbrevs().
|
private |
Definition at line 104 of file recordingextender.h.
Referenced by getInfoUrl(), isValid(), and setInfoUrl().
|
private |
Definition at line 105 of file recordingextender.h.
Referenced by getGameUrl(), and setGameUrl().
|
private |
Definition at line 106 of file recordingextender.h.
Referenced by getStartTime(), getStartTimeAsString(), isValid(), and setStartTime().