MythTV  master
Public Member Functions | Public Attributes | Friends | List of all members
ProgramRecPriorityInfo Class Reference

#include <programrecpriority.h>

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

Public Member Functions

 ProgramRecPriorityInfo ()
 
 ProgramRecPriorityInfo (const ProgramRecPriorityInfo &)=default
 
ProgramRecPriorityInfooperator= (const ProgramRecPriorityInfo &other)
 
ProgramRecPriorityInfooperator= (const RecordingInfo &other)
 
ProgramRecPriorityInfooperator= (const ProgramInfo &other)
 
virtual void clone (const ProgramRecPriorityInfo &other, bool ignore_non_serialized_data=false)
 
void clone (const RecordingInfo &other, bool ignore_non_serialized_data=false) override
 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
 
void ToMap (InfoMap &progMap, bool showrerecord=false, uint star_range=10) const override
 Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized strings. More...
 
- Public Member Functions inherited from RecordingInfo
 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 ~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, 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 &channum, const QString &chansign, const QString &channame, const QString &chanplaybackfilters, const QString &recgroup, const QString &playgroup, const QString &pathname, const QString &hostname, const QString &storagegroup, const QString &seriesid, const QString &programid, const QString &inetref, CategoryType catType, int recpriority, uint64_t filesize, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, float stars, uint year, uint partnumber, uint parttotal, const QDate &originalAirDate, const QDateTime &lastmodified, RecStatus::Type recstatus, uint recordid, RecordingDupInType dupin, RecordingDupMethodType dupmethod, uint findid, uint programflags, uint audioproperties, uint videoproperties, uint subtitleType, const QString &inputname, const QDateTime &bookmarkupdate)
 Constructs a ProgramInfo from data in 'recorded' table. More...
 
 ProgramInfo (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 &channum, const QString &chansign, const QString &channame, const QString &seriesid, const QString &programid, const QString &inetref, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, RecStatus::Type recstatus, uint recordid, RecordingType rectype, uint findid, bool duplicate)
 Constructs a ProgramInfo from data in 'oldrecorded' table. More...
 
 ProgramInfo (const QString &title, const QString &sortTitle, const QString &subtitle, const QString &sortSubtitle, const QString &description, const QString &syndicatedepisode, const QString &category, uint chanid, const QString &channum, const QString &chansign, const QString &channame, const QString &chanplaybackfilters, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, const QString &seriesid, const 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 (const QString &title, const QString &sortTitle, const QString &subtitle, const QString &sortSubtitle, const QString &description, uint season, uint episode, uint totalepisodes, const QString &category, uint chanid, const QString &channum, const QString &chansign, const QString &channame, const QString &chanplaybackfilters, const QString &recgroup, const QString &playgroup, const QDateTime &startts, const QDateTime &endts, const QDateTime &recstartts, const QDateTime &recendts, const QString &seriesid, const QString &programid, const QString &inetref, const 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...
 
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) const
 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 &) const
 
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 SaveDVDBookmark (const QStringList &fields) const
 
void SaveBDBookmark (const QStringList &fields) const
 
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) const
 
QString GetPlaybackURL (bool checkMaster=false, bool forceCheckLocal=false) const
 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
 

Public Attributes

RecordingType m_recType {kNotRecording}
 
int m_matchCount {0}
 
int m_recCount {0}
 
QDateTime m_last_record
 
int m_avg_delay {0}
 
QString m_profile
 
- Public Attributes inherited from RecordingInfo
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}
 

Friends

class ProgramRecPriority
 

Additional Inherited Members

- Public Types inherited from RecordingInfo
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 }
 
- Static Public Member Functions inherited from RecordingInfo
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 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)
 
- 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...
 
- Static Protected Member Functions inherited from RecordingInfo
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)
 
- 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}
 
- Static Protected Attributes inherited from RecordingInfo
static QString s_unknownTitle
 
- Static Protected Attributes inherited from ProgramInfo
static QMutex s_staticDataLock
 
static ProgramInfoUpdaters_updater
 
static bool s_usingProgIDAuth = true
 

Detailed Description

Definition at line 25 of file programrecpriority.h.

Constructor & Destructor Documentation

◆ ProgramRecPriorityInfo() [1/2]

ProgramRecPriorityInfo::ProgramRecPriorityInfo ( )
inline

Definition at line 30 of file programrecpriority.h.

◆ ProgramRecPriorityInfo() [2/2]

ProgramRecPriorityInfo::ProgramRecPriorityInfo ( const ProgramRecPriorityInfo )
default

Member Function Documentation

◆ operator=() [1/3]

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

Definition at line 33 of file programrecpriority.h.

◆ operator=() [2/3]

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

Definition at line 35 of file programrecpriority.h.

◆ operator=() [3/3]

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

Definition at line 37 of file programrecpriority.h.

◆ clone() [1/3]

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

Definition at line 34 of file programrecpriority.cpp.

Referenced by operator=().

◆ clone() [2/3]

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

Copies important fields from other RecordingInfo.

Reimplemented from RecordingInfo.

Definition at line 50 of file programrecpriority.cpp.

◆ clone() [3/3]

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

Copies important fields from ProgramInfo.

Reimplemented from RecordingInfo.

Definition at line 66 of file programrecpriority.cpp.

◆ clear()

void ProgramRecPriorityInfo::clear ( void  )
overridevirtual

Reimplemented from RecordingInfo.

Definition at line 82 of file programrecpriority.cpp.

◆ ToMap()

void ProgramRecPriorityInfo::ToMap ( InfoMap progMap,
bool  showrerecord = false,
uint  star_range = 10 
) const
overridevirtual

Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized strings.

Reimplemented from ProgramInfo.

Definition at line 94 of file programrecpriority.cpp.

Referenced by ProgramRecPriority::updateInfo(), and ProgramRecPriority::UpdateList().

Friends And Related Function Documentation

◆ ProgramRecPriority

friend class ProgramRecPriority
friend

Definition at line 27 of file programrecpriority.h.

Member Data Documentation

◆ m_recType

RecordingType ProgramRecPriorityInfo::m_recType {kNotRecording}

◆ m_matchCount

int ProgramRecPriorityInfo::m_matchCount {0}

◆ m_recCount

int ProgramRecPriorityInfo::m_recCount {0}

◆ m_last_record

QDateTime ProgramRecPriorityInfo::m_last_record

◆ m_avg_delay

int ProgramRecPriorityInfo::m_avg_delay {0}

◆ m_profile

QString ProgramRecPriorityInfo::m_profile

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