MythTV  master
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Protected Member Functions | Static Protected Attributes | Private Attributes | List of all members
RecordingInfo Class Reference

Holds information on a TV Program one might wish to record. More...

#include <recordinginfo.h>

Inheritance diagram for RecordingInfo:
Inheritance graph
[legend]
Collaboration diagram for RecordingInfo:
Collaboration graph
[legend]

Public Types

enum  LoadStatus { kNoProgram = 0, kFoundProgram = 1, kFakedLiveTVProgram = 2, kFakedZeroMinProgram = 3 }
 
enum  SpecialRecordingGroups { kDefaultRecGroup = 1, kLiveTVRecGroup = 2, kDeletedRecGroup = 3 }
 
- Public Types inherited from ProgramInfo
enum  CategoryType {
  kCategoryNone, kCategoryMovie, kCategorySeries, kCategorySports,
  kCategoryTVShow
}
 
enum  Verbosity { kLongDescription, kTitleSubtitle, kRecordingKey, kSchedulingKey }
 

Public Member Functions

 RecordingInfo (void)
 
 RecordingInfo (const RecordingInfo &other)
 
 RecordingInfo (const ProgramInfo &other)
 
 RecordingInfo (uint _recordedid)
 
 RecordingInfo (uint _chanid, const QDateTime &_recstartts)
 
 RecordingInfo (QStringList::const_iterator &it, QStringList::const_iterator end)
 
 RecordingInfo (const QString &title, const QString &sortTitle, const QString &subtitle, const QString &sortSubtitle, const QString &description, uint season, uint episode, uint totalepisodes, const QString &syndicatedepisode, const QString &category, uint chanid, const QString &chanstr, const QString &chansign, const QString &channame, const QString &recgroup, const QString &playgroup, const QString &hostname, const QString &storagegroup, uint year, uint partnumber, uint parttotal, const QString &seriesid, const QString &programid, const QString &inetref, const CategoryType catType, int recpriority, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, float stars, const QDate &originalAirDate, bool repeat, RecStatus::Type oldrecstatus, bool reactivate, uint recordid, uint parentid, RecordingType rectype, RecordingDupInType dupin, RecordingDupMethodType dupmethod, uint sourceid, uint inputid, uint findid, bool commfree, uint subtitleType, uint videoproperties, uint audioproperties, bool future, int schedorder, uint mplexid, uint sgroupid, const QString &inputname)
 Create RecordingInfo from 'program'+'record'+'channel' tables, used in scheduler.cpp @ ~ 3296. More...
 
 RecordingInfo (const QString &title, const QString &sortTitle, const QString &subtitle, const QString &sortSubtitle, const QString &description, uint season, uint episode, const QString &category, uint chanid, const QString &chanstr, const QString &chansign, const QString &channame, const QString &recgroup, const QString &playgroup, const QString &seriesid, const QString &programid, const QString &inetref, int recpriority, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, RecStatus::Type recstatus, uint recordid, RecordingType rectype, RecordingDupInType dupin, RecordingDupMethodType dupmethod, uint findid, bool commfree)
 Create RecordingInfo from 'record'+'channel' tables, user in scheduler.cpp @ ~ 3566 & ~ 3643. More...
 
 RecordingInfo (uint _chanid, const QDateTime &desiredts, bool genUnknown, uint maxHours=0, LoadStatus *status=nullptr)
 Fills RecordingInfo for the program that airs at "desiredts" on "chanid". More...
 
RecordingInfooperator= (const RecordingInfo &other)
 
RecordingInfooperator= (const ProgramInfo &other)
 
virtual void clone (const RecordingInfo &other, bool ignore_non_serialized_data=false)
 Copies important fields from other RecordingInfo. More...
 
void clone (const ProgramInfo &other, bool ignore_non_serialized_data=false) override
 Copies important fields from ProgramInfo. More...
 
void clear (void) override
 
virtual ~RecordingInfo ()
 Destructor deletes "record" if it exists. More...
 
void SubstituteMatches (QString &str) override
 Replace MATCH% vars in the specified string. More...
 
void SetRecordingID (uint _recordedid) override
 
QString MakeUniqueSchedulerKey (void) const
 Creates a unique string that can be used to identify a scheduled recording. More...
 
RecordingRuleGetRecordingRule (void)
 Returns the "record" field, creating it if necessary. More...
 
int getRecordID (void)
 Returns a record id, creating "record" it if necessary. More...
 
int GetAutoRunJobs (void) const
 Returns a bitmap of which jobs are attached to this RecordingInfo. More...
 
RecordingType GetProgramRecordingStatus (void)
 Returns the recording type for this RecordingInfo, creating "record" field if necessary. More...
 
QString GetProgramRecordingProfile (void) const
 Returns recording profile name that will be, or was used, for this program, creating "record" field if necessary. More...
 
void ApplyRecordStateChange (RecordingType newstate, bool save=true)
 Sets RecordingType of "record", creating "record" if it does not exist. More...
 
void ApplyRecordRecPriorityChange (int)
 Sets recording priority of "record", creating "record" if it does not exist. More...
 
void QuickRecord (void)
 Create a kSingleRecord if not already scheduled. More...
 
void SetDesiredStartTime (const QDateTime &dt)
 
void SetDesiredEndTime (const QDateTime &dt)
 
QDateTime GetDesiredStartTime (void) const
 
QDateTime GetDesiredEndTime (void) const
 
void AddHistory (bool resched=true, bool forcedup=false, bool future=false)
 Adds recording history, creating "record" it if necessary. More...
 
void DeleteHistory (void)
 Deletes recording history, creating "record" it if necessary. More...
 
void ForgetHistory (void)
 Forget the recording of a program so it will be recorded again. More...
 
void SetDupHistory (void)
 Set the duplicate flag in oldrecorded. More...
 
void StartedRecording (const QString &ext)
 Inserts this RecordingInfo into the database as an existing recording. More...
 
void FinishedRecording (bool allowReRecord)
 If not a premature stop, adds program to history of recorded programs. More...
 
void UpdateRecordingEnd (void)
 Update information in the recorded table when the end-time of a recording is changed. More...
 
void ReactivateRecording (void)
 Asks the scheduler to restart this recording if possible. More...
 
void ApplyRecordRecID (void)
 Sets recordid to match RecordingRule recordid. More...
 
void ApplyRecordRecGroupChange (const QString &newrecgroup)
 Sets the recording group, both in this RecordingInfo and in the database. More...
 
void ApplyRecordRecGroupChange (int newrecgroupid)
 
void ApplyRecordPlayGroupChange (const QString &newplaygroup)
 Sets the recording group, both in this RecordingInfo and in the database. More...
 
void ApplyStorageGroupChange (const QString &newstoragegroup)
 Sets the storage group, both in this RecordingInfo and in the database. More...
 
void ApplyRecordRecTitleChange (const QString &newTitle, const QString &newSubtitle, const QString &newDescription)
 Sets the recording title, subtitle, and description both in this RecordingInfo and in the database. More...
 
