|
MythTV master
|
#include <cstdint>#include <utility>#include <vector>#include <QStringList>#include <QDateTime>#include "libmythbase/autodeletedeque.h"#include "libmythbase/mythbaseexp.h"#include "libmythbase/mythdate.h"#include "libmythbase/mythdbcon.h"#include "libmythbase/mythtypes.h"#include "libmythbase/programtypes.h"#include "libmythbase/recordingstatus.h"#include "libmythbase/recordingtypes.h"Go to the source code of this file.
Classes | |
| class | ProgramInfo |
| Holds information on recordings and videos. More... | |
| struct | ProgramInfo::MarkupEntry |
| class | ProgGroupBy |
| class | PMapDBReplacement |
Typedefs | |
| using | ProgramList = AutoDeleteDeque< ProgramInfo * > |
Functions | |
| MBASE_PUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &where, const QString &groupBy, const QString &orderBy, const MSqlBindings &bindings, const ProgramList &schedList) |
| MBASE_PUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const ProgramList &schedList, ProgGroupBy::Type groupBy=ProgGroupBy::None) |
| MBASE_PUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const ProgramList &schedList, uint start, uint limit, uint &count, ProgGroupBy::Type groupBy=ProgGroupBy::None) |
| MBASE_PUBLIC ProgramInfo * | LoadProgramFromProgram (uint chanid, const QDateTime &starttime) |
| MBASE_PUBLIC bool | LoadFromOldRecorded (ProgramList &destination, const QString &sql, const MSqlBindings &bindings) |
| MBASE_PUBLIC bool | LoadFromOldRecorded (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, uint start, uint limit, uint &count) |
| MBASE_PUBLIC 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="", bool ignoreLiveTV=false, bool ignoreDeleted=false) |
| template<typename TYPE > | |
| bool | LoadFromScheduler (AutoDeleteDeque< TYPE * > &destination, bool &hasConflicts, const QString &altTable="", int recordid=-1) |
| template<typename T > | |
| bool | LoadFromScheduler (AutoDeleteDeque< T > &destination) |
| MBASE_PUBLIC bool | GetNextRecordingList (QDateTime &nextRecordingStart, bool *hasConflicts=nullptr, std::vector< ProgramInfo > *list=nullptr) |
| MBASE_PUBLIC QString | myth_category_type_to_string (ProgramInfo::CategoryType category_type) |
| MBASE_PUBLIC ProgramInfo::CategoryType | string_to_myth_category_type (const QString &type) |
Variables | |
| static constexpr int8_t | NUMPROGRAMLINES { 52 } |
| using ProgramList = AutoDeleteDeque<ProgramInfo*> |
Definition at line 31 of file programinfo.h.
| MBASE_PUBLIC bool GetNextRecordingList | ( | QDateTime & | nextRecordingStart, |
| bool * | hasConflicts = nullptr, |
||
| std::vector< ProgramInfo > * | list = nullptr |
||
| ) |
Definition at line 6428 of file programinfo.cpp.
Referenced by setScheduledWakeupTime(), and WelcomeDialog::updateScheduledList().
| MBASE_PUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
| const QString & | sql, | ||
| const MSqlBindings & | bindings | ||
| ) |
Definition at line 5965 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), V2Dvr::GetOldRecordedList(), LoadFromOldRecorded(), PrevRecordedList::LoadShowsByDate(), and PrevRecordedList::LoadShowsByTitle().
| MBASE_PUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
| const QString & | sql, | ||
| const MSqlBindings & | bindings, | ||
| uint | start, | ||
| uint | limit, | ||
| uint & | count | ||
| ) |
Definition at line 5972 of file programinfo.cpp.
| MBASE_PUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
| const QString & | sql, | ||
| const MSqlBindings & | bindings, | ||
| const ProgramList & | schedList, | ||
| ProgGroupBy::Type | groupBy = ProgGroupBy::None |
||
| ) |
Definition at line 5807 of file programinfo.cpp.
| MBASE_PUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
| const QString & | sql, | ||
| const MSqlBindings & | bindings, | ||
| const ProgramList & | schedList, | ||
| uint | start, | ||
| uint | limit, | ||
| uint & | count, | ||
| ProgGroupBy::Type | groupBy = ProgGroupBy::None |
||
| ) |
Definition at line 5847 of file programinfo.cpp.
| MBASE_PUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
| const QString & | where, | ||
| const QString & | groupBy, | ||
| const QString & | orderBy, | ||
| const MSqlBindings & | bindings, | ||
| const ProgramList & | schedList | ||
| ) |
Definition at line 5784 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), TVBrowseHelper::GetNextProgramDB(), V2Guide::GetProgramGuide(), V2Guide::GetProgramList(), GuideGrid::GetProgramList(), GuideGrid::getProgramListFromProgram(), LoadFromProgram(), LoadProgramFromProgram(), RecordingInfo::RecordingInfo(), and ProgFinder::selectShowData().
| MBASE_PUBLIC 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 = "", |
||
| bool | ignoreLiveTV = false, |
||
| bool | ignoreDeleted = false |
||
| ) |
Definition at line 6130 of file programinfo.cpp.
Referenced by LookerUpper::CopyRuleInetrefsToRecordings(), V2Dvr::GetRecordedList(), LookerUpper::HandleAllArtwork(), LookerUpper::HandleAllRecordings(), and MainServer::HandleQueryRecordings().
| bool LoadFromScheduler | ( | AutoDeleteDeque< T > & | destination | ) |
Definition at line 976 of file programinfo.h.
| bool LoadFromScheduler | ( | AutoDeleteDeque< TYPE * > & | destination, |
| bool & | hasConflicts, | ||
| const QString & | altTable = "", |
||
| int | recordid = -1 |
||
| ) |
Definition at line 937 of file programinfo.h.
Referenced by ProgramRecPriority::countMatches(), GuideGrid::customEvent(), StatusBox::doScheduleStatus(), ProgLister::FillItemList(), ViewScheduleDiff::fillList(), Scheduler::FillRecordListFromMaster(), GuideGrid::generateListings(), GetNextRecordingList(), MainServer::HandleStopRecording(), GuideGrid::Load(), ViewScheduled::Load(), LoadFromScheduler(), ViewScheduled::LoadList(), LoadProgramFromProgram(), ProgFinder::selectShowData(), IdleScreen::UpdateScheduledList(), and WasAutomaticStart().
| MBASE_PUBLIC ProgramInfo * LoadProgramFromProgram | ( | uint | chanid, |
| const QDateTime & | starttime | ||
| ) |
Definition at line 5929 of file programinfo.cpp.
Referenced by V2Dvr::AddDontRecordSchedule(), V2Dvr::AllowReRecord(), and V2Guide::GetProgramDetails().
| MBASE_PUBLIC QString myth_category_type_to_string | ( | ProgramInfo::CategoryType | category_type | ) |
Definition at line 129 of file programinfo.cpp.
Referenced by ProgramInfo::GetCategoryTypeString(), DBEvent::InsertDB(), ProgInfo::InsertDB(), ProgramData::IsUnchanged(), XMLTVParser::parseFile(), ProgramInfo::ToMap(), ContentDescriptor::toString(), and DBEvent::UpdateDB().
| MBASE_PUBLIC ProgramInfo::CategoryType string_to_myth_category_type | ( | const QString & | type | ) |
Definition at line 138 of file programinfo.cpp.
Referenced by Scheduler::AddNewRecords(), V2Dvr::AddRecordedProgram(), DBEvent::GetOverlappingPrograms(), LoadFromProgram(), LoadFromRecorded(), ProgramInfo::LoadProgramFromRecorded(), XMLTVParser::parseFile(), and ProgramInfo::QueryCategoryType().
|
staticconstexpr |
Definition at line 28 of file programinfo.h.
Referenced by PBHEventHandler::event(), MainServer::HandlePixmapGetIfModified(), MainServer::HandleRemoteEncoder(), MainServer::HandleUndeleteRecording(), and RemoteGetRecordingList().