MythTV
master
|
#include <cstdint>
#include <utility>
#include <vector>
#include <QStringList>
#include <QDateTime>
#include "libmyth/mythexp.h"
#include "libmyth/programtypes.h"
#include "libmyth/recordingtypes.h"
#include "libmythbase/autodeletedeque.h"
#include "libmythbase/mythdate.h"
#include "libmythbase/mythdbcon.h"
#include "libmythbase/mythtypes.h"
#include "libmythservicecontracts/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 | |
using | ProgramList = AutoDeleteDeque< ProgramInfo * > |
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, uint start, uint limit, uint &count) |
MPUBLIC ProgramInfo * | LoadProgramFromProgram (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, uint start, 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="", 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) |
MPUBLIC bool | GetNextRecordingList (QDateTime &nextRecordingStart, bool *hasConflicts=nullptr, std::vector< ProgramInfo > *list=nullptr) |
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 28 of file programinfo.h.
using ProgramList = AutoDeleteDeque<ProgramInfo*> |
Definition at line 31 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 5640 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().
MPUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList | ||
) |
Definition at line 5662 of file programinfo.cpp.
MPUBLIC bool LoadFromProgram | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
const ProgramList & | schedList, | ||
uint | start, | ||
uint | limit, | ||
uint & | count | ||
) |
Definition at line 5711 of file programinfo.cpp.
MPUBLIC ProgramInfo* LoadProgramFromProgram | ( | uint | chanid, |
const QDateTime & | starttime | ||
) |
Definition at line 5792 of file programinfo.cpp.
Referenced by Dvr::AddDontRecordSchedule(), V2Dvr::AddDontRecordSchedule(), Guide::GetProgramDetails(), and V2Guide::GetProgramDetails().
MPUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings | ||
) |
Definition at line 5828 of file programinfo.cpp.
Referenced by ProgLister::FillItemList(), Dvr::GetOldRecordedList(), V2Dvr::GetOldRecordedList(), LoadFromOldRecorded(), PrevRecordedList::LoadShowsByDate(), and PrevRecordedList::LoadShowsByTitle().
MPUBLIC bool LoadFromOldRecorded | ( | ProgramList & | destination, |
const QString & | sql, | ||
const MSqlBindings & | bindings, | ||
uint | start, | ||
uint | limit, | ||
uint & | count | ||
) |
Definition at line 5835 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 = "" , |
||
bool | ignoreLiveTV = false , |
||
bool | ignoreDeleted = false |
||
) |
Definition at line 5994 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 913 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 952 of file programinfo.h.
MPUBLIC bool GetNextRecordingList | ( | QDateTime & | nextRecordingStart, |
bool * | hasConflicts = nullptr , |
||
std::vector< ProgramInfo > * | list = nullptr |
||
) |
Definition at line 6247 of file programinfo.cpp.
Referenced by setScheduledWakeupTime(), and WelcomeDialog::updateScheduledList().
MPUBLIC QString myth_category_type_to_string | ( | ProgramInfo::CategoryType | category_type | ) |
Definition at line 127 of file programinfo.cpp.
Referenced by ProgramInfo::GetCategoryTypeString(), DBEvent::InsertDB(), ProgInfo::InsertDB(), ProgramData::IsUnchanged(), XMLTVParser::parseFile(), ProgramInfo::ToMap(), ContentDescriptor::toString(), and DBEvent::UpdateDB().
MPUBLIC ProgramInfo::CategoryType string_to_myth_category_type | ( | const QString & | type | ) |
Definition at line 136 of file programinfo.cpp.
Referenced by Scheduler::AddNewRecords(), Dvr::AddRecordedProgram(), V2Dvr::AddRecordedProgram(), DBEvent::GetOverlappingPrograms(), LoadFromProgram(), LoadFromRecorded(), ProgramInfo::LoadProgramFromRecorded(), XMLTVParser::parseFile(), and ProgramInfo::QueryCategoryType().