void ApplyTranscoderProfileChange (const QString &profile) const
 Sets the transcoder profile for a recording. More...
 
void ApplyTranscoderProfileChangeById (int)
 
void ApplyNeverRecord (void)
 Set this program to never be recorded by inserting 'history' for it into the database with a status of RecStatus::NeverRecord. More...
 
void LoadRecordingFile ()
 
RecordingFileGetRecordingFile () const
 
void SaveFilesize (uint64_t fsize) override
 Sets recording file size in database, and sets "filesize" field. More...
 
void SetFilesize (uint64_t fsize) override
 
uint64_t GetFilesize (void) const override
 
- Public Member Functions inherited from ProgramInfo
 ProgramInfo (void)
 Null constructor. More...
 
 ProgramInfo (const ProgramInfo &other)
 Copy constructor. More...
 
 ProgramInfo (uint recordedid)
 Constructs a ProgramInfo from data in 'recorded' table. More...
 
 ProgramInfo (uint chanid, const QDateTime &recstartts)
 Constructs a ProgramInfo from data in 'recorded' table. More...
 
 ProgramInfo (uint recordedid, QString title, QString sortTitle, QString subtitle, QString sortSubtitle, QString description, uint season, uint episode, uint totalepisodes, QString syndicatedepisode, QString category, uint chanid, QString channum, QString chansign, QString channame, QString chanplaybackfilters, QString recgroup, QString playgroup, const QString &pathname, QString hostname, QString storagegroup, QString seriesid, QString programid, QString inetref, CategoryType catType, int recpriority, uint64_t filesize, QDateTime startts, QDateTime endts, QDateTime recstartts, QDateTime recendts, float stars, uint year, uint partnumber, uint parttotal, const QDate &originalAirDate, QDateTime lastmodified, RecStatus::Type recstatus, uint recordid, RecordingDupInType dupin, RecordingDupMethodType dupmethod, uint findid, uint programflags, uint audioproperties, uint videoproperties, uint subtitleType, QString inputname, QDateTime bookmarkupdate)
 Constructs a ProgramInfo from data in 'recorded' table. More...
 
 ProgramInfo (QString title, QString sortTitle, QString subtitle, QString sortSubtitle, QString description, uint season, uint episode, QString category, uint chanid, QString channum, QString chansign, QString channame, QString seriesid, QString programid, QString inetref, QDateTime startts, QDateTime endts, QDateTime recstartts, QDateTime recendts, RecStatus::Type recstatus, uint recordid, RecordingType rectype, uint findid, bool duplicate)
 Constructs a ProgramInfo from data in 'oldrecorded' table. More...
 
 ProgramInfo (QString title, QString sortTitle, QString subtitle, QString sortSubtitle, QString description, QString syndicatedepisode, QString category, uint chanid, QString channum, QString chansign, QString channame, QString chanplaybackfilters, QDateTime startts, QDateTime endts, QDateTime recstartts, QDateTime recendts, QString seriesid, QString programid, const CategoryType catType, float stars, uint year, uint partnumber, uint parttotal, const QDate &originalAirDate, RecStatus::Type recstatus, uint recordid, RecordingType rectype, uint findid, bool commfree, bool repeat, uint videoproperties, uint audioproperties, uint subtitletype, uint season, uint episode, uint totalepisodes, const ProgramList &schedList)
 Constructs a ProgramInfo from listings data in 'program' table. More...
 
 ProgramInfo (QString title, QString sortTitle, QString subtitle, QString sortSubtitle, QString description, uint season, uint episode, uint totalepisodes, QString category, uint chanid, QString channum, QString chansign, QString channame, QString chanplaybackfilters, QString recgroup, QString playgroup, QDateTime startts, QDateTime endts, QDateTime recstartts, QDateTime recendts, QString seriesid, QString programid, QString inetref, QString inputname)
 Constructs a basic ProgramInfo (used by RecordingInfo) More...
 
 ProgramInfo (const QString &pathname)
 Constructs a ProgramInfo for a pathname. More...
 
 ProgramInfo (const QString &pathname, const QString &plot, const QString &title, const QString &sortTitle, const QString &subtitle, const QString &sortSubtitle, const QString &director, int season, int episode, const QString &inetref, uint length_in_minutes, uint year, const QString &programid)
 Constructs a ProgramInfo for a video. More...
 
 ProgramInfo (const QString &_title, uint _chanid, const QDateTime &_startts, const QDateTime &_endts)
 Constructs a manual record ProgramInfo. More...
 
 ProgramInfo (const QString &_title, const QString &_category, const QDateTime &_startts, const QDateTime &_endts)
 Constructs a Dummy ProgramInfo (used by GuideGrid) More...
 
 ProgramInfo (QStringList::const_iterator &it, QStringList::const_iterator end)
 
 ProgramInfo (const QStringList &list)
 
bool operator== (const ProgramInfo &rhs)
 
ProgramInfooperator= (const ProgramInfo &other)
 Copies important fields from other ProgramInfo. More...
 
void ensureSortFields (void)
 Ensure that the sortTitle and sortSubtitle fields are set. More...
 
virtual ~ProgramInfo ()=default
 
void ToStringList (QStringList &list) const
 Serializes ProgramInfo into a QStringList which can be passed over a socket. More...
 
virtual void ToMap (InfoMap &progMap, bool showrerecord=false, uint star_range=10) const
 Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized strings. More...
 
bool IsSameProgram (const ProgramInfo &other) const
 Checks whether this is the same program as "other", which may or may not be a repeat or on another channel. More...
 
bool IsDuplicateProgram (const ProgramInfo &other) const
 Checks for duplicates according to dupmethod. More...
 
bool IsSameProgramAndStartTime (const ProgramInfo &other) const
 Match same program, with same starttime (channel may be different) More...
 
bool IsSameTitleStartTimeAndChannel (const ProgramInfo &other) const
 Checks title, chanid or callsign and start times for equality. More...
 
bool IsSameTitleTimeslotAndChannel (const ProgramInfo &other) const
 Checks title, chanid or chansign, start/end times, cardid, inputid for fully inclusive overlap. More...
 
bool IsSameProgramWeakCheck (const ProgramInfo &other) const
 Checks for duplicate using only title, chanid and startts. More...
 
bool IsSameRecording (const ProgramInfo &other) const
 
bool IsSameChannel (const ProgramInfo &other) const
 Checks whether channel id or callsign are identical. More...
 
QString MakeUniqueKey (void) const
 Creates a unique string that can be used to identify an existing recording. More...
 
uint GetSecondsInRecording (void) const
 Returns length of program/recording in seconds. More...
 
QString ChannelText (const QString &) const
 Returns channel info using "format". More...
 
QString GetPathname (void) const
 
QString GetBasename (void) const
 
bool IsVideoFile (void) const
 
bool IsVideoDVD (void) const
 
bool IsVideoBD (void) const
 
bool IsLocal (void) const
 
