MythTV  master
Public Member Functions | List of all members
Dvr Class Reference

#include <mythbackend/services/dvr.h>

Inheritance diagram for Dvr:
[legend]
Collaboration diagram for Dvr:
[legend]

Public Member Functions

Q_INVOKABLE Dvr (QObject *=nullptr)
 
DTC::ProgramListGetExpiringList (int StartIndex, int Count) override
 
DTC::ProgramListGetRecordedList (bool Descending, int StartIndex, int Count, const QString &TitleRegEx, const QString &RecGroup, const QString &StorageGroup, const QString &Category, const QString &Sort, bool IgnoreLiveTV, bool IgnoreDeleted) override
 
DTC::ProgramListGetOldRecordedList (bool Descending, int StartIndex, int Count, const QDateTime &StartTime, const QDateTime &EndTime, const QString &Title, const QString &SeriesId, int RecordId, const QString &Sort) override
 
DTC::ProgramGetRecorded (int RecordedId, int ChanId, const QDateTime &recstarttsRaw) override
 
bool AddRecordedCredits (int RecordedId, const QJsonObject &json) override
 
int AddRecordedProgram (const QJsonObject &json) override
 
bool RemoveRecorded (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, bool ForceDelete, bool AllowRerecord) override
 
bool DeleteRecording (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, bool ForceDelete, bool AllowRerecord) override
 
bool UnDeleteRecording (int RecordedId, int ChanId, const QDateTime &recstarttsRaw) override
 
bool StopRecording (int RecordedId) override
 
bool ReactivateRecording (int RecordedId, int ChanId, const QDateTime &recstarttsRaw) override
 
bool RescheduleRecordings (void) override
 
bool AllowReRecord (int RecordedId) override
 
bool UpdateRecordedWatchedStatus (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, bool Watched) override
 
long GetSavedBookmark (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, const QString &OffsetType) override
 
bool SetSavedBookmark (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, const QString &OffsetType, long Offset) override
 
DTC::CutListGetRecordedCutList (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, const QString &OffsetType) override
 
DTC::CutListGetRecordedCommBreak (int RecordedId, int ChanId, const QDateTime &recstarttsRaw, const QString &OffsetType) override
 
DTC::CutListGetRecordedSeek (int RecordedId, const QString &OffsetType) override
 
DTC::MarkupListGetRecordedMarkup (int RecordedId) override
 
bool SetRecordedMarkup (int RecordedId, const QJsonObject &json) override
 
DTC::ProgramListGetConflictList (int StartIndex, int Count, int RecordId) override
 
DTC::ProgramListGetUpcomingList (int StartIndex, int Count, bool ShowAll, int RecordId, int RecStatus) override
 
DTC::EncoderListGetEncoderList () override
 
DTC::InputListGetInputList () override
 
QStringList GetRecGroupList () override
 
QStringList GetProgramCategories (bool OnlyRecorded) override
 
QStringList GetRecStorageGroupList () override
 
QStringList GetPlayGroupList () override
 
DTC::RecRuleFilterListGetRecRuleFilterList () override
 
QStringList GetTitleList (const QString &RecGroup) override
 
DTC::TitleInfoListGetTitleInfoList () override
 
uint AddRecordSchedule (const QString &Title, const QString &Subtitle, const QString &Description, const QString &Category, const QDateTime &recstarttsRaw, const QDateTime &recendtsRaw, const QString &SeriesId, const QString &ProgramId, int ChanId, const QString &Station, int FindDay, QTime FindTime, int ParentId, bool Inactive, uint Season, uint Episode, const QString &Inetref, QString Type, QString SearchType, int RecPriority, uint PreferredInput, int StartOffset, int EndOffset, const QDateTime &lastrectsRaw, QString DupMethod, QString DupIn, bool NewEpisOnly, uint Filter, QString RecProfile, QString RecGroup, QString StorageGroup, QString PlayGroup, bool AutoExpire, int MaxEpisodes, bool MaxNewest, bool AutoCommflag, bool AutoTranscode, bool AutoMetaLookup, bool AutoUserJob1, bool AutoUserJob2, bool AutoUserJob3, bool AutoUserJob4, int Transcoder) override
 
