MythTV  master
Classes | Macros | Typedefs | Functions
programinfo.h File Reference
#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"
Include dependency graph for programinfo.h:
This graph shows which files directly or indirectly include this file:

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, const uint &start, const uint &limit, uint &count)
 
MPUBLIC ProgramInfoLoadProgramFromProgram (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)
 

Macro Definition Documentation

◆ NUMPROGRAMLINES

#define NUMPROGRAMLINES   52

Definition at line 27 of file programinfo.h.

Typedef Documentation

◆ ProgramList

Definition at line 30 of file programinfo.h.

Function Documentation

◆ LoadFromProgram() [1/3]

MPUBLIC bool LoadFromProgram ( ProgramList destination,
const QString &  where,
const QString &  groupBy,
const QString &  orderBy,
const MSqlBindings bindings,
const ProgramList schedList 
)

◆ LoadFromProgram() [2/3]

MPUBLIC bool LoadFromProgram ( ProgramList destination,
const QString &  sql,
const MSqlBindings bindings,
const ProgramList schedList 
)

Definition at line 5467 of file programinfo.cpp.

◆ LoadFromProgram() [3/3]

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 5516 of file programinfo.cpp.

◆ LoadProgramFromProgram()

MPUBLIC ProgramInfo* LoadProgramFromProgram ( const uint  chanid,
const QDateTime &  starttime 
)

Definition at line 5593 of file programinfo.cpp.

Referenced by Dvr::AddDontRecordSchedule(), and Guide::GetProgramDetails().

◆ LoadFromOldRecorded() [1/2]

MPUBLIC bool LoadFromOldRecorded ( ProgramList destination,
const QString &  sql,
const MSqlBindings bindings 
)

◆ LoadFromOldRecorded() [2/2]

MPUBLIC bool LoadFromOldRecorded ( ProgramList destination,
const QString &  sql,
const MSqlBindings bindings,
const uint start,
const uint limit,
uint count 
)

Definition at line 5636 of file programinfo.cpp.

◆ LoadFromRecorded()

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 = "" 
)

◆ LoadFromScheduler() [1/2]

template<typename TYPE >
bool LoadFromScheduler ( AutoDeleteDeque< TYPE * > &  destination,
bool hasConflicts,
QString  altTable = "",
int  recordid = -1 
)

◆ LoadFromScheduler() [2/2]

template<typename T >
bool LoadFromScheduler ( AutoDeleteDeque< T > &  destination)

Definition at line 915 of file programinfo.h.

◆ GetNextRecordingList()

MPUBLIC bool GetNextRecordingList ( QDateTime &  nextRecordingStart,
bool hasConflicts = nullptr,
std::vector< ProgramInfo > *  list = nullptr 
)

Definition at line 6027 of file programinfo.cpp.

Referenced by setScheduledWakeupTime(), and WelcomeDialog::updateScheduledList().

◆ format_season_and_episode()

MPUBLIC QString format_season_and_episode ( int  seasEp,
int  digits = -1 
)

◆ myth_category_type_to_string()

MPUBLIC QString myth_category_type_to_string ( ProgramInfo::CategoryType  category_type)

◆ string_to_myth_category_type()

MPUBLIC ProgramInfo::CategoryType string_to_myth_category_type ( const QString &  type)