bool IsMythStream (void) const
 
bool IsPathSet (void) const
 
bool HasPathname (void) const
 
bool IsFileReadable (void)
 Attempts to ascertain if the main file for this ProgramInfo is readable. More...
 
QString GetTitle (void) const
 
QString GetSortTitle (void) const
 
QString GetSubtitle (void) const
 
QString GetSortSubtitle (void) const
 
QString GetDescription (void) const
 
uint GetSeason (void) const
 
uint GetEpisode (void) const
 
uint GetEpisodeTotal (void) const
 
QString GetCategory (void) const
 
uint GetChanID (void) const
 This is the unique key used in the database to locate tuning information. More...
 
QString GetChanNum (void) const
 This is the channel "number", in the form 1, 1_2, 1-2, 1#1, etc. More...
 
QString GetChannelSchedulingID (void) const
 This is the unique programming identifier of a channel. More...
 
QString GetChannelName (void) const
 This is the channel name in the local market, i.e. More...
 
QString GetChannelPlaybackFilters (void) const
 
QDateTime GetScheduledStartTime (void) const
 The scheduled start time of program. More...
 
QString GetScheduledStartTime (MythDate::Format fmt) const
 The scheduled start time of program (with formatting). More...
 
QDateTime GetScheduledEndTime (void) const
 The scheduled end time of the program. More...
 
QString GetScheduledEndTime (MythDate::Format fmt) const
 The scheduled end time of the program (with formatting). More...
 
QDateTime GetRecordingStartTime (void) const
 Approximate time the recording started. More...
 
QString GetRecordingStartTime (MythDate::Format fmt) const
 Approximate time the recording started (with formatting). More...
 
QDateTime GetRecordingEndTime (void) const
 Approximate time the recording should have ended, did end, or is intended to end. More...
 
QString GetRecordingEndTime (MythDate::Format fmt) const
 Approximate time the recording should have ended, did end, or is intended to end (with formatting). More...
 
QString GetRecordingGroup (void) const
 
QString GetPlaybackGroup (void) const
 
QString GetHostname (void) const
 
QString GetStorageGroup (void) const
 
uint GetYearOfInitialRelease (void) const
 
QDate GetOriginalAirDate (void) const
 
QDateTime GetLastModifiedTime (void) const
 
QString GetLastModifiedTime (MythDate::Format fmt) const
 
QString GetSeriesID (void) const
 
QString GetProgramID (void) const
 
QString GetInetRef (void) const
 
CategoryType GetCategoryType (void) const
 
QString GetCategoryTypeString (void) const
 Returns catType as a string. More...
 
int GetRecordingPriority (void) const
 
int GetRecordingPriority2 (void) const
 
float GetStars (void) const
 
uint GetStars (uint range_max) const
 
uint GetRecordingID (void) const
 
RecStatus::Type GetRecordingStatus (void) const
 
uint GetRecordingRuleID (void) const
 
uint GetParentRecordingRuleID (void) const
 
RecordingType GetRecordingRuleType (void) const
 
RecordingDupInType GetDuplicateCheckSource (void) const
 Where should we check for duplicates? More...
 
RecordingDupMethodType GetDuplicateCheckMethod (void) const
 What should be compared to determine if two programs are the same? More...
 
uint GetSourceID (void) const
 
uint GetInputID (void) const
 
QString GetInputName (void) const
 
QString GetShortInputName (void) const
 
void ClearInputName (void)
 
uint GetFindID (void) const
 
uint32_t GetProgramFlags (void) const
 
ProgramInfoType GetProgramInfoType (void) const
 
QDateTime GetBookmarkUpdate (void) const
 
bool IsGeneric (void) const
 
bool IsInUsePlaying (void) const
 
bool IsCommercialFree (void) const
 
bool HasCutlist (void) const
 
bool IsBookmarkSet (void) const
 
bool IsWatched (void) const
 
bool IsAutoExpirable (void) const
 
bool IsPreserved (void) const
 
bool IsVideo (void) const
 
bool IsRecording (void) const
 
bool IsRepeat (void) const
 
bool IsDuplicate (void) const
 
bool IsReactivated (void) const
 
bool IsDeletePending (void) const
 
uint GetSubtitleType (void) const
 
uint GetVideoProperties (void) const
 
uint GetAudioProperties (void) const
 
QString toString (Verbosity v=kLongDescription, const QString &sep=":", const QString &grp="\"") const
 
void SetTitle (const QString &t, const QString &st=nullptr)
 
void SetSubtitle (const QString &st, const QString &sst=nullptr)
 
void SetProgramInfoType (ProgramInfoType t)
 
void SetPathname (const QString &)
 
void SetChanID (uint _chanid)
 
void SetScheduledStartTime (const QDateTime &dt)
 
void SetScheduledEndTime (const QDateTime &dt)
 
void SetRecordingStartTime (const QDateTime &dt)
 
void SetRecordingEndTime (const QDateTime &dt)
 
void SetRecordingGroup (const QString &group)
 
void SetPlaybackGroup (const QString &group)
 
void SetHostname (const QString &host)
 
void SetStorageGroup (const QString &group)
 
void SetSeriesID (const QString &id)
 TODO Move to RecordingInfo. More...
 
void SetProgramID (const QString &id)
 
void SetCategory (const QString &cat)
 
void SetCategoryType (const CategoryType type)
 
void SetRecordingPriority (int priority)
 
void SetRecordingPriority2 (int priority)
 
void SetRecordingRuleID (uint id)
 
void SetSourceID (uint id)
 
void SetInputID (uint id)
 
void SetReactivated (bool reactivate)
 
void SetEditing (bool editing)
 
void SetFlagging (bool flagging)
 
void SetIgnoreBookmark (bool ignore)
 If "ignore" is true GetBookmark() will return 0, otherwise GetBookmark() will return the bookmark position if it exists. More...
 
void SetIgnoreProgStart (bool ignore)
 If "ignore" is true QueryProgStart() will return 0, otherwise QueryProgStart() will return the progstart position if it exists. More...
 
void SetAllowLastPlayPos (bool allow)
 If "ignore" is true QueryLastPlayPos() will return 0, otherwise QueryLastPlayPos() will return the last playback position if it exists. More...
 
void SetRecordingStatus (RecStatus::Type status)
 
void SetRecordingRuleType (RecordingType type)
 
void SetPositionMapDBReplacement (PMapDBReplacement *pmap)
 
QString QueryBasename (void) const
 Gets the basename, from the DB if necessary. More...
 
uint QueryMplexID (void) const
 Queries multiplex any recording would be made on, zero if unknown. More...
 
QDateTime QueryBookmarkTimeStamp (void) const
 Queries Latest bookmark timestamp from the database. More...
 
uint64_t QueryBookmark (void) const
 Gets any bookmark position in database, unless the ignore bookmark flag is set. More...
 
uint64_t QueryProgStart (void) const
 Gets any progstart position in database, unless the ignore progstart flag is set. More...
 