bool UpdateRecordSchedule (uint RecordId, const QString &Title, const QString &Subtitle, const QString &Description, const QString &Category, const QDateTime &dStartTimeRaw, const QDateTime &dEndTimeRaw, const QString &SeriesId, const QString &ProgramId, int ChanId, const QString &Station, int FindDay, QTime FindTime, bool Inactive, uint Season, uint Episode, const QString &Inetref, QString Type, QString SearchType, int RecPriority, uint PreferredInput, int StartOffset, int EndOffset, QString DupMethod, QString DupIn, bool NewEpisOnly, uint Filter, QString RecProfile, QString RecGroup, QString StorageGroup, QString PlayGroup, bool AutoExpire, int MaxEpisodes, bool MaxNewest, bool AutoCommflag, bool AutoTranscode, bool AutoMetaLookup, bool AutoUserJob1, bool AutoUserJob2, bool AutoUserJob3, bool AutoUserJob4, int Transcoder) override
 
bool RemoveRecordSchedule (uint RecordId) override
 
bool AddDontRecordSchedule (int ChanId, const QDateTime &StartTime, bool NeverRecord) override
 
DTC::RecRuleListGetRecordScheduleList (int StartIndex, int Count, const QString &Sort, bool Descending) override
 
DTC::RecRuleGetRecordSchedule (uint RecordId, const QString &Template, int nRecordedId, int ChanId, const QDateTime &dStartTimeRaw, bool MakeOverride) override
 
bool EnableRecordSchedule (uint RecordId) override
 
bool DisableRecordSchedule (uint RecordId) override
 
int RecordedIdForKey (int ChanId, const QDateTime &recstarttsRaw) override
 
int RecordedIdForPathname (const QString &pathname) override
 
QString RecStatusToString (int RecStatus) override
 
QString RecStatusToDescription (int RecStatus, int RecType, const QDateTime &StartTime) override
 
QString RecTypeToString (const QString &RecType) override
 
QString RecTypeToDescription (const QString &RecType) override
 
QString DupMethodToString (const QString &DupMethod) override
 
QString DupMethodToDescription (const QString &DupMethod) override
 
QString DupInToString (const QString &DupIn) override
 
QString DupInToDescription (const QString &DupIn) override
 
int ManageJobQueue (const QString &Action, const QString &JobName, int JobId, int RecordedId, QDateTime jobstarttsRaw, QString RemoteHost, QString JobArgs) override
 
- Public Member Functions inherited from DvrServices
 DvrServices (QObject *parent=nullptr)
 
- Public Member Functions inherited from Service
 Service (QObject *parent=nullptr)
 
virtual QVariant ConvertToVariant (int nType, void *pValue)
 
virtual void * ConvertToParameterPtr (int nTypeId, const QString &sParamType, void *pParam, const QString &sValue)
 
bool HAS_PARAM (const QString &p) const
 

Additional Inherited Members

- Public Slots inherited from DvrServices
- Static Public Member Functions inherited from Service
static bool ToBool (const QString &sVal)
 
- Public Attributes inherited from Service
QList< QString > m_parsedParams
 

Detailed Description

Definition at line 36 of file dvr.h.

Constructor & Destructor Documentation

◆ Dvr()

Q_INVOKABLE Dvr::Dvr ( QObject *  = nullptr)
inlineexplicit

Definition at line 42 of file dvr.h.

Member Function Documentation

◆ GetExpiringList()

DTC::ProgramList * Dvr::GetExpiringList ( int  StartIndex,
int  Count 
)
overridevirtual

Implements DvrServices.

Definition at line 955 of file dvr.cpp.

◆ GetRecordedList()

DTC::ProgramList * Dvr::GetRecordedList ( bool  Descending,
int  StartIndex,
int  Count,
const QString &  TitleRegEx,
const QString &  RecGroup,
const QString &  StorageGroup,
const QString &  Category,
const QString &  Sort,
bool  IgnoreLiveTV,
bool  IgnoreDeleted 
)
overridevirtual

Implements DvrServices.

Definition at line 64 of file dvr.cpp.

◆ GetOldRecordedList()

