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 | 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) |
MBASE_PUBLIC bool | LoadFromProgram (ProgramList &destination, const QString &sql, const MSqlBindings &bindings, const ProgramList &schedList, uint start, uint limit, uint &count) |
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 LoadFromProgram | ( | ProgramList & | destination, |
const QString & | where, | ||
const QString & | groupBy, | ||
const QString & | orderBy, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList | ||
) |
Definition at line 5642 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), TVBrowseHelper::GetNextProgramDB(), Guide::GetProgramGuide(), V2Guide::GetProgramGuide(), Guide::GetProgramList(), V2Guide::GetProgramList(), GuideGrid::GetProgramList(), GuideGrid::getProgramListFromProgram(), LoadFromProgram(), LoadProgramFromProgram(), RecordingInfo::RecordingInfo(), and ProgFinder::selectShowData().
MBASE_PUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList | ||
) |
Definition at line 5664 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 | ||
) |
Definition at line 5713 of file programinfo.cpp.
MBASE_PUBLIC ProgramInfo* LoadProgramFromProgram | ( | uint | chanid, |
const QDateTime & | starttime | ||
) |
Definition at line 5794 of file programinfo.cpp.
Referenced by Dvr::AddDontRecordSchedule(), V2Dvr::AddDontRecordSchedule(), Guide::GetProgramDetails(), and V2Guide::GetProgramDetails().
MBASE_PUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings | ||
) |
Definition at line 5830 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), Dvr::GetOldRecordedList(), 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 5837 of file programinfo.cpp.
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 5996 of file programinfo.cpp.
Referenced by LookerUpper::CopyRuleInetrefsToRecordings(), Dvr::GetRecordedList(), V2Dvr::GetRecordedList(), LookerUpper::HandleAllArtwork(), LookerUpper::HandleAllRecordings(), and MainServer::HandleQueryRecordings().
bool LoadFromScheduler | ( | AutoDeleteDeque< TYPE * > & | destination, |
bool & | hasConflicts, | ||
const QString & | altTable = "" , |
||
int | recordid = -1 |
||
) |
Definition at line 912 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 951 of file programinfo.h.
MBASE_PUBLIC bool GetNextRecordingList | ( | QDateTime & | nextRecordingStart, |
bool * | hasConflicts = nullptr , |
||
std::vector< ProgramInfo > * | list = nullptr |
||
) |
Definition at line 6249 of file programinfo.cpp.
Referenced by setScheduledWakeupTime(), and WelcomeDialog::updateScheduledList().
MBASE_PUBLIC QString myth_category_type_to_string | ( | ProgramInfo::CategoryType | category_type | ) |
Definition at line 128 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 137 of file programinfo.cpp.
Referenced by Scheduler::AddNewRecords(), Dvr::AddRecordedProgram(), 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().