uint64_t QueryLastPlayPos (void) const
 Gets any lastplaypos position in database, unless the ignore lastplaypos flag is set. More...
 
CategoryType QueryCategoryType (void) const
 Queries recordedprogram to get the category_type of the recording. More...
 
QStringList QueryDVDBookmark (const QString &serialid) const
 Queries "dvdbookmark" table for bookmarking DVD serial number. More...
 
QStringList QueryBDBookmark (const QString &serialid) const
 Queries "bdbookmark" table for bookmarking BD serial number. More...
 
bool QueryIsEditing (void) const
 Queries "recorded" table for its "editing" field and returns true if it is set to true. More...
 
bool QueryIsInUse (QStringList &byWho) const
 Returns true if Program is in use. More...
 
bool QueryIsInUse (QString &byWho) const
 Returns true if Program is in use. More...
 
bool QueryIsDeleteCandidate (bool one_playback_allowed=false) const
 Returns true iff this is a recording, it is not in use (except by the recorder), and at most one player iff one_playback_allowed is set. More...
 
AutoExpireType QueryAutoExpire (void) const
 Returns "autoexpire" field from "recorded" table. More...
 
TranscodingStatus QueryTranscodeStatus (void) const
 Returns the "transcoded" field in "recorded" table. More...
 
bool QueryTuningInfo (QString &channum, QString &input) const
 Returns the channel and input needed to record the program. More...
 
QString QueryInputDisplayName (void) const
 
uint QueryAverageWidth (void) const
 If present in recording this loads average width of the main video stream from database's stream markup table. More...
 
uint QueryAverageHeight (void) const
 If present in recording this loads average height of the main video stream from database's stream markup table. More...
 
uint QueryAverageFrameRate (void) const
 If present in recording this loads average frame rate of the main video stream from database's stream markup table. More...
 
MarkTypes QueryAverageAspectRatio (void) const
 
uint32_t QueryTotalDuration (void) const
 If present this loads the total duration in milliseconds of the main video stream from recordedmarkup table in the database. More...
 
int64_t QueryTotalFrames (void) const
 If present in recording this loads total frames of the main video stream from database's stream markup table. More...
 
QString QueryRecordingGroup (void) const
 Query recgroup from recorded. More...
 
bool QueryMarkupFlag (MarkTypes type) const
 Returns true iff the speficied mark type is set on frame 0. More...
 
uint QueryTranscoderID (void) const
 
uint64_t QueryLastFrameInPosMap (void) const
 Returns last frame in position map or 0. More...
 
bool Reload (void)
 
void SaveBookmark (uint64_t frame)
 TODO Move to RecordingInfo. More...
 
void SaveEditing (bool edit)
 Sets "editing" field in "recorded" table to "edit". More...
 
void SaveTranscodeStatus (TranscodingStatus trans)
 Set "transcoded" field in "recorded" table to "trans". More...
 
void SaveWatched (bool watchedFlag)
 Set "watched" field in recorded/videometadata to "watchedFlag". More...
 
void SaveDeletePendingFlag (bool deleteFlag)
 Set "deletepending" field in "recorded" table to "deleteFlag". More...
 
void SaveCommFlagged (CommFlagStatus flag)
 Set "commflagged" field in "recorded" table to "flag". More...
 
void SaveAutoExpire (AutoExpireType autoExpire, bool updateDelete=false)
 Set "autoexpire" field in "recorded" table to "autoExpire". More...
 
void SavePreserve (bool preserveEpisode)
 Set "preserve" field in "recorded" table to "preserveEpisode". More...
 
bool SaveBasename (const QString &basename)
 Sets a recording's basename in the database. More...
 
void SaveAspect (uint64_t frame, MarkTypes type, uint customAspect)
 Store aspect ratio of a frame in the recordedmark table. More...
 
void SaveResolution (uint64_t frame, uint width, uint height)
 Store the Resolution at frame in the recordedmarkup table. More...
 
void SaveFrameRate (uint64_t frame, uint framerate)
 Store the Frame Rate at frame in the recordedmarkup table. More...
 
void SaveTotalDuration (int64_t duration)
 Store the Total Duration at frame 0 in the recordedmarkup table. More...
 
void SaveTotalFrames (int64_t frames)
 Store the Total Frames at frame 0 in the recordedmarkup table. More...
 
void SaveVideoProperties (uint mask, uint video_property_flags)
 
void SaveMarkupFlag (MarkTypes type) const
 Clears the specified flag, then if sets it. More...
 
void ClearMarkupFlag (MarkTypes type) const
 
void UpdateLastDelete (bool setTime) const
 Set or unset the record.last_delete field. More...
 
void MarkAsInUse (bool inuse, const QString &usedFor="")
 Tracks a recording's in use status, to prevent deletion and to allow the storage scheduler to perform IO load balancing. More...
 
void UpdateInUseMark (bool force=false)
 
void SaveSeasonEpisode (uint seas, uint ep)
 
void SaveInetRef (const QString &inet)
 
QString DiscoverRecordingDirectory (void)
 
QString GetPlaybackURL (bool checkMaster=false, bool forceCheckLocal=false)
 Returns filename or URL to be used to play back this recording. More...
 
ProgramInfoType DiscoverProgramInfoType (void) const
 
bool QueryCutList (frm_dir_map_t &, bool loadAutosave=false) const
 
void SaveCutList (frm_dir_map_t &, bool isAutoSave=false) const
 
void QueryCommBreakList (frm_dir_map_t &) const
 
void SaveCommBreakList (frm_dir_map_t &) const
 
void QueryPositionMap (frm_pos_map_t &, MarkTypes type) const
 
void ClearPositionMap (MarkTypes type) const
 
void SavePositionMap (frm_pos_map_t &, MarkTypes type, int64_t min_frame=-1, int64_t max_frame=-1) const
 
void SavePositionMapDelta (frm_pos_map_t &, MarkTypes type) const
 
bool QueryKeyFrameInfo (uint64_t *, uint64_t position_or_keyframe, bool backwards, MarkTypes type, const char *from_filemarkup_asc, const char *from_filemarkup_desc, const char *from_recordedseek_asc, const char *from_recordedseek_desc) const
 
bool QueryKeyFramePosition (uint64_t *, uint64_t keyframe, bool backwards) const
 
bool QueryPositionKeyFrame (uint64_t *, uint64_t position, bool backwards) const
 
bool QueryKeyFrameDuration (uint64_t *, uint64_t keyframe, bool backwards) const
 
bool QueryDurationKeyFrame (uint64_t *, uint64_t duration, bool backwards) const
 
void QueryMarkup (QVector< MarkupEntry > &mapMark, QVector< MarkupEntry > &mapSeek) const
 
void SaveMarkup (const QVector< MarkupEntry > &mapMark, const QVector< MarkupEntry > &mapSeek) const
 
void SendUpdateEvent (void)
 Sends event out that the ProgramInfo should be reloaded. More...
 