DTC::ProgramList * Dvr::GetOldRecordedList ( bool  Descending,
int  StartIndex,
int  Count,
const QDateTime &  StartTime,
const QDateTime &  EndTime,
const QString &  Title,
const QString &  SeriesId,
int  RecordId,
const QString &  Sort 
)
overridevirtual

Implements DvrServices.

Definition at line 167 of file dvr.cpp.

◆ GetRecorded()

DTC::Program * Dvr::GetRecorded ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw 
)
overridevirtual

Implements DvrServices.

Definition at line 284 of file dvr.cpp.

◆ AddRecordedCredits()

bool Dvr::AddRecordedCredits ( int  RecordedId,
const QJsonObject &  json 
)
overridevirtual

Implements DvrServices.

Definition at line 308 of file dvr.cpp.

◆ AddRecordedProgram()

int Dvr::AddRecordedProgram ( const QJsonObject &  json)
overridevirtual

Implements DvrServices.

Definition at line 337 of file dvr.cpp.

◆ RemoveRecorded()

bool Dvr::RemoveRecorded ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
bool  ForceDelete,
bool  AllowRerecord 
)
overridevirtual

Implements DvrServices.

Definition at line 493 of file dvr.cpp.

◆ DeleteRecording()

bool Dvr::DeleteRecording ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
bool  ForceDelete,
bool  AllowRerecord 
)
overridevirtual

Implements DvrServices.

Definition at line 502 of file dvr.cpp.

Referenced by RemoveRecorded().

◆ UnDeleteRecording()

bool Dvr::UnDeleteRecording ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw 
)
overridevirtual

Implements DvrServices.

Definition at line 537 of file dvr.cpp.

◆ StopRecording()

bool Dvr::StopRecording ( int  RecordedId)
overridevirtual

Implements DvrServices.

Definition at line 568 of file dvr.cpp.

◆ ReactivateRecording()

bool Dvr::ReactivateRecording ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw 
)
overridevirtual

Implements DvrServices.

Definition at line 594 of file dvr.cpp.

◆ RescheduleRecordings()

bool Dvr::RescheduleRecordings ( void  )
overridevirtual

Implements DvrServices.

Definition at line 620 of file dvr.cpp.

◆ AllowReRecord()

bool Dvr::AllowReRecord ( int  RecordedId)
overridevirtual

Implements DvrServices.

Definition at line 631 of file dvr.cpp.

◆ UpdateRecordedWatchedStatus()

bool Dvr::UpdateRecordedWatchedStatus ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
bool  Watched 
)
overridevirtual

Implements DvrServices.

Definition at line 650 of file dvr.cpp.

◆ GetSavedBookmark()

long Dvr::GetSavedBookmark ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
const QString &  OffsetType 
)
overridevirtual

Implements DvrServices.

Definition at line 679 of file dvr.cpp.

◆ SetSavedBookmark()

bool Dvr::SetSavedBookmark ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
const QString &  OffsetType,
long  Offset 
)
overridevirtual

Implements DvrServices.

Definition at line 718 of file dvr.cpp.

◆ GetRecordedCutList()

DTC::CutList * Dvr::GetRecordedCutList ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
const QString &  OffsetType 
)
overridevirtual

Implements DvrServices.

Definition at line 758 of file dvr.cpp.

◆ GetRecordedCommBreak()

DTC::CutList * Dvr::GetRecordedCommBreak ( int  RecordedId,
int  ChanId,
const QDateTime &  recstarttsRaw,
const QString &  OffsetType 
)
overridevirtual

Implements DvrServices.

Definition at line 791 of file dvr.cpp.

◆ GetRecordedSeek()

DTC::CutList * Dvr::GetRecordedSeek ( int  RecordedId,
const QString &  OffsetType 
)
overridevirtual

Implements DvrServices.

Definition at line 824 of file dvr.cpp.

◆ GetRecordedMarkup()

DTC::MarkupList * Dvr::GetRecordedMarkup ( int  RecordedId)
overridevirtual

Implements DvrServices.

Definition at line 854 of file dvr.cpp.

◆ SetRecordedMarkup()

bool Dvr::SetRecordedMarkup ( int  RecordedId,
const QJsonObject &  json 
)
overridevirtual

Implements DvrServices.

Definition at line 899 of file dvr.cpp.

◆ GetConflictList()

