Go to the documentation of this file.
39 #define DVR_SERVICE QString("/Dvr/")
40 #define DVR_HANDLE QString("Dvr")
45 Q_CLASSINFO(
"Version",
"7.1")
46 Q_CLASSINFO(
"AddRecordedCredits",
"methods=POST;name=bool")
47 Q_CLASSINFO(
"AddRecordedProgram",
"methods=POST;name=int")
48 Q_CLASSINFO(
"RemoveRecorded",
"methods=POST;name=bool")
49 Q_CLASSINFO(
"DeleteRecording",
"methods=POST;name=bool")
50 Q_CLASSINFO(
"UnDeleteRecording",
"methods=POST;name=bool")
51 Q_CLASSINFO(
"StopRecording",
"methods=POST;name=bool")
52 Q_CLASSINFO(
"ReactivateRecording",
"methods=POST;name=bool")
53 Q_CLASSINFO(
"RescheduleRecordings",
"methods=POST;name=bool")
54 Q_CLASSINFO(
"AllowReRecord",
"methods=POST;name=bool")
55 Q_CLASSINFO(
"UpdateRecordedWatchedStatus",
"methods=POST;name=bool")
56 Q_CLASSINFO(
"GetSavedBookmark",
"name=long")
57 Q_CLASSINFO(
"GetLastPlayPos",
"name=long")
58 Q_CLASSINFO(
"SetSavedBookmark",
"name=bool")
59 Q_CLASSINFO(
"SetLastPlayPos",
"name=bool")
60 Q_CLASSINFO(
"SetRecordedMarkup",
"name=bool")
61 Q_CLASSINFO(
"AddRecordSchedule",
"methods=POST;name=uint")
62 Q_CLASSINFO(
"UpdateRecordSchedule",
"methods=POST;name=bool")
63 Q_CLASSINFO(
"RemoveRecordSchedule",
"methods=POST;name=bool")
64 Q_CLASSINFO(
"AddDontRecordSchedule",
"methods=POST;name=bool")
65 Q_CLASSINFO(
"EnableRecordSchedule",
"methods=POST;name=bool")
66 Q_CLASSINFO(
"DisableRecordSchedule",
"methods=POST;name=bool")
67 Q_CLASSINFO(
"RecordedIdForKey",
"methods=GET,POST,HEAD;name=int")
68 Q_CLASSINFO(
"RecordedIdForPathname",
"methods=GET,POST,HEAD;name=int")
69 Q_CLASSINFO(
"RecStatusToString",
"methods=GET,POST,HEAD;name=String")
70 Q_CLASSINFO(
"RecStatusToDescription",
"methods=GET,POST,HEAD;name=String")
71 Q_CLASSINFO(
"RecTypeToString",
"methods=GET,POST,HEAD;name=String")
72 Q_CLASSINFO(
"RecTypeToDescription",
"methods=GET,POST,HEAD;name=String")
73 Q_CLASSINFO(
"DupMethodToString",
"methods=GET,POST,HEAD;name=String")
74 Q_CLASSINFO(
"DupMethodToDescription",
"methods=GET,POST,HEAD;name=String")
75 Q_CLASSINFO(
"DupInToString",
"methods=GET,POST,HEAD;name=String")
76 Q_CLASSINFO(
"DupInToDescription",
"methods=GET,POST,HEAD;name=String")
77 Q_CLASSINFO(
"ManageJobQueue",
"methods=POST;name=int")
78 Q_CLASSINFO(
"UpdateRecordedMetadata",
"methods=POST")
82 ~V2Dvr()
override =
default;
93 const QString &TitleRegEx,
94 const QString &RecGroup,
96 const QString &Category,
109 const QDateTime &StartTime,
110 const QDateTime &EndTime,
111 const QString &Title,
112 const QString &SeriesId,
114 const QString &Sort);
118 const QDateTime &StartTime );
121 const QString & Cast);
127 const QDateTime &StartTime,
129 bool AllowRerecord );
133 const QDateTime &StartTime,
135 bool AllowRerecord );
139 const QDateTime &StartTime );
145 const QDateTime &StartTime );
153 const QDateTime &StartTime,
158 const QDateTime &StartTime,
159 const QString &OffsetType );
163 const QDateTime &StartTime,
164 const QString &OffsetType );
168 const QDateTime &StartTime,
169 const QString &OffsetType,
175 const QDateTime &StartTime,
176 const QString &OffsetType,
182 const QDateTime &StartTime,
183 const QString &OffsetType );
187 const QDateTime &StartTime,
188 const QString &OffsetType );
191 const QString &OffsetType );
196 const QString &MarkupList);
222 static QStringList
GetTitleList (
const QString &RecGroup );
229 const QString& Subtitle,
230 const QString& Description,
231 const QString& Category,
232 const QDateTime& StartTime,
233 const QDateTime& EndTime,
234 const QString& SeriesId,
235 const QString& ProgramId,
237 const QString& Station,
244 const QString& Inetref,
251 const QDateTime& LastRecorded,
273 const QString& Title,
274 const QString& Subtitle,
275 const QString& Description,
276 const QString& Category,
277 const QDateTime& StartTime,
278 const QDateTime& EndTime,
279 const QString& SeriesId,
280 const QString& ProgramId,
282 const QString& Station,
288 const QString& Inetref,
318 const QDateTime &StartTime,
327 const QString& Template,
330 const QDateTime& StartTime,
338 const QDateTime &StartTime );
346 const QDateTime &StartTime );
361 const QString &JobName,
364 QDateTime JobStartTime,
371 const QString &BookmarkOffsetType,
373 const QString &Description,
375 const QString &Inetref,
376 QDate OriginalAirDate,
380 const QString &SubTitle,
381 const QString &Title,
385 Q_DISABLE_COPY(
V2Dvr)
static bool AllowReRecord(int RecordedId)
static V2CutList * GetRecordedSeek(int RecordedId, const QString &OffsetType)
static int RecordedIdForPathname(const QString &Pathname)
static QStringList GetPlayGroupList()
static V2RecRule * GetRecordSchedule(uint RecordId, const QString &Template, int RecordedId, int ChanId, const QDateTime &StartTime, bool MakeOverride)
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 bool DeleteRecording(int RecordedId, int ChanId, const QDateTime &StartTime, bool ForceDelete, bool AllowRerecord)
Used to expire recordings to make space for new recordings.
static QString DupInToString(const QString &DupIn)
static V2RecRuleFilterList * GetRecRuleFilterList()
static QString RecTypeToDescription(const QString &RecType)
static long GetSavedBookmark(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static bool SetSavedBookmark(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, long Offset)
static QStringList GetProgramCategories(bool OnlyRecorded)
An action (for this plugin) consists of a description, and a set of key sequences.
static V2ProgramList * GetConflictList(int StartIndex, int Count, int RecordId)
static bool EnableRecordSchedule(uint RecordId)
static QString RecStatusToDescription(const QString &RecStatus, int RecType, const QDateTime &StartTime)
static bool DisableRecordSchedule(uint RecordId)
static void RegisterCustomTypes()
static bool AddDontRecordSchedule(int ChanId, const QDateTime &StartTime, bool NeverRecord)
static bool UnDeleteRecording(int RecordedId, int ChanId, const QDateTime &StartTime)
static V2Program * GetRecorded(int RecordedId, int ChanId, const QDateTime &StartTime)
static QString RecStatusToString(const QString &RecStatus)
static bool UpdateRecordedWatchedStatus(int RecordedId, int ChanId, const QDateTime &StartTime, bool Watched)
static V2RecRuleList * GetRecordScheduleList(int StartIndex, int Count, const QString &Sort, bool Descending)
static QStringList GetRecStorageGroupList()
static bool SetLastPlayPos(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType, long Offset)
static V2MarkupList * GetRecordedMarkup(int RecordedId)
static V2ProgramList * GetExpiringList(int StartIndex, int Count)
static QString DupMethodToString(const QString &DupMethod)
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)
static V2ProgramList * GetOldRecordedList(bool Descending, int StartIndex, int Count, const QDateTime &StartTime, const QDateTime &EndTime, const QString &Title, const QString &SeriesId, int RecordId, const QString &Sort)
static bool RemoveRecordSchedule(uint RecordId)
~V2Dvr() override=default
static bool RescheduleRecordings(void)
static QStringList GetTitleList(const QString &RecGroup)
static bool ReactivateRecording(int RecordedId, int ChanId, const QDateTime &StartTime)
static QString RecTypeToString(const QString &RecType)
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)
static long GetLastPlayPos(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static bool AddRecordedCredits(int RecordedId, const QString &Cast)
static bool StopRecording(int RecordedId)
static V2EncoderList * GetEncoderList()
static V2TitleInfoList * GetTitleInfoList()
static QString DupInToDescription(const QString &DupIn)
static V2InputList * GetInputList()
static QString DupMethodToDescription(const QString &DupMethod)
static QStringList GetRecGroupList()
bool UpdateRecordedMetadata(uint RecordedId, bool AutoExpire, long BookmarkOffset, const QString &BookmarkOffsetType, bool Damaged, const QString &Description, uint Episode, const QString &Inetref, QDate OriginalAirDate, bool Preserve, uint Season, uint Stars, const QString &SubTitle, const QString &Title, bool Watched)
static int RecordedIdForKey(int ChanId, const QDateTime &StartTime)
static V2CutList * GetRecordedCommBreak(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static V2ProgramList * GetUpcomingList(int StartIndex, int Count, bool ShowAll, int RecordId, const QString &RecStatus)
static V2CutList * GetRecordedCutList(int RecordedId, int ChanId, const QDateTime &StartTime, const QString &OffsetType)
static bool RemoveRecorded(int RecordedId, int ChanId, const QDateTime &StartTime, bool ForceDelete, bool AllowRerecord)
static int AddRecordedProgram(const QString &Program)
int ManageJobQueue(const QString &Action, const QString &JobName, int JobId, int RecordedId, QDateTime JobStartTime, QString RemoteHost, QString JobArgs)
static bool SetRecordedMarkup(int RecordedId, const QString &MarkupList)