MythTV
master
|
#include <cstdint>
#include <vector>
#include <QStringList>
#include <QDateTime>
#include "autodeletedeque.h"
#include "recordingtypes.h"
#include "programtypes.h"
#include "mythdbcon.h"
#include "mythexp.h"
#include "mythdate.h"
#include "mythtypes.h"
#include "enums/recStatus.h"
Go to the source code of this file.
Classes | |
class | ProgramInfo |
Holds information on recordings and videos. More... | |
struct | ProgramInfo::MarkupEntry |
class | PMapDBReplacement |
Macros | |
#define | NUMPROGRAMLINES 52 |
Typedefs | |
typedef AutoDeleteDeque< ProgramInfo * > | ProgramList |
Functions | |
MPUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &where, const QString &groupBy, const QString &orderBy, const MSqlBindings &bindings, const ProgramList &schedList) |
MPUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const ProgramList &schedList) |
MPUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const ProgramList &schedList, const uint &start, const uint &limit, uint &count) |
MPUBLIC ProgramInfo * | LoadProgramFromProgram (const uint chanid, const QDateTime &starttime) |
MPUBLIC bool | LoadFromOldRecorded (ProgramList &destination, const QString &sql, const MSqlBindings &bindings) |
MPUBLIC bool | LoadFromOldRecorded (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const uint &start, const uint &limit, uint &count) |
MPUBLIC bool | LoadFromRecorded (ProgramList &destination, bool possiblyInProgressRecordingsOnly, const QMap< QString, uint32_t > &inUseMap, const QMap< QString, bool > &isJobRunning, const QMap< QString, ProgramInfo * > &recMap, int sort=0, const QString &sortBy="") |
template<typename TYPE > | |
bool | LoadFromScheduler (AutoDeleteDeque< TYPE * > &destination, bool &hasConflicts, QString altTable="", int recordid=-1) |
template<typename T > | |
bool | LoadFromScheduler (AutoDeleteDeque< T > &destination) |
MPUBLIC bool | GetNextRecordingList (QDateTime &nextRecordingStart, bool *hasConflicts=nullptr, std::vector< ProgramInfo > *list=nullptr) |
MPUBLIC QString | format_season_and_episode (int seasEp, int digits=-1) |
MPUBLIC QString | myth_category_type_to_string (ProgramInfo::CategoryType category_type) |
MPUBLIC ProgramInfo::CategoryType | string_to_myth_category_type (const QString &type) |
#define NUMPROGRAMLINES 52 |
Definition at line 27 of file programinfo.h.
typedef AutoDeleteDeque<ProgramInfo*> ProgramList |
Definition at line 29 of file programinfo.h.
MPUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | where, | ||
const QString & | groupBy, | ||
const QString & | orderBy, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList | ||
) |
Definition at line 5701 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), TVBrowseHelper::GetNextProgramDB(), Guide::GetProgramGuide(), Guide::GetProgramList(), GuideGrid::GetProgramList(), GuideGrid::getProgramListFromProgram(), LoadFromProgram(), LoadProgramFromProgram(), RecordingInfo::RecordingInfo(), and ProgFinder::selectShowData().
MPUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList | ||
) |
Definition at line 5723 of file programinfo.cpp.
MPUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList, | ||
const uint & | start, | ||
const uint & | limit, | ||
uint & | count | ||
) |
Definition at line 5772 of file programinfo.cpp.
MPUBLIC ProgramInfo* LoadProgramFromProgram | ( | const uint | chanid, |
const QDateTime & | starttime | ||
) |
Definition at line 5849 of file programinfo.cpp.
Referenced by Dvr::AddDontRecordSchedule(), and Guide::GetProgramDetails().
MPUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings | ||
) |
Definition at line 5885 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), Dvr::GetOldRecordedList(), LoadFromOldRecorded(), PrevRecordedList::LoadShowsByDate(), and PrevRecordedList::LoadShowsByTitle().
MPUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const uint & | start, | ||
const uint & | limit, | ||
uint & | count | ||
) |
Definition at line 5892 of file programinfo.cpp.
MPUBLIC bool LoadFromRecorded | ( | ProgramList & | destination, |
bool | possiblyInProgressRecordingsOnly, | ||
const QMap< QString, uint32_t > & | inUseMap, | ||
const QMap< QString, bool > & | isJobRunning, | ||
const QMap< QString, ProgramInfo * > & | recMap, | ||
int | sort = 0 , |
||
const QString & | sortBy = "" |
||
) |
Definition at line 6049 of file programinfo.cpp.
Referenced by LookerUpper::CopyRuleInetrefsToRecordings(), Dvr::GetRecordedList(), LookerUpper::HandleAllArtwork(), LookerUpper::HandleAllRecordings(), and MainServer::HandleQueryRecordings().
bool LoadFromScheduler | ( | AutoDeleteDeque< TYPE * > & | destination, |
bool & | hasConflicts, | ||
QString | altTable = "" , |
||
int | recordid = -1 |
||
) |
Definition at line 876 of file programinfo.h.
Referenced by ProgramRecPriority::countMatches(), GuideGrid::customEvent(), StatusBox::doScheduleStatus(), ProgLister::FillItemList(), ViewScheduleDiff::fillList(), Scheduler::FillRecordListFromMaster(), GuideGrid::generateListings(), MainServer::HandleStopRecording(), ViewScheduled::Load(), GuideGrid::Load(), LoadFromScheduler(), ViewScheduled::LoadList(), ProgFinder::selectShowData(), IdleScreen::UpdateScheduledList(), and WasAutomaticStart().
bool LoadFromScheduler | ( | AutoDeleteDeque< T > & | destination | ) |
Definition at line 915 of file programinfo.h.
MPUBLIC bool GetNextRecordingList | ( | QDateTime & | nextRecordingStart, |
bool * | hasConflicts = nullptr , |
||
std::vector< ProgramInfo > * | list = nullptr |
||
) |
Definition at line 6283 of file programinfo.cpp.
Referenced by setScheduledWakeupTime(), and WelcomeDialog::updateScheduledList().
MPUBLIC QString format_season_and_episode | ( | int | seasEp, |
int | digits = -1 |
||
) |
Definition at line 6335 of file programinfo.cpp.
Referenced by PlaybackBox::saveRecMetadata(), VideoMetadata::toMap(), ResultItem::toMap(), ProgramInfo::ToMap(), and RecordingSelector::updateRecordingList().
MPUBLIC QString myth_category_type_to_string | ( | ProgramInfo::CategoryType | category_type | ) |
Definition at line 126 of file programinfo.cpp.
Referenced by ProgramInfo::GetCategoryTypeString(), DBEvent::InsertDB(), ProgInfo::InsertDB(), ProgramData::IsUnchanged(), XMLTVParser::parseProgram(), ProgramInfo::ToMap(), ContentDescriptor::toString(), and DBEvent::UpdateDB().
MPUBLIC ProgramInfo::CategoryType string_to_myth_category_type | ( | const QString & | type | ) |
Definition at line 139 of file programinfo.cpp.
Referenced by Scheduler::AddNewRecords(), DBEvent::GetOverlappingPrograms(), LoadFromProgram(), LoadFromRecorded(), ProgramInfo::LoadProgramFromRecorded(), XMLTVParser::parseProgram(), and ProgramInfo::QueryCategoryType().