DTC::ProgramList * Dvr::GetConflictList ( int  StartIndex,
int  Count,
int  RecordId 
)
overridevirtual

Implements DvrServices.

Definition at line 1337 of file dvr.cpp.

◆ GetUpcomingList()

DTC::ProgramList * Dvr::GetUpcomingList ( int  StartIndex,
int  Count,
bool  ShowAll,
int  RecordId,
int  RecStatus 
)
overridevirtual

Implements DvrServices.

Definition at line 1254 of file dvr.cpp.

◆ GetEncoderList()

DTC::EncoderList * Dvr::GetEncoderList ( )
overridevirtual

Implements DvrServices.

Definition at line 1003 of file dvr.cpp.

◆ GetInputList()

DTC::InputList * Dvr::GetInputList ( )
overridevirtual

Implements DvrServices.

Definition at line 1068 of file dvr.cpp.

◆ GetRecGroupList()

QStringList Dvr::GetRecGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 1086 of file dvr.cpp.

◆ GetProgramCategories()

QStringList Dvr::GetProgramCategories ( bool  OnlyRecorded)
overridevirtual

Implements DvrServices.

Definition at line 1109 of file dvr.cpp.

◆ GetRecStorageGroupList()

QStringList Dvr::GetRecStorageGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 1135 of file dvr.cpp.

◆ GetPlayGroupList()

QStringList Dvr::GetPlayGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 1144 of file dvr.cpp.

◆ GetRecRuleFilterList()

DTC::RecRuleFilterList * Dvr::GetRecRuleFilterList ( )
overridevirtual

Implements DvrServices.

Definition at line 1153 of file dvr.cpp.

◆ GetTitleList()

QStringList Dvr::GetTitleList ( const QString &  RecGroup)
overridevirtual

Implements DvrServices.

Definition at line 1180 of file dvr.cpp.

◆ GetTitleInfoList()

DTC::TitleInfoList * Dvr::GetTitleInfoList ( )
overridevirtual

Implements DvrServices.

Definition at line 1216 of file dvr.cpp.

◆ AddRecordSchedule()

uint Dvr::AddRecordSchedule ( const QString &  Title,
const QString &  Subtitle,
const QString &  Description,
const QString &  Category,
const QDateTime &  recstarttsRaw,
const QDateTime &  recendtsRaw,
const QString &  SeriesId,
const QString &  ProgramId,
int  ChanId,
const QString &  Station,
int  FindDay,
QTime  FindTime,
int  ParentId,
bool  Inactive,
uint  Season,
uint  Episode,
const QString &  Inetref,
QString  Type,
QString  SearchType,
int  RecPriority,
uint  PreferredInput,
int  StartOffset,
int  EndOffset,
const QDateTime &  lastrectsRaw,
QString  DupMethod,
QString  DupIn,
bool  NewEpisOnly,
uint  Filter,
QString  RecProfile,
QString  RecGroup,
QString  StorageGroup,
QString  PlayGroup,
bool  AutoExpire,
int  MaxEpisodes,
bool  MaxNewest,
bool  AutoCommflag,
bool  AutoTranscode,
bool  AutoMetaLookup,
bool  AutoUserJob1,
bool  AutoUserJob2,
bool  AutoUserJob3,
bool  AutoUserJob4,
int  Transcoder 
)
overridevirtual

Implements DvrServices.

Definition at line 1397 of file dvr.cpp.

◆ UpdateRecordSchedule()

bool Dvr::UpdateRecordSchedule ( uint  RecordId,
const QString &  Title,
const QString &  Subtitle,
const QString &  Description,
const QString &  Category,
const QDateTime &  dStartTimeRaw,
const QDateTime &  dEndTimeRaw,
const QString &  SeriesId,
const QString &  ProgramId,
int  ChanId,
const QString &  Station,
int  FindDay,
QTime  FindTime,
bool  Inactive,
uint  Season,
uint  Episode,
const QString &  Inetref,
QString  Type,
QString  SearchType,
int  RecPriority,
uint  PreferredInput,
int  StartOffset,
int  EndOffset,
QString  DupMethod,
QString  DupIn,
bool  NewEpisOnly,
uint  Filter,
QString  RecProfile,
QString  RecGroup,
QString  StorageGroup,
QString  PlayGroup,
bool  AutoExpire,
int  MaxEpisodes,
bool  MaxNewest,
bool  AutoCommflag,
bool  AutoTranscode,
bool  AutoMetaLookup,
bool  AutoUserJob1,
bool  AutoUserJob2,
bool  AutoUserJob3,
bool  AutoUserJob4,
int  Transcoder 
)
overridevirtual

