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

#include <dvr.h>

Inheritance diagram for Dvr:
Inheritance graph
[legend]
Collaboration diagram for Dvr:
Collaboration graph
[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) 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 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 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::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, QDateTime recstarttsRaw, 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, QString DupMethod, QString DupIn, 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, QString Title, QString Subtitle, QString Description, QString Category, QDateTime dStartTimeRaw, QDateTime dEndTimeRaw, QString SeriesId, QString ProgramId, int ChanId, 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, 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, QString Template, int nRecordedId, int ChanId, 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 (QString RecType) override
 
QString RecTypeToDescription (QString RecType) override
 
QString DupMethodToString (QString DupMethod) override
 
QString DupMethodToDescription (QString DupMethod) override
 
QString DupInToString (QString DupIn) override
 
QString DupInToDescription (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)
 

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 33 of file dvr.h.

Constructor & Destructor Documentation

◆ Dvr()

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

Definition at line 39 of file dvr.h.

Member Function Documentation

◆ GetExpiringList()

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

Implements DvrServices.

Definition at line 624 of file dvr.cpp.

Referenced by ScriptableDvr::GetExpiringList().

◆ 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 
)
overridevirtual

Implements DvrServices.

Definition at line 63 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecordedList().

◆ 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 150 of file dvr.cpp.

Referenced by ScriptableDvr::GetOldRecordedList().

◆ GetRecorded()

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

Implements DvrServices.

Definition at line 267 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecorded().

◆ RemoveRecorded()

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

Implements DvrServices.

Definition at line 291 of file dvr.cpp.

Referenced by ScriptableDvr::RemoveRecorded().

◆ DeleteRecording()

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

Implements DvrServices.

Definition at line 300 of file dvr.cpp.

Referenced by ScriptableDvr::DeleteRecording(), and RemoveRecorded().

◆ UnDeleteRecording()

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

Implements DvrServices.

Definition at line 335 of file dvr.cpp.

Referenced by ScriptableDvr::UnDeleteRecording().

◆ StopRecording()

bool Dvr::StopRecording ( int  RecordedId)
overridevirtual

Implements DvrServices.

Definition at line 366 of file dvr.cpp.

◆ ReactivateRecording()

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

Implements DvrServices.

Definition at line 392 of file dvr.cpp.

◆ RescheduleRecordings()

bool Dvr::RescheduleRecordings ( void  )
overridevirtual

Implements DvrServices.

Definition at line 418 of file dvr.cpp.

◆ UpdateRecordedWatchedStatus()

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

Implements DvrServices.

Definition at line 429 of file dvr.cpp.

◆ GetSavedBookmark()

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

Implements DvrServices.

Definition at line 458 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 490 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 528 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 561 of file dvr.cpp.

◆ GetRecordedSeek()

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

Implements DvrServices.

Definition at line 594 of file dvr.cpp.

◆ GetConflictList()

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

Implements DvrServices.

Definition at line 1014 of file dvr.cpp.

Referenced by ScriptableDvr::GetConflictList().

◆ GetUpcomingList()

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

Implements DvrServices.

Definition at line 931 of file dvr.cpp.

Referenced by ScriptableDvr::GetUpcomingList().

◆ GetEncoderList()

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

Implements DvrServices.

Definition at line 672 of file dvr.cpp.

Referenced by ScriptableDvr::GetEncoderList().

◆ GetInputList()

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

Implements DvrServices.

Definition at line 743 of file dvr.cpp.

Referenced by ScriptableDvr::GetInputList().

◆ GetRecGroupList()

QStringList Dvr::GetRecGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 763 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecGroupList().

◆ GetProgramCategories()

QStringList Dvr::GetProgramCategories ( bool  OnlyRecorded)
overridevirtual

Implements DvrServices.

Definition at line 786 of file dvr.cpp.

◆ GetRecStorageGroupList()

QStringList Dvr::GetRecStorageGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 812 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecStorageGroupList().

◆ GetPlayGroupList()

QStringList Dvr::GetPlayGroupList ( )
overridevirtual

Implements DvrServices.

Definition at line 821 of file dvr.cpp.

Referenced by ScriptableDvr::GetPlayGroupList().

◆ GetRecRuleFilterList()

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

Implements DvrServices.

Definition at line 830 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecRuleFilterList().

◆ GetTitleList()

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

Implements DvrServices.

Definition at line 857 of file dvr.cpp.