void SendAddedEvent (void) const
 Sends event out that the ProgramInfo should be added to lists. More...
 
void SendDeletedEvent (void) const
 Sends event out that the ProgramInfo should be delete from lists. More...
 
void QueryMarkupMap (frm_dir_map_t &, MarkTypes type, bool merge=false) const
 
void SaveMarkupMap (const frm_dir_map_t &, MarkTypes type=MARK_ALL, int64_t min_frame=-1, int64_t max_frame=-1) const
 
void ClearMarkupMap (MarkTypes type=MARK_ALL, int64_t min_frame=-1, int64_t max_frame=-1) const
 
void SetAvailableStatus (AvailableStatusType status, const QString &where)
 
AvailableStatusType GetAvailableStatus (void) const
 

Static Public Member Functions

static bool QueryRecordedIdForKey (int &recordedid, uint chanid, const QDateTime &recstartts)
 
static QString GetRecgroupString (uint recGroupID)
 Temporary helper during transition from string to ID. More...
 
static uint GetRecgroupID (const QString &recGroup)
 Temporary helper during transition from string to ID. More...
 
- Static Public Member Functions inherited from ProgramInfo
static bool UsingProgramIDAuthority (void)
 
static void CheckProgramIDAuthorities (void)
 
static void SaveDVDBookmark (const QStringList &fields)
 
static void SaveBDBookmark (const QStringList &fields)
 
static QString i18n (const QString &)
 Translations for play,recording, & storage groups +. More...
 
static QString MakeUniqueKey (uint chanid, const QDateTime &recstartts)
 Creates a unique string that can be used to identify a recording. More...
 
static bool ExtractKey (const QString &uniquekey, uint &chanid, QDateTime &recstartts)
 Extracts chanid and recstartts from a unique key generated by MakeUniqueKey(). More...
 
static bool ExtractKeyFromPathname (const QString &pathname, uint &chanid, QDateTime &recstartts)
 
static bool QueryKeyFromPathname (const QString &pathname, uint &chanid, QDateTime &recstartts)
 
static bool QueryRecordedIdFromPathname (const QString &pathname, uint &recordedid)
 
static QString QueryRecordingGroupPassword (const QString &group)
 
static uint64_t QueryBookmark (uint chanid, const QDateTime &recstartts)
 
static QMap< QString, uint32_t > QueryInUseMap (void)
 
static QMap< QString, boolQueryJobsRunning (int type)
 
static QStringList LoadFromScheduler (const QString &tmptable, int recordid)
 

Public Attributes

RecStatus::Type m_oldrecstatus {RecStatus::Unknown}
 
RecStatus::Type m_savedrecstatus {RecStatus::Unknown}
 
bool m_future {false}
 
int m_schedorder {0}
 
uint m_mplexid {0}
 
uint m_sgroupid {0}
 
QDateTime m_desiredrecstartts
 
QDateTime m_desiredrecendts
 
- Public Attributes inherited from ProgramInfo
int8_t m_spread {-1}
 
int8_t m_startCol {-1}
 

Static Protected Member Functions

static bool InsertProgram (RecordingInfo *pg, const RecordingRule *rule)
 
- Static Protected Member Functions inherited from ProgramInfo
static void QueryMarkupMap (const QString &video_pathname, frm_dir_map_t &, MarkTypes type, bool merge=false)
 
static void QueryMarkupMap (uint chanid, const QDateTime &recstartts, frm_dir_map_t &, MarkTypes type, bool merge=false)
 
static int InitStatics (void)
 

Static Protected Attributes

static QString s_unknownTitle
 
- Static Protected Attributes inherited from ProgramInfo
static QMutex s_staticDataLock
 
static ProgramInfoUpdaters_updater
 
static bool s_usingProgIDAuth = true
 

Private Attributes

class RecordingRulem_record {nullptr}
 
RecordingFilem_recordingFile {nullptr}
 

Additional Inherited Members

- Static Public Attributes inherited from ProgramInfo
static const QString kFromRecordedQuery
 
- Protected Member Functions inherited from ProgramInfo
QString CreateRecordBasename (const QString &ext) const
 Returns a filename for a recording based on the recording channel and date. More...
 
bool LoadProgramFromRecorded (const uint chanid, const QDateTime &recstartts)
 Loads ProgramInfo for an existing recording. More...
 
bool FromStringList (QStringList::const_iterator &it, const QStringList::const_iterator &end)
 Uses a QStringList to initialize this ProgramInfo instance. More...
 
- Protected Attributes inherited from ProgramInfo
QString m_title
 
QString m_sortTitle
 
QString m_subtitle
 
QString m_sortSubtitle
 
QString m_description
 
uint m_season {0}
 
uint m_episode {0}
 
uint m_totalepisodes {0}
 
QString m_syndicatedepisode
 
QString m_category
 
QString m_director
 
int32_t m_recpriority {0}
 
uint32_t m_chanid {0}
 
QString m_chanstr
 
QString m_chansign
 
QString m_channame
 
QString m_chanplaybackfilters
 
QString m_recgroup {"Default"}
 
QString m_playgroup {"Default"}
 
QString m_pathname
 
QString m_hostname
 
QString m_storagegroup {"Default"}
 
QString m_seriesid
 
QString m_programid
 
QString m_inetref
 
CategoryType m_catType {kCategoryNone}
 
uint64_t m_filesize {0ULL}
 
QDateTime m_startts {MythDate::current(true)}
 
QDateTime m_endts {m_startts}
 
QDateTime m_recstartts {m_startts}
 
QDateTime m_recendts {m_startts}
 
float m_stars {0.0F}
 Rating, range [0..1]. More...
 
QDate m_originalAirDate
 
QDateTime m_lastmodified {m_startts}
 
QDateTime m_lastInUseTime {m_startts.addSecs(-4 * 60 * 60)}
 
int32_t m_recpriority2 {0}
 
uint32_t m_recordid {0}
 
uint32_t m_parentid {0}
 
uint32_t m_sourceid {0}
 
uint32_t m_inputid {0}
 
uint32_t m_findid {0}
 
uint32_t m_programflags {FL_NONE}
 ProgramFlag. More...
 
uint16_t m_properties {0}
 SubtitleType,VideoProperty,AudioProperty. More...
 
uint16_t m_year {0}
 
uint16_t m_partnumber {0}
 
uint16_t m_parttotal {0}
 
int8_t m_recstatus {RecStatus::Unknown}
 
uint8_t m_rectype {kNotRecording}
 
uint8_t m_dupin {kDupsInAll}
 
uint8_t m_dupmethod {kDupCheckSubThenDesc}
 
uint m_recordedid {0}
 
QString m_inputname
 
QDateTime m_bookmarkupdate
 
uint8_t m_availableStatus {asAvailable}
 
QString m_inUseForWhat
 
PMapDBReplacementm_positionMapDBReplacement {nullptr}
 

Detailed Description

Holds information on a TV Program one might wish to record.