Implements DvrServices.

Definition at line 1551 of file dvr.cpp.

◆ RemoveRecordSchedule()

bool Dvr::RemoveRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1718 of file dvr.cpp.

◆ AddDontRecordSchedule()

bool Dvr::AddDontRecordSchedule ( int  ChanId,
const QDateTime &  StartTime,
bool  NeverRecord 
)
overridevirtual

Implements DvrServices.

Definition at line 1733 of file dvr.cpp.

◆ GetRecordScheduleList()

DTC::RecRuleList * Dvr::GetRecordScheduleList ( int  StartIndex,
int  Count,
const QString &  Sort,
bool  Descending 
)
overridevirtual

Implements DvrServices.

Definition at line 1763 of file dvr.cpp.

◆ GetRecordSchedule()

DTC::RecRule * Dvr::GetRecordSchedule ( uint  RecordId,
const QString &  Template,
int  nRecordedId,
int  ChanId,
const QDateTime &  dStartTimeRaw,
bool  MakeOverride 
)
overridevirtual

Implements DvrServices.

Definition at line 1825 of file dvr.cpp.

◆ EnableRecordSchedule()

bool Dvr::EnableRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1878 of file dvr.cpp.

◆ DisableRecordSchedule()

bool Dvr::DisableRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1898 of file dvr.cpp.

◆ RecordedIdForKey()

int Dvr::RecordedIdForKey ( int  ChanId,
const QDateTime &  recstarttsRaw 
)
overridevirtual

Implements DvrServices.

Definition at line 1918 of file dvr.cpp.

◆ RecordedIdForPathname()

int Dvr::RecordedIdForPathname ( const QString &  pathname)
overridevirtual

Implements DvrServices.

Definition at line 1929 of file dvr.cpp.

◆ RecStatusToString()

QString Dvr::RecStatusToString ( int  RecStatus)
overridevirtual

Implements DvrServices.

Definition at line 1939 of file dvr.cpp.

◆ RecStatusToDescription()

QString Dvr::RecStatusToDescription ( int  RecStatus,
int  RecType,
const QDateTime &  StartTime 
)
overridevirtual

Implements DvrServices.

Definition at line 1945 of file dvr.cpp.

◆ RecTypeToString()

QString Dvr::RecTypeToString ( const QString &  RecType)
overridevirtual

Implements DvrServices.

Definition at line 1955 of file dvr.cpp.

◆ RecTypeToDescription()

QString Dvr::RecTypeToDescription ( const QString &  RecType)
overridevirtual

Implements DvrServices.

Definition at line 1965 of file dvr.cpp.

◆ DupMethodToString()

QString Dvr::DupMethodToString ( const QString &  DupMethod)
overridevirtual

Implements DvrServices.

Definition at line 1989 of file dvr.cpp.

◆ DupMethodToDescription()

QString Dvr::DupMethodToDescription ( const QString &  DupMethod)
overridevirtual

Implements DvrServices.

Definition at line 1995 of file dvr.cpp.

◆ DupInToString()

QString Dvr::DupInToString ( const QString &  DupIn)
overridevirtual

Implements DvrServices.

Definition at line 1975 of file dvr.cpp.

◆ DupInToDescription()

QString Dvr::DupInToDescription ( const QString &  DupIn)
overridevirtual

Implements DvrServices.

Definition at line 1982 of file dvr.cpp.

◆ ManageJobQueue()

int Dvr::ManageJobQueue ( const QString &  Action,
const QString &  JobName,
int  JobId,
int  RecordedId,
QDateTime  jobstarttsRaw,
QString  RemoteHost,
QString  JobArgs 
)
overridevirtual

Implements DvrServices.

Definition at line 2005 of file dvr.cpp.


The documentation for this class was generated from the following files: