41#define DVR_SERVICE QString("/Dvr/")
42#define DVR_HANDLE QString("Dvr")
47 Q_CLASSINFO(
"Version",
"7.1")
48 Q_CLASSINFO(
"RemoveOldRecorded",
"methods=POST;name=bool")
49 Q_CLASSINFO(
"UpdateOldRecorded",
"methods=POST;name=bool")
50 Q_CLASSINFO(
"AddRecordedCredits",
"methods=POST;name=bool")
51 Q_CLASSINFO(
"AddRecordedProgram",
"methods=POST;name=int")
52 Q_CLASSINFO(
"RemoveRecorded",
"methods=POST;name=bool")
53 Q_CLASSINFO(
"DeleteRecording",
"methods=POST;name=bool")
54 Q_CLASSINFO(
"UnDeleteRecording",
"methods=POST;name=bool")
55 Q_CLASSINFO(
"StopRecording",
"methods=POST;name=bool")
56 Q_CLASSINFO(
"ReactivateRecording",
"methods=POST;name=bool")
57 Q_CLASSINFO(
"RescheduleRecordings",
"methods=POST;name=bool")
58 Q_CLASSINFO(
"AllowReRecord",
"methods=POST;name=bool")
59 Q_CLASSINFO(
"UpdateRecordedWatchedStatus",
"methods=POST;name=bool")
60 Q_CLASSINFO(
"GetSavedBookmark",
"name=long")
61 Q_CLASSINFO(
"GetLastPlayPos",
"name=long")
62 Q_CLASSINFO(
"SetSavedBookmark",
"name=bool")
63 Q_CLASSINFO(
"SetLastPlayPos",
"name=bool")
64 Q_CLASSINFO(
"SetRecordedMarkup",
"name=bool")
65 Q_CLASSINFO(
"AddRecordSchedule",
"methods=POST;name=uint")
66 Q_CLASSINFO(
"UpdateRecordSchedule",
"methods=POST;name=bool")
67 Q_CLASSINFO(
"RemoveRecordSchedule",
"methods=POST;name=bool")
68 Q_CLASSINFO(
"AddDontRecordSchedule",
"methods=POST;name=bool")
69 Q_CLASSINFO(
"EnableRecordSchedule",
"methods=POST;name=bool")
70 Q_CLASSINFO(
"DisableRecordSchedule",
"methods=POST;name=bool")
71 Q_CLASSINFO(
"RecordedIdForKey",
"methods=GET,POST,HEAD;name=int")
72 Q_CLASSINFO(
"RecordedIdForPathname",
"methods=GET,POST,HEAD;name=int")
73 Q_CLASSINFO(
"RecStatusToString",
"methods=GET,POST,HEAD;name=String")
74 Q_CLASSINFO(
"RecStatusToDescription",
"methods=GET,POST,HEAD;name=String")
75 Q_CLASSINFO(
"RecTypeToString",
"methods=GET,POST,HEAD;name=String")
76 Q_CLASSINFO(
"RecTypeToDescription",
"methods=GET,POST,HEAD;name=String")
77 Q_CLASSINFO(
"DupMethodToString",
"methods=GET,POST,HEAD;name=String")
78 Q_CLASSINFO(
"DupMethodToDescription",
"methods=GET,POST,HEAD;name=String")
79 Q_CLASSINFO(
"DupInToString",
"methods=GET,POST,HEAD;name=String")
80 Q_CLASSINFO(
"DupInToDescription",
"methods=GET,POST,HEAD;name=String")
81 Q_CLASSINFO(
"ManageJobQueue",
"methods=POST;name=int")
82 Q_CLASSINFO(
"UpdateRecordedMetadata",
"methods=POST")
83 Q_CLASSINFO(
"AddPlayGroup",
"methods=POST")
84 Q_CLASSINFO(
"UpdatePlayGroup",
"methods=POST")
85 Q_CLASSINFO(
"RemovePlayGroup",
"methods=POST")
86 Q_CLASSINFO(
"RemovePowerPriority",
"methods=POST")
87 Q_CLASSINFO(
"AddPowerPriority",
"methods=POST")
88 Q_CLASSINFO(
"UpdatePowerPriority",
"methods=POST")
89 Q_CLASSINFO(
"CheckPowerQuery",
"methods=GET,POST,HEAD")
104 const QString &TitleRegEx,
105 const QString &RecGroup,
107 const QString &Category,
120 const QDateTime &StartTime,
121 const QDateTime &EndTime,
122 const QString &Title,
123 const QString &TitleRegEx,
124 const QString &SubtitleRegEx,
125 const QString &SeriesId,
127 const QString &Sort);
130 const QDateTime &StartTime,
134 const QDateTime &StartTime,
140 const QDateTime &StartTime );
143 const QString & Cast);
149 const QDateTime &StartTime,
151 bool AllowRerecord );
155 const QDateTime &StartTime,
157 bool AllowRerecord );
161 const QDateTime &StartTime );
167 const QDateTime &StartTime,
174 const QDateTime &StartTime);
178 const QDateTime &StartTime,
183 const QDateTime &StartTime,
184 const QString &OffsetType );
188 const QDateTime &StartTime,
189 const QString &OffsetType );
193 const QDateTime &StartTime,
194 const QString &OffsetType,
200 const QDateTime &StartTime,
201 const QString &OffsetType,
207 const QDateTime &StartTime,
208 const QString &OffsetType,
213 const QDateTime &StartTime,
214 const QString &OffsetType,
218 const QString &OffsetType );
223 const QString &MarkupList);
228 const QString &Sort);
236 const QString & RecGroup);
270 static QStringList
GetTitleList (
const QString &RecGroup );
277 const QString& Subtitle,
278 const QString& Description,
279 const QString& Category,
280 const QDateTime& StartTime,
281 const QDateTime& EndTime,
282 const QString& SeriesId,
283 const QString& ProgramId,
285 const QString& Station,
292 const QString& Inetref,
299 const QDateTime& LastRecorded,
319 const QString& AutoExtend);
322 const QString& Title,
323 const QString& Subtitle,
324 const QString& Description,
325 const QString& Category,
326 const QDateTime& StartTime,
327 const QDateTime& EndTime,
328 const QString& SeriesId,
329 const QString& ProgramId,
331 const QString& Station,
337 const QString& Inetref,
363 const QString& AutoExtend);
368 const QDateTime &StartTime,
377 const QString& Template,
380 const QDateTime& StartTime,
388 const QDateTime &StartTime );
396 const QDateTime &StartTime );
411 const QString &JobName,
414 QDateTime JobStartTime,
421 const QString &BookmarkOffsetType,
423 const QString &Description,
425 const QString &Inetref,
427 const QString &LastPlayOffsetType,
428 QDate OriginalAirDate,
432 const QString &SubTitle,
433 const QString &Title,
435 const QString &RecGroup );
443 const QString & SelectClause );
447 const QString & SelectClause );
452 Q_DISABLE_COPY(
V2Dvr)
static int Reschedule(const MythUtilCommandLineParser &)
An action (for this plugin) consists of a description, and a set of key sequences.
Used to expire recordings to make space for new recordings.
static bool AddPlayGroup(const QString &Name, const QString &TitleMatch, int SkipAhead, int SkipBack, int TimeStretch, int Jump)
static long GetSavedBookmark(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static void RegisterCustomTypes()
static V2EncoderList * GetEncoderList()
static bool RescheduleRecordings(void)
~V2Dvr() override=default
static uint AddRecordSchedule(const QString &Title, const QString &Subtitle, const QString &Description, const QString &Category, const QDateTime &StartTime, const QDateTime &EndTime, 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 &LastRecorded, 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, const QString &AutoExtend)
static QStringList GetTitleList(const QString &RecGroup)
static QString DupInToDescription(const QString &DupIn)
static bool RemovePowerPriority(const QString &PriorityName)
static bool RemoveRecordSchedule(uint RecordId)
static bool StopRecording(int RecordedId)
static int RecordedIdForKey(int ChanId, const QDateTime &StartTime)
static V2ProgramList * GetUpcomingList(int StartIndex, int Count, bool ShowAll, int RecordId, const QString &RecStatus, const QString &Sort, const QString &RecGroup)
static int RecordedIdForPathname(const QString &Pathname)
static V2MarkupList * GetRecordedMarkup(int RecordedId)
static V2PowerPriorityList * GetPowerPriorityList(const QString &PriorityName)
static int AddRecordedProgram(const QString &Program)
static V2RecRuleList * GetRecordScheduleList(int StartIndex, int Count, const QString &Sort, bool Descending)
static QString RecStatusToDescription(const QString &RecStatus, int RecType, const QDateTime &StartTime)
static V2CutList * GetRecordedSeek(int RecordedId, const QString &OffsetType)
static QStringList GetProgramCategories(bool OnlyRecorded)
static QString CheckPowerQuery(const QString &SelectClause)
static bool UnDeleteRecording(int RecordedId, int ChanId, const QDateTime &StartTime)
static V2PlayGroup * GetPlayGroup(const QString &Name)
static bool AllowReRecord(int RecordedId, int ChanId, const QDateTime &StartTime)
bool UpdatePlayGroup(const QString &Name, const QString &TitleMatch, int SkipAhead, int SkipBack, int TimeStretch, int Jump)
bool UpdateRecordedMetadata(uint RecordedId, bool AutoExpire, long BookmarkOffset, const QString &BookmarkOffsetType, bool Damaged, const QString &Description, uint Episode, const QString &Inetref, long LastPlayOffset, const QString &LastPlayOffsetType, QDate OriginalAirDate, bool Preserve, uint Season, uint Stars, const QString &SubTitle, const QString &Title, bool Watched, const QString &RecGroup)
static bool EnableRecordSchedule(uint RecordId)
static QString DupMethodToDescription(const QString &DupMethod)
static bool DeleteRecording(int RecordedId, int ChanId, const QDateTime &StartTime, bool ForceDelete, bool AllowRerecord)
static V2ProgramList * GetConflictList(int StartIndex, int Count, int RecordId, const QString &Sort)
static bool SetRecordedMarkup(int RecordedId, const QString &MarkupList)
static bool SetSavedBookmark(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, long Offset)
static V2InputList * GetInputList()
static QStringList GetRecGroupList(const QString &UsedBy)
static bool RemovePlayGroup(const QString &Name)
static V2CutList * GetRecordedCommBreak(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, bool IncludeFps)
static QString DupMethodToString(const QString &DupMethod)
static V2TitleInfoList * GetTitleInfoList()
static long GetLastPlayPos(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static bool DisableRecordSchedule(uint RecordId)
static V2RecRule * GetRecordSchedule(uint RecordId, const QString &Template, int RecordedId, int ChanId, const QDateTime &StartTime, bool MakeOverride)
static bool AddRecordedCredits(int RecordedId, const QString &Cast)
static QString DupInToString(const QString &DupIn)
static QString RecStatusToString(const QString &RecStatus)
static V2CutList * GetRecordedCutList(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, bool IncludeFps)
static QStringList GetRecStorageGroupList()
V2ProgramList * 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, bool IncChannel, bool Details, bool IncCast, bool IncArtWork, bool IncRecording)
static QStringList GetPlayGroupList()
static bool ReactivateRecording(int RecordedId, int ChanId, const QDateTime &StartTime, int RecordId)
static QString RecTypeToString(const QString &RecType)
static V2ProgramList * GetOldRecordedList(bool Descending, int StartIndex, int Count, const QDateTime &StartTime, const QDateTime &EndTime, const QString &Title, const QString &TitleRegEx, const QString &SubtitleRegEx, const QString &SeriesId, int RecordId, const QString &Sort)
static V2Program * GetRecorded(int RecordedId, int ChanId, const QDateTime &StartTime)
static bool RemoveRecorded(int RecordedId, int ChanId, const QDateTime &StartTime, bool ForceDelete, bool AllowRerecord)
bool RemoveOldRecorded(int ChanId, const QDateTime &StartTime, bool Reschedule)
static bool UpdateRecordedWatchedStatus(int RecordedId, int ChanId, const QDateTime &StartTime, bool Watched)
static bool SetLastPlayPos(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, long Offset)
int ManageJobQueue(const QString &Action, const QString &JobName, int JobId, int RecordedId, QDateTime JobStartTime, QString RemoteHost, QString JobArgs)
static QString RecTypeToDescription(const QString &RecType)
bool UpdatePowerPriority(const QString &PriorityName, int RecPriority, const QString &SelectClause)
static bool AddDontRecordSchedule(int ChanId, const QDateTime &StartTime, bool NeverRecord)
static V2RecRuleFilterList * GetRecRuleFilterList()
static V2ProgramList * GetExpiringList(int StartIndex, int Count)
bool UpdateOldRecorded(int ChanId, const QDateTime &StartTime, bool Duplicate, bool Reschedule)
static bool UpdateRecordSchedule(uint RecordId, const QString &Title, const QString &Subtitle, const QString &Description, const QString &Category, const QDateTime &StartTime, const QDateTime &EndTime, 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, const QString &AutoExtend)
static bool AddPowerPriority(const QString &PriorityName, int RecPriority, const QString &SelectClause)