This class exxtends ProgramInfo with additional information about scheduled recordings and contains helper methods to aid in the scheduling of recordings.

Definition at line 34 of file recordinginfo.h.

Member Enumeration Documentation

◆ LoadStatus

Enumerator
kNoProgram 
kFoundProgram 
kFakedLiveTVProgram 
kFakedZeroMinProgram 

Definition at line 179 of file recordinginfo.h.

◆ SpecialRecordingGroups

Enumerator
kDefaultRecGroup 
kLiveTVRecGroup 
kDeletedRecGroup 

Definition at line 189 of file recordinginfo.h.

Constructor & Destructor Documentation

◆ RecordingInfo() [1/9]

RecordingInfo::RecordingInfo ( void  )
inline

Definition at line 37 of file recordinginfo.h.

◆ RecordingInfo() [2/9]

RecordingInfo::RecordingInfo ( const RecordingInfo other)
inline

Definition at line 38 of file recordinginfo.h.

◆ RecordingInfo() [3/9]

RecordingInfo::RecordingInfo ( const ProgramInfo other)
inlineexplicit

Definition at line 48 of file recordinginfo.h.

◆ RecordingInfo() [4/9]

RecordingInfo::RecordingInfo ( uint  _recordedid)
inlineexplicit

Definition at line 52 of file recordinginfo.h.

◆ RecordingInfo() [5/9]

RecordingInfo::RecordingInfo ( uint  _chanid,
const QDateTime &  _recstartts 
)
inline

Definition at line 56 of file recordinginfo.h.

◆ RecordingInfo() [6/9]

RecordingInfo::RecordingInfo ( QStringList::const_iterator &  it,
QStringList::const_iterator  end 
)
inline

Definition at line 60 of file recordinginfo.h.

◆ RecordingInfo() [7/9]

RecordingInfo::RecordingInfo ( const QString &  title,
const QString &  sortTitle,
const QString &  subtitle,
const QString &  sortSubtitle,
const QString &  description,
uint  season,
uint  episode,
uint  totalepisodes,
const QString &  syndicatedepisode,
const QString &  category,
uint  chanid,
const QString &  chanstr,
const QString &  chansign,
const QString &  channame,
const QString &  recgroup,
const QString &  playgroup,
const QString &  hostname,
const QString &  storagegroup,
uint  year,
uint  partnumber,
uint  parttotal,
const QString &  seriesid,
const QString &  programid,
const QString &  inetref,
const CategoryType  catType,
int  recpriority,
const QDateTime &  startts,
const QDateTime &  endts,
const QDateTime &  recstartts,
const QDateTime &  recendts,
float  stars,
const QDate &  originalAirDate,
bool  repeat,
RecStatus::Type  oldrecstatus,
bool  reactivate,
uint  recordid,
uint  parentid,
RecordingType  rectype,
RecordingDupInType  dupin,
RecordingDupMethodType  dupmethod,
uint  sourceid,
uint  inputid,
uint  findid,
bool  commfree,
uint  subtitleType,
uint  videoproperties,
uint  audioproperties,
bool  future,
int  schedorder,
uint  mplexid,
uint  sgroupid,
const QString &  inputname 
)

Create RecordingInfo from 'program'+'record'+'channel' tables, used in scheduler.cpp @ ~ 3296.

Definition at line 33 of file recordinginfo.cpp.

◆ RecordingInfo() [8/9]

RecordingInfo::RecordingInfo ( const QString &  title,
const QString &  sortTitle,
const QString &  subtitle,
const QString &  sortSubtitle,
const QString &  description,
uint  season,
uint  episode,
const QString &  category,
uint  chanid,
const QString &  chanstr,
const QString &  chansign,
const QString &  channame,
const QString &  recgroup,
const QString &  playgroup,
const QString &  seriesid,
const QString &  programid,
const QString &  inetref,
int  recpriority,
const QDateTime &  startts,
const QDateTime &  endts,
const QDateTime &  recstartts,
const QDateTime &  recendts,
RecStatus::Type  recstatus,
uint  recordid,
RecordingType  rectype,
RecordingDupInType  dupin,
RecordingDupMethodType  dupmethod,
uint  findid,
bool  commfree 
)

Create RecordingInfo from 'record'+'channel' tables, user in scheduler.cpp @ ~ 3566 & ~ 3643.

Definition at line 163 of file recordinginfo.cpp.

◆ RecordingInfo() [9/9]

RecordingInfo::RecordingInfo ( uint  _chanid,
const QDateTime &  desiredts,
bool  genUnknown,
uint  maxHours = 0,
LoadStatus status = nullptr 
)

Fills RecordingInfo for the program that airs at "desiredts" on "chanid".

Parameters
_chanidChannel ID on which to search for program.
desiredtsDate and Time for which we desire the program.
genUnknownGenerate a full entry for live-tv if unknown
maxHoursClamp the maximum time to X hours from dtime.
[out]statusLoadStatus describing what happened.

Definition at line 237 of file recordinginfo.cpp.

◆ ~RecordingInfo()

RecordingInfo::~RecordingInfo ( )
virtual

Destructor deletes "record" if it exists.

Definition at line 456 of file recordinginfo.cpp.

Member Function Documentation

◆ operator=() [1/2]

RecordingInfo& RecordingInfo::operator= ( const RecordingInfo other)
inline

Definition at line 196 of file recordinginfo.h.

◆ operator=() [2/2]

RecordingInfo& RecordingInfo::operator= ( const ProgramInfo other)
inline

Definition at line 198 of file recordinginfo.h.

◆ clone() [1/2]

void RecordingInfo::clone ( const RecordingInfo other,
bool  ignore_non_serialized_data = false 
)
virtual

Copies important fields from other RecordingInfo.

Reimplemented in ProgramRecPriorityInfo.

Definition at line 366 of file recordinginfo.cpp.

Referenced by ProgramRecPriorityInfo::clone(), and operator=().

◆ clone() [2/2]

void RecordingInfo::clone ( const ProgramInfo other,
bool  ignore_non_serialized_data = false 
)
overridevirtual

Copies important fields from ProgramInfo.

Reimplemented from ProgramInfo.

Reimplemented in ProgramRecPriorityInfo.

Definition at line 401 of file recordinginfo.cpp.

◆ clear()

void RecordingInfo::clear ( void  )
overridevirtual

Reimplemented from ProgramInfo.

Reimplemented in ProgramRecPriorityInfo.

Definition at line 432 of file recordinginfo.cpp.

Referenced by ProgramRecPriorityInfo::clear().

◆ SubstituteMatches()

void RecordingInfo::SubstituteMatches ( QString &  str)
overridevirtual

Replace MATCH% vars in the specified string.

Parameters
strQString containing matches to be substituted

Reimplemented from ProgramInfo.

Definition at line 1586 of file recordinginfo.cpp.

Referenced by MythSystemEventHandler::SubstituteMatches().

◆ SetRecordingID()

void RecordingInfo::SetRecordingID ( uint  _recordedid)
inlineoverridevirtual