Referenced by ScriptableDvr::GetTitleList().

◆ GetTitleInfoList()

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

Implements DvrServices.

Definition at line 893 of file dvr.cpp.

Referenced by ScriptableDvr::GetTitleInfoList().

◆ AddRecordSchedule()

uint Dvr::AddRecordSchedule ( const QString &  Title,
const QString &  Subtitle,
const QString &  Description,
const QString &  Category,
QDateTime  recstarttsRaw,
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,
QString  DupMethod,
QString  DupIn,
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 1074 of file dvr.cpp.

Referenced by ScriptableDvr::AddRecordSchedule().

◆ UpdateRecordSchedule()

bool Dvr::UpdateRecordSchedule ( uint  RecordId,
QString  Title,
QString  Subtitle,
QString  Description,
QString  Category,
QDateTime  dStartTimeRaw,
QDateTime  dEndTimeRaw,
QString  SeriesId,
QString  ProgramId,
int  ChanId,
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,
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 1216 of file dvr.cpp.

Referenced by ScriptableDvr::UpdateRecordSchedule().

◆ RemoveRecordSchedule()

bool Dvr::RemoveRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1375 of file dvr.cpp.

Referenced by ScriptableDvr::RemoveRecordSchedule().

◆ AddDontRecordSchedule()

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

Implements DvrServices.

Definition at line 1390 of file dvr.cpp.

Referenced by ScriptableDvr::AddDontRecordSchedule().

◆ GetRecordScheduleList()

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

Implements DvrServices.

Definition at line 1418 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecordScheduleList().

◆ GetRecordSchedule()

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

Implements DvrServices.

Definition at line 1480 of file dvr.cpp.

Referenced by ScriptableDvr::GetRecordSchedule().

◆ EnableRecordSchedule()

bool Dvr::EnableRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1533 of file dvr.cpp.

Referenced by ScriptableDvr::EnableRecordSchedule().

◆ DisableRecordSchedule()

bool Dvr::DisableRecordSchedule ( uint  RecordId)
overridevirtual

Implements DvrServices.

Definition at line 1553 of file dvr.cpp.

Referenced by ScriptableDvr::DisableRecordSchedule().

◆ RecordedIdForKey()

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

Implements DvrServices.

Definition at line 1573 of file dvr.cpp.

◆ RecordedIdForPathname()

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

Implements DvrServices.

Definition at line 1584 of file dvr.cpp.

◆ RecStatusToString()

QString Dvr::RecStatusToString ( int  RecStatus)
overridevirtual

Implements DvrServices.

Definition at line 1594 of file dvr.cpp.

Referenced by ScriptableDvr::RecStatusToString().

◆ RecStatusToDescription()

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

Implements DvrServices.

Definition at line 1600 of file dvr.cpp.

Referenced by ScriptableDvr::RecStatusToDescription().

◆ RecTypeToString()

QString Dvr::RecTypeToString ( QString  RecType)
overridevirtual

Implements DvrServices.

Definition at line 1610 of file dvr.cpp.

Referenced by ScriptableDvr::RecTypeToString().

◆ RecTypeToDescription()

QString Dvr::RecTypeToDescription ( QString  RecType)
overridevirtual

Implements DvrServices.

Definition at line 1620 of file dvr.cpp.

Referenced by ScriptableDvr::RecTypeToDescription().

◆ DupMethodToString()

QString Dvr::DupMethodToString ( QString  DupMethod)
overridevirtual

Implements DvrServices.

Definition at line 1644 of file dvr.cpp.

Referenced by ScriptableDvr::DupMethodToString().

◆ DupMethodToDescription()

QString Dvr::DupMethodToDescription ( QString  DupMethod)
overridevirtual

Implements DvrServices.

Definition at line 1650 of file dvr.cpp.

Referenced by ScriptableDvr::DupMethodToDescription().

◆ DupInToString()

QString Dvr::DupInToString ( QString  DupIn)
overridevirtual

Implements DvrServices.

Definition at line 1630 of file dvr.cpp.

Referenced by ScriptableDvr::DupInToString().

◆ DupInToDescription()

QString Dvr::DupInToDescription ( QString  DupIn)
overridevirtual

Implements DvrServices.

Definition at line 1637 of file dvr.cpp.

Referenced by ScriptableDvr::DupInToDescription().

◆ 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 1660 of file dvr.cpp.

Referenced by ScriptableDvr::ManageJobQueue().


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