1 #ifndef RECORDING_INFO_H
2 #define RECORDING_INFO_H
5 #include <QRegularExpression>
41 m_oldrecstatus(other.m_oldrecstatus),
42 m_savedrecstatus(other.m_savedrecstatus),
43 m_future(other.m_future),
44 m_schedOrder(other.m_schedOrder),
45 m_mplexId(other.m_mplexId),
46 m_sgroupId(other.m_sgroupId),
47 m_desiredRecStartTs(other.m_desiredRecStartTs),
48 m_desiredRecEndTs(other.m_desiredRecEndTs) { LoadRecordingFile(); }
51 m_desiredRecStartTs(m_startTs),
52 m_desiredRecEndTs(m_endTs) { LoadRecordingFile(); }
55 m_desiredRecStartTs(m_startTs),
56 m_desiredRecEndTs(m_endTs) { LoadRecordingFile(); }
59 m_desiredRecStartTs(m_startTs),
60 m_desiredRecEndTs(m_endTs) { LoadRecordingFile(); }
62 const QStringList::const_iterator& end) :
64 m_desiredRecStartTs(m_startTs),
65 m_desiredRecEndTs(m_endTs) { LoadRecordingFile(); }
70 const QString &sortTitle,
71 const QString &subtitle,
72 const QString &sortSubtitle,
73 const QString &description,
77 const QString &syndicatedepisode,
78 const QString &category,
81 const QString &chanstr,
82 const QString &chansign,
83 const QString &channame,
85 const QString &recgroup,
86 const QString &playgroup,
89 const QString &storagegroup,
95 const QString &seriesid,
96 const QString &programid,
97 const QString &inetref,
102 const QDateTime &startts,
103 const QDateTime &endts,
104 const QDateTime &recstartts,
105 const QDateTime &recendts,
108 QDate originalAirDate,
128 uint videoproperties,
129 uint audioproperties,
134 const QString &inputname);
139 const QString &title,
140 const QString &sortTitle,
141 const QString &subtitle,
142 const QString &sortSubtitle,
143 const QString &description,
146 const QString &category,
149 const QString &chanstr,
150 const QString &chansign,
151 const QString &channame,
153 const QString &recgroup,
154 const QString &playgroup,
156 const QString &seriesid,
157 const QString &programid,
158 const QString &inetref,
162 const QDateTime &startts,
163 const QDateTime &endts,
164 const QDateTime &recstartts,
165 const QDateTime &recendts,
183 kFakedLiveTVProgram = 2,
184 kFakedZeroMinProgram = 3,
187 bool genUnknown, std::chrono::hours maxHours = 0h,
188 LoadStatus *status =
nullptr);
191 kDefaultRecGroup = 1,
193 kDeletedRecGroup = 3,
208 bool ignore_non_serialized_data =
false);
210 bool ignore_non_serialized_data =
false)
override;
212 void clear(
void)
override;
221 { m_recordedId = _recordedid;
222 m_recordingFile->m_recordingId = _recordedid; }
232 int getRecordID(
void);
233 static bool QueryRecordedIdForKey(
int & recordedid,
234 uint chanid,
const QDateTime& recstartts);
235 int GetAutoRunJobs(
void)
const;
237 QString GetProgramRecordingProfile(
void)
const;
238 void ApplyRecordStateChange(
RecordingType newstate,
bool save =
true);
239 void ApplyRecordRecPriorityChange(
int newrecpriority);
240 void QuickRecord(
void);
249 void AddHistory(
bool resched =
true,
bool forcedup =
false,
250 bool future =
false);
251 void DeleteHistory(
void);
252 void ForgetHistory(
void);
253 void SetDupHistory(
void);
256 void StartedRecording(
const QString& ext);
257 bool InsertRecording(
const QString &ext,
bool force_match =
false);
258 void InsertFile(
void);
259 void FinishedRecording(
bool allowReRecord);
260 void UpdateRecordingEnd(
void);
261 void ReactivateRecording(
void);
262 void ApplyRecordRecID(
void);
263 void ApplyRecordRecGroupChange(
const QString &newrecgroup);
264 void ApplyRecordRecGroupChange(
int newrecgroupid);
265 void ApplyRecordPlayGroupChange(
const QString &newplaygroup);
266 void ApplyStorageGroupChange(
const QString &newstoragegroup);
267 void ApplyRecordRecTitleChange(
const QString &newTitle,
268 const QString &newSubtitle,
269 const QString &newDescription);
270 void ApplyTranscoderProfileChange(
const QString &
profile)
const;
271 void ApplyTranscoderProfileChangeById(
int id);
272 void ApplyNeverRecord(
void);
273 void ApplyStarsChange(
float newstarsvalue);
274 void ApplyOriginalAirDateChange(QDate originalairdate);
277 static QString GetRecgroupString(
uint recGroupID);
278 static uint GetRecgroupID(
const QString &recGroup);
281 void LoadRecordingFile();
289 bool m_future {
false};
290 int m_schedOrder {0};
310 #endif // RECORDING_INFO_H