Reimplemented from ProgramInfo.

Definition at line 213 of file recordinginfo.h.

Referenced by Scheduler::HandleRecording(), and InsertProgram().

◆ MakeUniqueSchedulerKey()

QString RecordingInfo::MakeUniqueSchedulerKey ( void  ) const
inline

Creates a unique string that can be used to identify a scheduled recording.

Definition at line 220 of file recordinginfo.h.

Referenced by Scheduler::ChangeRecordingEnd(), Scheduler::HandleRecording(), and Scheduler::SlaveDisconnected().

◆ GetRecordingRule()

RecordingRule * RecordingInfo::GetRecordingRule ( void  )

◆ getRecordID()

int RecordingInfo::getRecordID ( void  )

Returns a record id, creating "record" it if necessary.

Definition at line 884 of file recordinginfo.cpp.

Referenced by ApplyRecordRecID(), ProgramRecPriority::scheduleChanged(), and SubstituteMatches().

◆ QueryRecordedIdForKey()

bool RecordingInfo::QueryRecordedIdForKey ( int &  recordedid,
uint  chanid,
const QDateTime &  recstartts 
)
static

Definition at line 891 of file recordinginfo.cpp.

Referenced by Dvr::RecordedIdForKey().

◆ GetAutoRunJobs()

int RecordingInfo::GetAutoRunJobs ( void  ) const

Returns a bitmap of which jobs are attached to this RecordingInfo.

See also
JobTypes, GetProgramFlags()

Definition at line 500 of file recordinginfo.cpp.

Referenced by init_jobs(), main(), and JobQueue::QueueRecordingJobs().

◆ GetProgramRecordingStatus()

RecordingType RecordingInfo::GetProgramRecordingStatus ( void  )

Returns the recording type for this RecordingInfo, creating "record" field if necessary.

See also
RecordingType, RecordingRule

Definition at line 470 of file recordinginfo.cpp.

Referenced by ApplyRecordRecPriorityChange(), ApplyRecordStateChange(), FinishedRecording(), getRecordID(), GetRecordingRule(), and QuickRecord().

◆ GetProgramRecordingProfile()

QString RecordingInfo::GetProgramRecordingProfile ( void  ) const

Returns recording profile name that will be, or was used, for this program, creating "record" field if necessary.

See also
RecordingRule

Definition at line 486 of file recordinginfo.cpp.

Referenced by FillProgramInfo(), and HttpStatus::FillProgramInfo().

◆ ApplyRecordStateChange()

void RecordingInfo::ApplyRecordStateChange ( RecordingType  newstate,
bool  save = true 
)

Sets RecordingType of "record", creating "record" if it does not exist.

Parameters
newstateState to apply to "record" RecordingType. This uses same values as return of GetProgramRecordingState
saveIf true, save the new state of the recording into the database. Note: If the new state is kNotRecording this means that the recording will be deleted.

Definition at line 567 of file recordinginfo.cpp.

Referenced by Dvr::AddDontRecordSchedule(), ScheduleCommon::customEvent(), and QuickRecord().

◆ ApplyRecordRecPriorityChange()

void RecordingInfo::ApplyRecordRecPriorityChange ( int  newrecpriority)

Sets recording priority of "record", creating "record" if it does not exist.

Parameters
newrecpriorityNew recording priority.

Definition at line 588 of file recordinginfo.cpp.

Referenced by ProgramRecPriority::saveRecPriority().

◆ QuickRecord()

void RecordingInfo::QuickRecord ( void  )

Create a kSingleRecord if not already scheduled.

Definition at line 865 of file recordinginfo.cpp.

Referenced by ScheduleCommon::QuickRecord(), and TV::QuickRecord().

◆ SetDesiredStartTime()

void RecordingInfo::SetDesiredStartTime ( const QDateTime &  dt)
inline

Definition at line 236 of file recordinginfo.h.

Referenced by RecorderBase::GetRecordingQuality(), and TVRec::StartRecording().

◆ SetDesiredEndTime()

void RecordingInfo::SetDesiredEndTime ( const QDateTime &  dt)
inline

◆ GetDesiredStartTime()

QDateTime RecordingInfo::GetDesiredStartTime ( void  ) const
inline

Definition at line 238 of file recordinginfo.h.

Referenced by get_start(), and RecorderBase::GetRecordingQuality().

◆ GetDesiredEndTime()

QDateTime RecordingInfo::GetDesiredEndTime ( void  ) const
inline

Definition at line 239 of file recordinginfo.h.

Referenced by get_end(), and RecorderBase::GetRecordingQuality().

◆ AddHistory()

void RecordingInfo::AddHistory ( bool  resched = true,
bool  forcedup = false,
bool  future = false 
)

◆ DeleteHistory()

void RecordingInfo::DeleteHistory ( void  )

Deletes recording history, creating "record" it if necessary.

Definition at line 1337 of file recordinginfo.cpp.

◆ ForgetHistory()

void RecordingInfo::ForgetHistory ( void  )

Forget the recording of a program so it will be recorded again.

The duplicate flags in both the recorded and old recorded tables are set to 0. This causes these records to be skipped in the left join in the BUSQ In addition, any "Never Record" fake entries are removed from the oldrecorded table and any entries in the oldfind table are removed.

Definition at line 1376 of file recordinginfo.cpp.

Referenced by PrevRecordedList::AllowRecord(), ScheduleCommon::customEvent(), ProgLister::customEvent(), MainServer::customEvent(), PlaybackBox::doAllowRerecord(), MainServer::DoHandleDeleteRecording(), PlaybackBox::doPlaylistAllowRerecord(), AutoExpire::ExpireEpisodesOverMax(), and MainServer::HandleForgetRecording().

◆ SetDupHistory()

void RecordingInfo::SetDupHistory ( void  )

Set the duplicate flag in oldrecorded.

Definition at line 1559 of file recordinginfo.cpp.

Referenced by ProgLister::customEvent(), and PrevRecordedList::PreventRecord().

◆ StartedRecording()

void RecordingInfo::StartedRecording ( const QString &  ext)

Inserts this RecordingInfo into the database as an existing recording.

This method, of course, only works if a recording has been scheduled and started.

Parameters
extFile extension for recording

Definition at line 931 of file recordinginfo.cpp.

Referenced by TVRec::StartedRecording().

◆ FinishedRecording()

void RecordingInfo::FinishedRecording ( bool  allowReRecord)

If not a premature stop, adds program to history of recorded programs.

Parameters
allowReRecordThis flag goes into the entry in the recorded programs. It also determines whether the recordedmarkup database table is updated with the program length.

Definition at line 1177 of file recordinginfo.cpp.

Referenced by TVRec::FinishedRecording().

◆ UpdateRecordingEnd()

void RecordingInfo::UpdateRecordingEnd ( void  )

Update information in the recorded table when the end-time of a recording is changed.

Definition at line 1226 of file recordinginfo.cpp.

Referenced by TVRec::StartRecording().

◆ ReactivateRecording()

void RecordingInfo::ReactivateRecording ( void  )

Asks the scheduler to restart this recording if possible.

Definition at line 1246 of file recordinginfo.cpp.

Referenced by ScheduleCommon::customEvent(), and Dvr::ReactivateRecording().

◆ ApplyRecordRecID()

void RecordingInfo::ApplyRecordRecID ( void  )

Sets recordid to match RecordingRule recordid.

Definition at line 532 of file recordinginfo.cpp.

Referenced by TVRec::NotifySchedulerOfRecording().

◆ ApplyRecordRecGroupChange() [1/2]

void RecordingInfo::ApplyRecordRecGroupChange ( const QString &  newrecgroup)

◆ ApplyRecordRecGroupChange() [2/2]

void RecordingInfo::ApplyRecordRecGroupChange ( int  newrecgroupid)

Definition at line 650 of file recordinginfo.cpp.

◆ ApplyRecordPlayGroupChange()

void RecordingInfo::ApplyRecordPlayGroupChange ( const QString &  newplaygroup)

Sets the recording group, both in this RecordingInfo and in the database.

Parameters
newplaygroupNew recording group.

Definition at line 689 of file recordinginfo.cpp.

Referenced by PlaybackBox::setPlayGroup().

◆ ApplyStorageGroupChange()

void RecordingInfo::ApplyStorageGroupChange ( const QString &  newstoragegroup)

Sets the storage group, both in this RecordingInfo and in the database.

Parameters
newstoragegroupNew storage group.

Definition at line 714 of file recordinginfo.cpp.

◆ ApplyRecordRecTitleChange()

void RecordingInfo::ApplyRecordRecTitleChange ( const QString &  newTitle,
const QString &  newSubtitle,
const QString &  newDescription 
)

Sets the recording title, subtitle, and description both in this RecordingInfo and in the database.

Parameters
newTitleNew recording title.
newSubtitleNew recording subtitle
newDescriptionNew recording description

Definition at line 741 of file recordinginfo.cpp.

Referenced by PlaybackBox::saveRecMetadata().

◆ ApplyTranscoderProfileChange()

void RecordingInfo::ApplyTranscoderProfileChange ( const QString &  profile) const

Sets the transcoder profile for a recording.

Parameters
profileDescriptive name of the profile. ie: Autodetect

Definition at line 793 of file recordinginfo.cpp.

Referenced by TV::DoQueueTranscode(), and QueueTranscodeJob().

◆ ApplyTranscoderProfileChangeById()

void RecordingInfo::ApplyTranscoderProfileChangeById ( int  id)

Definition at line 773 of file recordinginfo.cpp.

Referenced by PlaybackBox::changeProfileAndTranscode().

◆ ApplyNeverRecord()

void RecordingInfo::ApplyNeverRecord ( void  )

Set this program to never be recorded by inserting 'history' for it into the database with a status of RecStatus::NeverRecord.

Definition at line 854 of file recordinginfo.cpp.

Referenced by Dvr::AddDontRecordSchedule(), and ScheduleCommon::customEvent().

◆ GetRecgroupString()

QString RecordingInfo::GetRecgroupString ( uint  recGroupID)
static

Temporary helper during transition from string to ID.

Definition at line 1622 of file recordinginfo.cpp.

Referenced by ApplyRecordRecGroupChange(), UPnpCDSTv::BuildWhereClause(), FillRecRuleInfo(), and RecordingRule::Save().

◆ GetRecgroupID()

uint RecordingInfo::GetRecgroupID ( const QString &  recGroup)
static

Temporary helper during transition from string to ID.

Definition at line 1603 of file recordinginfo.cpp.

Referenced by Dvr::AddRecordSchedule(), ApplyRecordRecGroupChange(), InsertProgram(), and Dvr::UpdateRecordSchedule().

◆ LoadRecordingFile()

void RecordingInfo::LoadRecordingFile ( )

◆ GetRecordingFile()

RecordingFile* RecordingInfo::GetRecordingFile ( ) const
inline

◆ SaveFilesize()

void RecordingInfo::SaveFilesize ( uint64_t  fsize)
overridevirtual

Sets recording file size in database, and sets "filesize" field.

Reimplemented from ProgramInfo.

Definition at line 1649 of file recordinginfo.cpp.

Referenced by RecorderBase::FinishRecording(), ImportRecorder::run(), RecorderBase::SavePositionMap(), RecorderBase::SetNextRecording(), and ImportRecorder::UpdateRecSize().

◆ SetFilesize()

void RecordingInfo::SetFilesize ( uint64_t  fsize)
overridevirtual

Reimplemented from ProgramInfo.

Definition at line 1661 of file recordinginfo.cpp.

◆ GetFilesize()

uint64_t RecordingInfo::GetFilesize ( void  ) const
overridevirtual

◆ InsertProgram()

bool RecordingInfo::InsertProgram ( RecordingInfo pg,
const RecordingRule rule 
)
staticprotected

Definition at line 1020 of file recordinginfo.cpp.

Referenced by StartedRecording().

Member Data Documentation

◆ m_oldrecstatus

RecStatus::Type RecordingInfo::m_oldrecstatus {RecStatus::Unknown}

Definition at line 276 of file recordinginfo.h.

Referenced by AddHistory(), clear(), clone(), and Scheduler::HandleRecording().

◆ m_savedrecstatus

RecStatus::Type RecordingInfo::m_savedrecstatus {RecStatus::Unknown}

Definition at line 277 of file recordinginfo.h.

Referenced by clear(), and clone().

◆ m_future

bool RecordingInfo::m_future {false}

Definition at line 278 of file recordinginfo.h.

Referenced by clear(), and clone().

◆ m_schedorder

int RecordingInfo::m_schedorder {0}

Definition at line 279 of file recordinginfo.h.

Referenced by clear(), clone(), comp_priority(), and comp_retry().

◆ m_mplexid

uint RecordingInfo::m_mplexid {0}

◆ m_sgroupid

uint RecordingInfo::m_sgroupid {0}

◆ m_desiredrecstartts

QDateTime RecordingInfo::m_desiredrecstartts

Definition at line 282 of file recordinginfo.h.

Referenced by clear(), clone(), and RecordingInfo().

◆ m_desiredrecendts

QDateTime RecordingInfo::m_desiredrecendts

Definition at line 283 of file recordinginfo.h.

Referenced by clear(), clone(), and RecordingInfo().

◆ m_record

class RecordingRule* RecordingInfo::m_record {nullptr}
private

◆ m_recordingFile

RecordingFile* RecordingInfo::m_recordingFile {nullptr}
private

Definition at line 287 of file recordinginfo.h.

Referenced by clear(), clone(), LoadRecordingFile(), and ~RecordingInfo().

◆ s_unknownTitle

QString RecordingInfo::s_unknownTitle
staticprotected

Definition at line 293 of file recordinginfo.h.

Referenced by RecordingInfo().


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