ProgramInfo Class Reference

Holds information on recordings and videos. More...

#include <programinfo.h>

Inheritance diagram for ProgramInfo:

RecordingInfo ProgramRecPriorityInfo

List of all members.

Public Types

enum  LPADT { kNoProgram = 0, kFoundProgram = 1, kFakedLiveTVProgram = 2, kFakedZeroMinProgram = 3 }

Public Member Functions

 ProgramInfo (void)
 Null constructor.
 ProgramInfo (const ProgramInfo &other)
 Copy constructor.
 ProgramInfo (const MSqlQuery &query, const ProgramList &schedList, bool oneChanid)
LPADT LoadProgramAtDateTime (uint chanid, const QDateTime &dtime, bool genUnknown=false, int clampHoursMax=0)
 Fills ProgramInfo for the program that air at "dtime" on "channel".
bool LoadProgramFromRecorded (const uint chanid, const QDateTime &recstarttime)
 Loads ProgramInfo for an existing recording.
ProgramInfooperator= (const ProgramInfo &other)
 Copies important fields from other ProgramInfo.
virtual ProgramInfoclone (const ProgramInfo &other)
 Copies important fields from other ProgramInfo.
virtual void clear (void)
bool FromStringList (QStringList::const_iterator &it, QStringList::const_iterator end)
 Uses a QStringList to initialize this ProgramInfo instance.
bool FromStringList (const QStringList &list, uint offset)
 Uses a QStringList to initialize this ProgramInfo instance.
bool FillInRecordInfo (const vector< ProgramInfo * > &reclist)
 If a ProgramInfo in "reclist" matching this program exists, it is used to set recording info in this ProgramInfo.
virtual ~ProgramInfo ()
 Destructor deletes "record" if it exists.
void Save () const
 Saves this ProgramInfo to the database, replacing any existing program in the same timeslot on the same channel.
void ToStringList (QStringList &list) const
 Serializes ProgramInfo into a QStringList which can be passed over a socket.
virtual void ToMap (QHash< QString, QString > &progMap, bool showrerecord=false) const
 Converts ProgramInfo into QString QHash containing each field in ProgramInfo converted into localized strings.
virtual void SubstituteMatches (QString &str)
 Subsitute MATCH% type variable names in the given string.
bool IsSameProgram (const ProgramInfo &other) const
 Checks for duplicates according to dupmethod.
bool IsSameTimeslot (const ProgramInfo &other) const
 Checks chanid, start/end times for equality.
bool IsSameProgramTimeslot (const ProgramInfo &other) const
 Checks chanid or chansign, start/end times, cardid, inputid for fully inclusive overlap.
QString MakeUniqueKey (void) const
 Creates a unique string that can be used to identify a recording.
int CalculateLength (void) const
 Returns length of program/recording in seconds.
int SecsTillStart (void) const
 Returns number of seconds until the program starts, including a negative number if program was in the past.
QString ChannelText (const QString &) const
 Returns channel info using "format".
QString RecTypeChar (void) const
 Converts "rectype" into a human readable character.
QString RecTypeText (void) const
 Converts "rectype" into a human readable description.
QString RecStatusChar (void) const
 Converts "recstatus" into a human readable character.
QString RecStatusText (void) const
 Converts "recstatus" into a short human readable description.
QString RecStatusDesc (void) const
 Converts "recstatus" into a long human readable description.
void UpdateInUseMark (bool force=false)
bool IsFileReadable (void) const
 Attempts to ascertain if the main file for this ProgramInfo is readable.
QString GetFileName (void) const
uint32_t GetProgramFlags (void) const
QString toString (void) const
void setIgnoreBookmark (bool ignore)
 If "ignore" is true GetBookmark() will return 0, otherwise GetBookmark() will return the bookmark position if it exists.
QString GetRecordBasename (bool fromDB=false) const
 Returns a filename for a recording based on the recording channel and date.
QString GetPlaybackURL (bool checkMaster=false, bool forceCheckLocal=false) const
 Returns filename or URL to be used to play back this recording.
uint64_t GetFilesize (void)
 Gets recording file size from database, and sets "filesize" field.
uint GetMplexID (void) const
 Gets multiplex any recording would be made on, zero if unknown.
QDateTime GetBookmarkTimeStamp (void) const
 Queries Latest bookmark timestamp from the database.
long long GetBookmark (void) const
 Gets any bookmark position in database, unless "ignoreBookmark" is set.
QStringList GetDVDBookmark (QString serialid, bool delbookmark) const
 Queries "dvdbookmark" table for bookmarking DVD serial number.
bool IsEditing (void) const
 Queries "recorded" table for its "editing" field and returns true if it is set to true.
bool IsCommFlagged (void) const
 Returns true if commercial flagging has been started according to "commflagged" field in "recorded" table.
bool IsInUse (QString &byWho) const
 Returns true if Program is in use.
int GetAutoExpireFromRecorded (void) const
 Returns "autoexpire" field from "recorded" table.
int GetTranscodedStatus (void) const
 Returns the "transcoded" field in "recorded" table.
bool GetPreserveEpisodeFromRecorded (void) const
 Returns "preserve" field from "recorded" table.
bool UsesMaxEpisodes (void) const
 Returns "maxepisodes" field from "record" table.
bool GetChannel (QString &channum, QString &input) const
 Returns the channel and input needed to record the program.
void SetFilesize (uint64_t fsize)
 Sets recording file size in database, and sets "filesize" field.
void SetBookmark (long long pos)
 Sets a bookmark position in database.
void SetDVDBookmark (QStringList fields) const
void SetEditing (bool edit)
 Sets "editing" field in "recorded" table to "edit".
void SetTranscoded (int transFlag)
 Set "transcoded" field in "recorded" table to "transFlag".
void SetWatchedFlag (bool watchedFlag)
 Set "watched" field in recorded/videometadata to "watchedFlag".
void SetDeleteFlag (bool deleteFlag)
 Set "deletepending" field in "recorded" table to "deleteFlag".
void SetCommFlagged (int flag)
 Set "commflagged" field in "recorded" table to "flag".
void SetAutoExpire (int autoExpire, bool updateDelete=false)
 Set "autoexpire" field in "recorded" table to "autoExpire".
void SetPreserveEpisode (bool preserveEpisode)
 Set "preserve" field in "recorded" table to "preserveEpisode".
bool SetRecordBasename (const QString &basename)
 Sets a recording's basename in the database.
void UpdateLastDelete (bool setTime) const
 Set or unset the record.last_delete field.
void GetCutList (frm_dir_map_t &) const
void GetCommBreakList (frm_dir_map_t &) const
void SetCutList (frm_dir_map_t &)
void SetCommBreakList (frm_dir_map_t &) const
bool CheckMarkupFlag (int type) const
void GetMarkupMap (frm_dir_map_t &, int type, bool merge=false) const
void SetMarkupFlag (int type, bool processing) const
void SetMarkupMap (frm_dir_map_t &, int type=-100, long long min_frm=-1, long long max_frm=-1) const
void ClearMarkupMap (int type=-100, long long min_frm=-1, long long max_frm=-1) const
void GetPositionMap (frm_pos_map_t &, int type) const
void ClearPositionMap (int type) const
void SetPositionMap (frm_pos_map_t &, int type, long long min_frm=-1, long long max_frm=-1) const
void SetPositionMapDelta (frm_pos_map_t &, int type) const
void SetPositionMapDBReplacement (PMapDBReplacement *pmap)
void SetAspectChange (MarkTypes type, long long frame, uint customAspect)
 Store a change in aspect ratio in the recordedmark table.
void SetResolution (uint width, uint height, long long frame)
 Store the Resolution at frame in the recordedmarkup table.
uint GetWidth (void)
 Gets overall average width.
uint GetHeight (void)
 Gets overall average height.
void SetVidpropHeight (int width)
 Sets overall average height flag in videoprops.
void MarkAsInUse (bool inuse, QString usedFor="")
void UpdateRecGroup (void)
 Update Rec Group if its changed by a different programinfo instance.
void SendUpdateEvent (void)
 Sends event out that the ProgramInfo should be reloaded.
void SendAddedEvent (void) const
 Sends event out that the ProgramInfo should be added to lists.
void SendDeletedEvent (void) const
 Sends event out that the ProgramInfo should be delete from lists.

Static Public Member Functions

static ProgramInfoGetProgramFromBasename (const QString filename)
 Returns a new ProgramInfo for an existing recording.
static ProgramInfoGetProgramFromRecorded (const QString &channel, const QString &starttime)
 Returns a new ProgramInfo for an existing recording.
static ProgramInfoGetProgramFromRecorded (const QString &channel, const QDateTime &dtime)
 Returns a new ProgramInfo for an existing recording.
static int GetRecordingTypeRecPriority (RecordingType type)
 Returns recording priority change needed due to RecordingType.
static QString GetRecGroupPassword (QString group)
static QString i18n (const QString &)
 Translations for play,recording, & storage groups +.
static QString MakeUniqueKey (uint chanid, const QDateTime &recstartts)
 Creates a unique string that can be used to identify a recording.

Public Attributes

QString title
QString subtitle
QString description
QString category
QString chanid
QString chanstr
QString chansign
QString channame
uint16_t m_videoWidth
uint16_t m_videoHeight
int32_t recpriority
QString recgroup
QString playgroup
bool chancommfree
QString pathname
uint64_t filesize
QString hostname
QString storagegroup
QDateTime startts
QDateTime endts
QDateTime recstartts
QDateTime recendts
AvailableStatusType availableStatus
bool isVideo
uint16_t lenMins
QString year
float stars
QDate originalAirDate
QDateTime lastmodified
QDateTime lastInUseTime
bool hasAirDate
bool repeat
int32_t spread
int32_t startCol
RecStatusType recstatus
RecStatusType oldrecstatus
RecStatusType savedrecstatus
int32_t prefinput
int32_t recpriority2
int32_t reactivate
int32_t recordid
int32_t parentid
RecordingType rectype
RecordingDupInType dupin
RecordingDupMethodType dupmethod
int32_t sourceid
int32_t inputid
int32_t cardid
bool shareable
bool duplicate
QString schedulerid
int32_t findid
uint32_t programflags
int32_t subtitleType
int32_t videoproperties
int32_t audioproperties
int32_t transcoder
QString chanOutputFilters
QString seriesid
QString programid
QString catType
QString sortTitle

Protected Member Functions

QString CreateRecordBasename (const QString &ext) const
 Returns a filename for a recording based on the recording channel and date.

Protected Attributes

bool ignoreBookmark
QString inUseForWhat
PMapDBReplacementpositionMapDBReplacement

Static Protected Attributes

static QMutex staticDataLock
static QString unknownTitle
static ProgramInfoUpdaterupdater

Friends

class ProgramList


Detailed Description

Holds information on recordings and videos.

ProgramInfo can also contain partial information for a program we wish to find in the schedule, and may also contain information on a video we wish to view. This class is serializable from frontend to backend and back and is the basic unit of information on anything we may wish to view or record.

Definition at line 235 of file programinfo.h.


Member Enumeration Documentation

Enumerator:
kNoProgram 
kFoundProgram 
kFakedLiveTVProgram 
kFakedZeroMinProgram 

Definition at line 250 of file programinfo.h.


Constructor & Destructor Documentation

ProgramInfo::ProgramInfo ( void   ) 

Null constructor.

Definition at line 66 of file programinfo.cpp.

Referenced by GetProgramFromRecorded().

ProgramInfo::ProgramInfo ( const ProgramInfo other  ) 

Copy constructor.

Definition at line 161 of file programinfo.cpp.

ProgramInfo::ProgramInfo ( const MSqlQuery query,
const ProgramList schedList,
bool  oneChanid 
)

Definition at line 249 of file programinfo.cpp.

ProgramInfo::~ProgramInfo (  )  [virtual]

Destructor deletes "record" if it exists.

Definition at line 642 of file programinfo.cpp.


Member Function Documentation

ProgramInfo::LPADT ProgramInfo::LoadProgramAtDateTime ( uint  _chanid,
const QDateTime &  dtime,
bool  genUnknown = false,
int  clampHoursMax = 0 
)

Fills ProgramInfo for the program that air at "dtime" on "channel".

Parameters:
chanid Channel ID on which to search for program.
dtime Date and Time for which we desire the program.
genUnknown Generate a full entry for live-tv if unknown
clampHoursMax Clamp the maximum time to X hours from dtime.
Returns:
LPADT describing what happened.

Definition at line 1132 of file programinfo.cpp.

Referenced by TV::BrowseDispInfo(), TVRec::GetProgramRingBufferForLiveTV(), Scheduler::SchedPreserveLiveTV(), MythSystemEventHandler::SubstituteMatches(), and TV::ToggleRecord().

bool ProgramInfo::LoadProgramFromRecorded ( const uint  _chanid,
const QDateTime &  _recstartts 
)

ProgramInfo * ProgramInfo::GetProgramFromBasename ( const QString  filename  )  [static]

Returns a new ProgramInfo for an existing recording.

Returns:
Pointer to a ProgramInfo if it succeeds, NULL otherwise.

Definition at line 1253 of file programinfo.cpp.

Referenced by FileTransfer::FileTransfer(), MainServer::HandleQueryRecording(), MainServer::LocalFilePath(), main(), and preview_helper().

ProgramInfo * ProgramInfo::GetProgramFromRecorded ( const QString &  channel,
const QString &  starttime 
) [static]

ProgramInfo * ProgramInfo::GetProgramFromRecorded ( const QString &  channel,
const QDateTime &  dtime 
) [static]

Returns a new ProgramInfo for an existing recording.

Returns:
Pointer to a ProgramInfo if it succeeds, NULL otherwise.

Definition at line 1276 of file programinfo.cpp.

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

Copies important fields from other ProgramInfo.

Reimplemented in RecordingInfo, and ProgramRecPriorityInfo.

Definition at line 424 of file programinfo.cpp.

ProgramInfo & ProgramInfo::clone ( const ProgramInfo other  )  [virtual]

Copies important fields from other ProgramInfo.

Reimplemented in RecordingInfo, and ProgramRecPriorityInfo.

Definition at line 432 of file programinfo.cpp.

Referenced by LoadProgramAtDateTime(), RecordingInfo::operator=(), operator=(), and ProgLister::updateButtonList().

void ProgramInfo::clear ( void   )  [virtual]

Reimplemented in RecordingInfo, and ProgramRecPriorityInfo.

Definition at line 551 of file programinfo.cpp.

Referenced by LoadProgramAtDateTime(), and SetPositionMap().

bool ProgramInfo::FromStringList ( QStringList::const_iterator &  it,
QStringList::const_iterator  end 
)

bool ProgramInfo::FromStringList ( const QStringList &  list,
uint  offset 
)

Uses a QStringList to initialize this ProgramInfo instance.

This is a convenience method which calls FromStringList( QStringList::const_iterator&,QStringList::const_iterator) with an iterator created using list.at(offset).

Parameters:
list QStringList containing serialized ProgramInfo.
offset First field in list to treat as beginning of serialized ProgramInfo.
Returns:
true if it succeeds, false if it fails.
See also:
FromStringList(QStringList::const_iterator&, QStringList::const_iterator) ToStringList(QStringList&) const

Definition at line 740 of file programinfo.cpp.

bool ProgramInfo::FillInRecordInfo ( const vector< ProgramInfo * > &  reclist  ) 

If a ProgramInfo in "reclist" matching this program exists, it is used to set recording info in this ProgramInfo.

Returns:
true if match is found, false otherwise.

Definition at line 3478 of file programinfo.cpp.

void ProgramInfo::Save ( void   )  const

Saves this ProgramInfo to the database, replacing any existing program in the same timeslot on the same channel.

Definition at line 3518 of file programinfo.cpp.

void ProgramInfo::ToStringList ( QStringList &  list  )  const

void ProgramInfo::ToMap ( QHash< QString, QString > &  progMap,
bool  showrerecord = false 
) const [virtual]

void ProgramInfo::SubstituteMatches ( QString &  str  )  [virtual]

Subsitute MATCH% type variable names in the given string.

Parameters:
str QString to substitute matches in

Reimplemented in RecordingInfo.

Definition at line 3851 of file programinfo.cpp.

Referenced by JobQueue::GetJobCommand(), and MythSystemEventHandler::SubstituteMatches().

bool ProgramInfo::IsSameProgram ( const ProgramInfo other  )  const

Checks for duplicates according to dupmethod.

Parameters:
other ProgramInfo to compare this one with.

Definition at line 1566 of file programinfo.cpp.

Referenced by Scheduler::IsSameProgram(), and PlayerContext::IsSameProgram().

bool ProgramInfo::IsSameTimeslot ( const ProgramInfo other  )  const

Checks chanid, start/end times for equality.

Parameters:
other ProgramInfo to compare this one with.
Returns:
true if this program shares same time slot as "other" program.

Definition at line 1618 of file programinfo.cpp.

Referenced by Scheduler::AddNewRecords(), Scheduler::ChangeRecordingEnd(), FillInRecordInfo(), Scheduler::MarkShowingsList(), ProgramInfo(), Scheduler::PruneOverlaps(), Scheduler::PruneRedundants(), and Scheduler::TryAnotherShowing().

bool ProgramInfo::IsSameProgramTimeslot ( const ProgramInfo other  )  const

Checks chanid or chansign, start/end times, cardid, inputid for fully inclusive overlap.

Parameters:
other ProgramInfo to compare this one with.
Returns:
true if this program is contained in time slot of "other" program.

Definition at line 1636 of file programinfo.cpp.

Referenced by Scheduler::AddRecording(), and Scheduler::UpdateRecStatus().

int ProgramInfo::GetRecordingTypeRecPriority ( RecordingType  type  )  [static]

Returns recording priority change needed due to RecordingType.

Definition at line 1536 of file programinfo.cpp.

Referenced by Scheduler::AddNewRecords().

QString ProgramInfo::MakeUniqueKey ( void   )  const [inline]

int ProgramInfo::CalculateLength ( void   )  const

Returns length of program/recording in seconds.

Definition at line 1106 of file programinfo.cpp.

Referenced by PlayerContext::SetPlayingInfo().

int ProgramInfo::SecsTillStart ( void   )  const

Returns number of seconds until the program starts, including a negative number if program was in the past.

Definition at line 1118 of file programinfo.cpp.

Referenced by GuideGrid::keyPressEvent().

QString ProgramInfo::ChannelText ( const QString &  format  )  const

Returns channel info using "format".

There are three tags in "format" that will be replaced with the appropriate info. These tags are "<num>", "<sign>", and "<name>", they replaced with the channel number, channel call sign, and channel name, respectively.

Parameters:
format formatting string.
Returns:
formatted string.

Definition at line 3464 of file programinfo.cpp.

Referenced by ManualSchedule::recordClicked(), and ToMap().

QString ProgramInfo::RecTypeChar ( void   )  const

Converts "rectype" into a human readable character.

Definition at line 3158 of file programinfo.cpp.

Referenced by Scheduler::PrintRec(), and ToMap().

QString ProgramInfo::RecTypeText ( void   )  const

Converts "rectype" into a human readable description.

Definition at line 3190 of file programinfo.cpp.

Referenced by ViewScheduled::deleteRule(), ProgLister::deleteRule(), GuideGrid::deleteRule(), ProgDetails::loadPage(), ProgramRecPriority::remove(), and ToMap().

QString ProgramInfo::RecStatusChar ( void   )  const

Converts "recstatus" into a human readable character.

Definition at line 3221 of file programinfo.cpp.

Referenced by Scheduler::PrintRec(), ToMap(), and ViewScheduleDiff::updateUIList().

QString ProgramInfo::RecStatusText ( void   )  const

Converts "recstatus" into a short human readable description.

Definition at line 3280 of file programinfo.cpp.

Referenced by StatusBox::doScheduleStatus(), ProgDetails::loadPage(), Scheduler::RunScheduler(), ToMap(), and ProgramRecPriority::updateInfo().

QString ProgramInfo::RecStatusDesc ( void   )  const

Converts "recstatus" into a long human readable description.

Definition at line 3343 of file programinfo.cpp.

Referenced by ScheduleCommon::ShowNotRecordingDialog(), ScheduleCommon::ShowRecordingDialog(), and ViewScheduleDiff::showStatus().

void ProgramInfo::UpdateInUseMark ( bool  force = false  ) 

bool ProgramInfo::IsFileReadable ( void   )  const

Attempts to ascertain if the main file for this ProgramInfo is readable.

Note:
This method often initiates a QUERY_CHECKFILE MythProto call and so should not be called from the UI thread.
Returns:
true iff file is readable

Definition at line 3568 of file programinfo.cpp.

Referenced by PBHEventHandler::event(), and TV::timerEvent().

QString ProgramInfo::GetFileName ( void   )  const [inline]

uint32_t ProgramInfo::GetProgramFlags ( void   )  const [inline]

Definition at line 315 of file programinfo.h.

Referenced by MainServer::customEvent(), and JobQueue::DoTranscodeThread().

QString ProgramInfo::toString ( void   )  const

void ProgramInfo::setIgnoreBookmark ( bool  ignore  )  [inline]

If "ignore" is true GetBookmark() will return 0, otherwise GetBookmark() will return the bookmark position if it exists.

Definition at line 321 of file programinfo.h.

Referenced by PlaybackBox::doPIPPlay(), PlaybackBox::doPlayFromBeg(), internal_play_media(), PlaybackBox::processNetworkControlCommand(), and NuppelVideoPlayer::StartPlaying().

QString ProgramInfo::GetRecordBasename ( bool  fromDB = false  )  const

Returns a filename for a recording based on the recording channel and date.

Definition at line 1691 of file programinfo.cpp.

Referenced by CompleteJob(), GetPlaybackURL(), NuppelVideoPlayer::GetScreenGrabAtFrame(), MainServer::HandleFillProgramInfo(), ProgDetails::loadPage(), MarkAsInUse(), PlaybackBox::Play(), and SubstituteMatches().

QString ProgramInfo::GetPlaybackURL ( bool  checkMaster = false,
bool  forceCheckLocal = false 
) const

uint64_t ProgramInfo::GetFilesize ( void   ) 

Gets recording file size from database, and sets "filesize" field.

Definition at line 1819 of file programinfo.cpp.

Referenced by PBHEventHandler::event(), and PlaybackBox::updateGroupInfo().

uint ProgramInfo::GetMplexID ( void   )  const

Gets multiplex any recording would be made on, zero if unknown.

Definition at line 1842 of file programinfo.cpp.

Referenced by Scheduler::FindNextConflict().

QDateTime ProgramInfo::GetBookmarkTimeStamp ( void   )  const

Queries Latest bookmark timestamp from the database.

If the timestamp has not been set this returns an invalid QDateTime.

Definition at line 1922 of file programinfo.cpp.

Referenced by PlaybackBoxHelper::GeneratePreviewImage().

long long ProgramInfo::GetBookmark ( void   )  const

Gets any bookmark position in database, unless "ignoreBookmark" is set.

Returns:
Bookmark position in bytes if the query is executed and succeeds, zero otherwise.

Definition at line 1950 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::GetBookmark(), MainServer::HandleBookmarkQuery(), and internal_play_media().

QStringList ProgramInfo::GetDVDBookmark ( QString  serialid,
bool  delbookmark 
) const

Queries "dvdbookmark" table for bookmarking DVD serial number.

Deletes old dvd bookmarks if "delete" is true;

Returns:
list containing title, audio track, subtitle, framenum

Definition at line 1975 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::GetDVDBookmark(), and internal_play_media().

bool ProgramInfo::IsEditing ( void   )  const

Queries "recorded" table for its "editing" field and returns true if it is set to true.

Returns:
true if we have started, but not finished, editing.

Definition at line 2103 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::EnableEdit(), TV::StartProgramEditMode(), and Transcode::TranscodeFile().

bool ProgramInfo::IsCommFlagged ( void   )  const

Returns true if commercial flagging has been started according to "commflagged" field in "recorded" table.

Definition at line 2183 of file programinfo.cpp.

bool ProgramInfo::IsInUse ( QString &  byWho  )  const

Returns true if Program is in use.

This is determined by the inuseprograms table which is updated automatically by NuppelVideoPlayer.

Definition at line 2206 of file programinfo.cpp.

Referenced by PlaybackBox::ShowAvailabilityPopup().

int ProgramInfo::GetAutoExpireFromRecorded ( void   )  const

Returns "autoexpire" field from "recorded" table.

Definition at line 2418 of file programinfo.cpp.

Referenced by TV::FillMenuPlaying(), TV::IsBookmarkAllowed(), PlaybackBox::ShowDeletePopup(), TV::ToggleAutoExpire(), and TV::ToggleRecord().

int ProgramInfo::GetTranscodedStatus ( void   )  const

Returns the "transcoded" field in "recorded" table.

Definition at line 2261 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::SetWatched().

bool ProgramInfo::GetPreserveEpisodeFromRecorded ( void   )  const

Returns "preserve" field from "recorded" table.

Definition at line 2439 of file programinfo.cpp.

bool ProgramInfo::UsesMaxEpisodes ( void   )  const

Returns "maxepisodes" field from "record" table.

Definition at line 2460 of file programinfo.cpp.

bool ProgramInfo::GetChannel ( QString &  channum,
QString &  input 
) const

Returns the channel and input needed to record the program.

Returns:
true on success, false on failure

Definition at line 3741 of file programinfo.cpp.

Referenced by TVRec::TuningCheckForHWChange(), and TVRec::TuningGetChanNum().

void ProgramInfo::SetFilesize ( uint64_t  fsize  ) 

void ProgramInfo::SetBookmark ( long long  pos  ) 

void ProgramInfo::SetDVDBookmark ( QStringList  fields  )  const

Definition at line 2009 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::SetDVDBookmark().

void ProgramInfo::SetEditing ( bool  edit  ) 

Sets "editing" field in "recorded" table to "edit".

Parameters:
edit Editing state to set.

Definition at line 2130 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::DisableEdit(), NuppelVideoPlayer::EnableEdit(), and TV::OSDDialogHandleAction().

void ProgramInfo::SetTranscoded ( int  transFlag  ) 

Set "transcoded" field in "recorded" table to "transFlag".

Parameters:
transFlag value to set transcoded field to.

Definition at line 2283 of file programinfo.cpp.

Referenced by JobQueue::DoTranscodeThread().

void ProgramInfo::SetWatchedFlag ( bool  watchedFlag  ) 

Set "watched" field in recorded/videometadata to "watchedFlag".

Parameters:
watchedFlag value to set watched field to.

Definition at line 2050 of file programinfo.cpp.

Referenced by PlaybackBox::doPlaylistWatchedSetting(), NuppelVideoPlayer::SetWatched(), and PlaybackBox::toggleWatched().

void ProgramInfo::SetDeleteFlag ( bool  deleteFlag  ) 

Set "deletepending" field in "recorded" table to "deleteFlag".

Parameters:
deleteFlag value to set delete pending field to.

Definition at line 2156 of file programinfo.cpp.

Referenced by MainServer::DoHandleDeleteRecording().

void ProgramInfo::SetCommFlagged ( int  flag  ) 

Set "commflagged" field in "recorded" table to "flag".

Parameters:
flag value to set commercial flagging field to.

Definition at line 2307 of file programinfo.cpp.

Referenced by CompleteJob(), DoFlagCommercials(), LoadFromRecorded(), and TVRec::StartedRecording().

void ProgramInfo::SetAutoExpire ( int  autoExpire,
bool  updateDelete = false 
)

void ProgramInfo::SetPreserveEpisode ( bool  preserveEpisode  ) 

Set "preserve" field in "recorded" table to "preserveEpisode".

Parameters:
preserveEpisode value to set preserve field to.

Definition at line 2333 of file programinfo.cpp.

Referenced by PlaybackBox::togglePreserveEpisode().

bool ProgramInfo::SetRecordBasename ( const QString &  basename  ) 

Sets a recording's basename in the database.

Definition at line 1666 of file programinfo.cpp.

Referenced by CompleteJob().

void ProgramInfo::UpdateLastDelete ( bool  setTime  )  const

Set or unset the record.last_delete field.

Parameters:
setTime to set or clear the time stamp.

Definition at line 2385 of file programinfo.cpp.

Referenced by MainServer::DoHandleDeleteRecording(), MainServer::DoHandleUndeleteRecording(), PlaybackBox::RemoveProgram(), SetAutoExpire(), SetPreserveEpisode(), and SetWatchedFlag().

void ProgramInfo::GetCutList ( frm_dir_map_t delMap  )  const

void ProgramInfo::GetCommBreakList ( frm_dir_map_t frames  )  const

void ProgramInfo::SetCutList ( frm_dir_map_t delMap  ) 

void ProgramInfo::SetCommBreakList ( frm_dir_map_t frames  )  const

Definition at line 2509 of file programinfo.cpp.

Referenced by ClearSkipList(), and DoFlagCommercials().

bool ProgramInfo::CheckMarkupFlag ( int  type  )  const

Definition at line 2669 of file programinfo.cpp.

Referenced by Transcode::TranscodeFile().

void ProgramInfo::GetMarkupMap ( frm_dir_map_t marks,
int  type,
bool  merge = false 
) const

Definition at line 2634 of file programinfo.cpp.

Referenced by CheckMarkupFlag(), GetBookmark(), GetCommBreakList(), and GetCutList().

void ProgramInfo::SetMarkupFlag ( int  type,
bool  processing 
) const

void ProgramInfo::SetMarkupMap ( frm_dir_map_t marks,
int  type = -100,
long long  min_frm = -1,
long long  max_frm = -1 
) const

Definition at line 2567 of file programinfo.cpp.

Referenced by SetBookmark(), SetCommBreakList(), SetCutList(), and SetMarkupFlag().

void ProgramInfo::ClearMarkupMap ( int  type = -100,
long long  min_frm = -1,
long long  max_frm = -1 
) const

Definition at line 2522 of file programinfo.cpp.

Referenced by SetBookmark(), SetCommBreakList(), SetCutList(), and SetMarkupFlag().

void ProgramInfo::GetPositionMap ( frm_pos_map_t posMap,
int  type 
) const

Definition at line 2712 of file programinfo.cpp.

Referenced by getFrameCount(), and DecoderBase::PosMapFromDb().

void ProgramInfo::ClearPositionMap ( int  type  )  const

void ProgramInfo::SetPositionMap ( frm_pos_map_t posMap,
int  type,
long long  min_frm = -1,
long long  max_frm = -1 
) const

Definition at line 2784 of file programinfo.cpp.

Referenced by UpdatePositionMap().

void ProgramInfo::SetPositionMapDelta ( frm_pos_map_t posMap,
int  type 
) const

void ProgramInfo::SetPositionMapDBReplacement ( PMapDBReplacement pmap  )  [inline]

Definition at line 377 of file programinfo.h.

Referenced by main().

void ProgramInfo::SetAspectChange ( MarkTypes  type,
long long  frame,
uint  customAspect 
)

Store a change in aspect ratio in the recordedmark table.

Definition at line 2975 of file programinfo.cpp.

Referenced by RecorderBase::AspectChange().

void ProgramInfo::SetResolution ( uint  width,
uint  height,
long long  frame 
)

Store the Resolution at frame in the recordedmarkup table.

Definition at line 3006 of file programinfo.cpp.

Referenced by RecorderBase::ResolutionChange().

uint ProgramInfo::GetWidth ( void   ) 

Gets overall average width.

Definition at line 3075 of file programinfo.cpp.

Referenced by TVRec::TeardownRecorder().

uint ProgramInfo::GetHeight ( void   ) 

Gets overall average height.

Definition at line 3043 of file programinfo.cpp.

void ProgramInfo::SetVidpropHeight ( int  width  ) 

Sets overall average height flag in videoprops.

Definition at line 3107 of file programinfo.cpp.

Referenced by TVRec::TeardownRecorder().

void ProgramInfo::MarkAsInUse ( bool  inuse,
QString  usedFor = "" 
)

QString ProgramInfo::GetRecGroupPassword ( QString  group  )  [static]

Definition at line 3585 of file programinfo.cpp.

Referenced by TV::PromptRecGroupPassword().

void ProgramInfo::UpdateRecGroup ( void   ) 

Update Rec Group if its changed by a different programinfo instance.

Definition at line 3609 of file programinfo.cpp.

Referenced by TV::PromptRecGroupPassword().

QString ProgramInfo::i18n ( const QString &  msg  )  [static]

QString ProgramInfo::MakeUniqueKey ( uint  chanid,
const QDateTime &  recstartts 
) [static]

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

Definition at line 647 of file programinfo.cpp.

void ProgramInfo::SendUpdateEvent ( void   ) 

void ProgramInfo::SendAddedEvent ( void   )  const

Sends event out that the ProgramInfo should be added to lists.

Definition at line 1909 of file programinfo.cpp.

Referenced by SetDeleteFlag(), and RecordingInfo::StartedRecording().

void ProgramInfo::SendDeletedEvent ( void   )  const

Sends event out that the ProgramInfo should be delete from lists.

Definition at line 1914 of file programinfo.cpp.

Referenced by MainServer::DoHandleDeleteRecording().

QString ProgramInfo::CreateRecordBasename ( const QString &  ext  )  const [protected]

Returns a filename for a recording based on the recording channel and date.

Definition at line 1653 of file programinfo.cpp.

Referenced by RecordingInfo::StartedRecording().


Friends And Related Function Documentation

friend class ProgramList [friend]

Definition at line 237 of file programinfo.h.


Member Data Documentation

Definition at line 415 of file programinfo.h.

Referenced by RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), RecordingInfo::ApplyRecordRecTitleChange(), TV::AskAllowRecording(), RecordingRule::AssignProgramInfo(), Scheduler::BuildListMaps(), clear(), clone(), comp_overlap(), comp_redundant(), RecMetadataEdit::Create(), PlaybackBox::CreateProgramInfoString(), ProgFinder::customEvent(), RecordingInfo::DeleteHistory(), ProgLister::deleteOldEpisode(), ProgLister::deleteOldTitle(), GuideGrid::details(), StatusBox::doAutoExpireList(), ProgLister::doDeleteOldTitle(), TV::DoDisplayJumpMenu(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), StatusBox::doJobQueueStatus(), JobQueue::DoTranscodeThread(), StatusBox::doTunerStatus(), JobQueue::DoUserJobThread(), ProgFinder::edit(), GuideGrid::editRecSchedule(), GuideGrid::editSchedule(), AutoExpire::ExpireRecordings(), extract_subtitle(), AutoExpire::FillDBOrdered(), ProgLister::fillItemList(), ProgramRecPriority::FillList(), TV::FillOSDTreeMenu(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindConflict(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), RecordingInfo::FinishedRecording(), FlagCommercials(), RecordingInfo::ForgetHistory(), FromStringList(), PlaybackBoxHelper::GeneratePreviewImage(), ProgFinder::getInfo(), PlayGroup::GetInitialName(), Scheduler::GetNextLiveTVDir(), RecordingSelector::getRecordingList(), MainServer::HandleGenPreviewPixmap(), TV::HandleJumpToProgramAction(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryRecordings(), insert_program(), internal_play_media(), IsSameProgram(), IsSameProgramTimeslot(), IsSameTimeslot(), GuideGrid::keyPressEvent(), CustomEdit::loadClauses(), CustomPriority::loadData(), CustomEdit::loadData(), LoadFromOldRecorded(), LoadFromRecorded(), ProgDetails::loadPage(), LoadProgramAtDateTime(), LoadProgramFromRecorded(), Scheduler::MarkOtherShowings(), RecordingSelector::OKPressed(), ProgLister::oldRecordedActions(), TV::Playback(), print_comm_flag_output(), AutoExpire::PrintExpireList(), Scheduler::PrintRec(), ProgramInfo(), Scheduler::PutInactiveSlavesToSleep(), GuideGrid::quickRecord(), RecordingInfo::ReactivateRecording(), ManualSchedule::recordClicked(), RemoteGetRecordingStatus(), Scheduler::RunScheduler(), Save(), PlaybackBox::saveRecMetadata(), RecordingInfo::SetDupHistory(), SetDVDBookmark(), PlayerContext::SetPseudoLiveTV(), RecorderBase::SetRecording(), SetWatchedFlag(), PlaybackBox::ShowAvailabilityPopup(), TV::ShowLCDChannelInfo(), ScheduleCommon::ShowNotRecordingDialog(), ScheduleEditor::showPrevious(), ScheduleCommon::ShowRecordingDialog(), ViewScheduleDiff::showStatus(), ScheduleCommon::ShowUpcoming(), Scheduler::SlaveConnected(), Scheduler::SlaveDisconnected(), RecordingInfo::StartedRecording(), TVRec::StartRecording(), TV::StartTV(), SubstituteMatches(), TV::timerEvent(), RecordingSelector::titleChanged(), TV::ToggleOSD(), TV::ToggleRecord(), ToMap(), toString(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), ProgramRecPriority::upcoming(), GuideGrid::upcoming(), ProgLister::updateButtonList(), RecordingSelector::updateRecordingList(), PlaybackBox::UpdateUIListItem(), and PlaybackBox::UpdateUILists().

Definition at line 416 of file programinfo.h.

Referenced by RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingRule::AssignProgramInfo(), clear(), clone(), RecMetadataEdit::Create(), PlaybackBox::CreateProgramInfoString(), StatusBox::doAutoExpireList(), TV::DoDisplayJumpMenu(), JobQueue::DoFlagCommercialsThread(), JobQueue::DoTranscodeThread(), StatusBox::doTunerStatus(), extract_subtitle(), AutoExpire::FillDBOrdered(), ProgLister::fillItemList(), TV::FillOSDTreeMenu(), MythXML::FillProgramInfo(), Scheduler::findAllScheduledPrograms(), RecordingInfo::FinishedRecording(), RecordingInfo::ForgetHistory(), FromStringList(), PlaybackBoxHelper::GeneratePreviewImage(), MainServer::HandleGenPreviewPixmap(), TV::HandleJumpToProgramAction(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryRecordings(), insert_program(), internal_play_media(), IsSameProgram(), CustomEdit::loadClauses(), LoadFromOldRecorded(), LoadFromRecorded(), ProgDetails::loadPage(), LoadProgramFromRecorded(), RecordingSelector::OKPressed(), ProgLister::oldRecordedActions(), TV::Playback(), AutoExpire::PrintExpireList(), Scheduler::PrintRec(), ProgramInfo(), RemoteGetRecordingStatus(), Scheduler::RunScheduler(), Save(), RecordingInfo::SetDupHistory(), SetWatchedFlag(), PlaybackBox::ShowAvailabilityPopup(), TV::ShowLCDChannelInfo(), ScheduleCommon::ShowNotRecordingDialog(), ScheduleCommon::ShowRecordingDialog(), ViewScheduleDiff::showStatus(), SubstituteMatches(), RecordingSelector::titleChanged(), ToMap(), ToStringList(), ProgLister::updateButtonList(), ProgramRecPriority::updateInfo(), ProgramRecPriority::UpdateList(), and PlaybackBox::UpdateUIListItem().

Definition at line 420 of file programinfo.h.

Referenced by ProgramInfoCache::Add(), RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), RecordingInfo::ApplyRecordPlayGroupChange(), RecordingInfo::ApplyRecordRecGroupChange(), RecordingInfo::ApplyRecordRecID(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingInfo::ApplyStorageGroupChange(), RecordingInfo::ApplyTranscoderProfileChange(), RecordingRule::AssignProgramInfo(), TV::BrowseStart(), TV::ChangeChannel(), TVRec::CheckForRecGroupChange(), clear(), ClearMarkupMap(), ClearPositionMap(), clone(), commDetectorGotNewCommercialBreakList(), comp_overlap(), comp_timechannel(), CompleteJob(), CreateRecordBasename(), TV::customEvent(), StatusBox::customEvent(), ScheduleCommon::customEvent(), PlaybackBox::customEvent(), LiveTVChain::DeleteProgram(), PlaybackBox::deleteSelected(), ProgLister::doDeleteOldEpisode(), TV::DoEditSchedule(), DoFlagCommercials(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), TV::DoQueueTranscode(), NuppelVideoPlayer::DoSkipCommercials(), JobQueue::DoTranscodeThread(), JobQueue::DoUserJobThread(), AutoExpire::ExpireRecordings(), extract_job_state(), MythXML::FillChannelInfo(), AutoExpire::FillDBOrdered(), TV::FillMenuPlaying(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindNextConflict(), PlaybackBox::FindProgramInUILists(), TVRec::FinishedRecording(), RecordingInfo::FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), RecordingInfo::ForgetHistory(), FromStringList(), GetAutoExpireFromRecorded(), GetBookmarkTimeStamp(), GetChannel(), GetFilesize(), GetHeight(), GetMarkupMap(), GetMplexID(), GetPlaybackURL(), GetPositionMap(), GetPreserveEpisodeFromRecorded(), MythXML::GetProgramGuide(), TVRec::GetProgramRingBufferForLiveTV(), GetRecordBasename(), Scheduler::GetRecStatus(), NuppelVideoPlayer::GetScreenGrabAtFrame(), GetTranscodedStatus(), GetWidth(), TV::HandlePseudoLiveTVTimerEvent(), TV::HandleStateChange(), PlaybackBox::HandleUpdateProgramInfoEvent(), incomingCustomEvent(), init_jobs(), insert_program(), IsCommFlagged(), IsEditing(), IsInUse(), JobQueue::IsJobRunning(), EncoderLink::IsRecording(), IsSameProgramTimeslot(), IsSameTimeslot(), TV::ITVRestart(), LoadFromOldRecorded(), LoadFromRecorded(), ProgDetails::loadPage(), LoadProgramAtDateTime(), LoadProgramFromRecorded(), MarkAsInUse(), EncoderLink::MatchesRecording(), plTimeSort::operator()(), PlaybackBox::PlaylistDelete(), print_comm_flag_output(), TV::ProcessNetworkControlCommand(), ProgramInfo(), LiveTVChain::ProgramIsAt(), push_onto_del(), QueueCommFlagJob(), JobQueue::QueueRecordingJobs(), ManualSchedule::recordClicked(), PlaybackBox::RemoveProgram(), PreviewGenerator::Run(), Scheduler::RunScheduler(), Save(), TV::ScreenShot(), SendAddedEvent(), SendDeletedEvent(), SendMythSystemPlayEvent(), SendMythSystemRecEvent(), SendUpdateEvent(), SetAspectChange(), SetAutoExpire(), SetBookmark(), SetCommFlagged(), SetCutList(), SetDeleteFlag(), SetEditing(), SetFilesize(), TVRec::SetLiveRecording(), SetMarkupMap(), SetPositionMap(), SetPositionMapDelta(), SetPreserveEpisode(), LiveTVChain::SetProgram(), SetRecordBasename(), SetResolution(), SetTranscoded(), SetVidpropHeight(), SetWatchedFlag(), PlaybackBox::showJobPopup(), PlaybackBox::showPlaylistJobPopup(), RecordingInfo::StartedRecording(), TVRec::StartRecording(), EncoderLink::StartRecording(), TV::StartTV(), PlaybackBox::stopPlaylistJobQueueJob(), SubstituteMatches(), RecordingInfo::ToMap(), ToMap(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), ProgramInfoCache::Update(), UpdateRecGroup(), RecordingInfo::UpdateRecordingEnd(), and Scheduler::UpdateRecStatus().

Definition at line 424 of file programinfo.h.

Referenced by clone(), GetWidth(), and SetVidpropHeight().

Definition at line 425 of file programinfo.h.

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

QString ProgramInfo::pathname [mutable]

Definition at line 432 of file programinfo.h.

Referenced by BuildVideoMarkup(), PlaybackSock::CheckFile(), EncoderLink::CheckFile(), clear(), ClearMarkupMap(), ClearPositionMap(), clone(), JobQueue::DoFlagCommercialsThread(), LiveTVChain::EntryToProgram(), PBHEventHandler::event(), AutoExpire::ExpireRecordings(), FileTransfer::FileTransfer(), AutoExpire::FillDBOrdered(), Scheduler::FillRecordingDir(), FromStringList(), get_filename(), GetMarkupMap(), Scheduler::GetNextLiveTVDir(), GetPositionMap(), getProgramInfoForFile(), TVRec::GetProgramRingBufferForLiveTV(), GetRecordBasename(), MainServer::HandleFillProgramInfo(), MainServer::HandleGenPreviewPixmap(), MainServer::HandlePixmapGetIfModified(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryCheckFile(), MainServer::HandleQueryRecordings(), TV::HandleStateChange(), insert_program(), internal_play_media(), IsFileReadable(), LoadFromRecorded(), LoadProgramFromRecorded(), main(), MarkAsInUse(), PlaybackBox::Play(), TV::PlayFromRecorder(), preview_helper(), PreviewGenerator::PreviewGenerator(), PlaybackBoxHelper::previewReady(), print_comm_flag_output(), JobQueue::ProcessJob(), PlaybackBox::processNetworkControlCommand(), RemoteCheckFile(), PreviewGenerator::RemotePreviewRun(), Scheduler::RunScheduler(), PlayerContext::SetInitialTVState(), SetMarkupMap(), SetPositionMap(), SetPositionMapDelta(), SetWatchedFlag(), RecordingInfo::StartedRecording(), PreviewGenerator::TeardownAll(), RecordingSelector::titleChanged(), ToMap(), ToStringList(), MainServer::TruncateAndClose(), and ProgramInfoCache::Update().

Definition at line 437 of file programinfo.h.

Referenced by RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), RecordingRule::AssignProgramInfo(), TV::BrowseStart(), CalculateLength(), clear(), clone(), comp_originalAirDate(), comp_originalAirDate_rev(), comp_overlap(), comp_recordDate(), comp_recordDate_rev(), comp_redundant(), ScheduleCommon::customEvent(), ProgLister::doDeleteOldEpisode(), DoFlagCommercials(), AutoExpire::FillDBOrdered(), TV::FillMenuPlaying(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::findAllScheduledPrograms(), TVRec::FinishedRecording(), FromStringList(), TV::GetNextProgram(), insert_program(), internal_play_media(), IsSameProgramTimeslot(), IsSameTimeslot(), CustomEdit::loadClauses(), LoadFromOldRecorded(), LoadFromRecorded(), ViewScheduled::LoadList(), ProgDetails::loadPage(), LoadProgramAtDateTime(), LoadProgramFromRecorded(), RecordingSelector::OKPressed(), plTimeSort::operator()(), plPrevTitleSort::operator()(), plTitleSort::operator()(), AutoExpire::PrintExpireList(), TV::ProcessNetworkControlCommand(), ProgramInfo(), RecordingInfo::ReactivateRecording(), ManualSchedule::recordClicked(), RemoteGetRecordingStatus(), Save(), SecsTillStart(), TVRec::SetLiveRecording(), SetVidpropHeight(), Scheduler::SlaveConnected(), RecordingInfo::StartedRecording(), TVRec::StartRecording(), SubstituteMatches(), RecordingSelector::titleChanged(), ToMap(), toString(), ToStringList(), RecordingSelector::updateRecordingList(), and Scheduler::UpdateRecStatus().

QDateTime ProgramInfo::endts

Definition at line 439 of file programinfo.h.

Referenced by ProgramInfoCache::Add(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), RecordingInfo::ApplyRecordPlayGroupChange(), RecordingInfo::ApplyRecordRecGroupChange(), RecordingInfo::ApplyRecordRecID(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingInfo::ApplyStorageGroupChange(), RecordingInfo::ApplyTranscoderProfileChange(), TVRec::CheckForRecGroupChange(), clear(), ClearMarkupMap(), ClearPositionMap(), clone(), commDetectorGotNewCommercialBreakList(), comp_originalAirDate(), comp_originalAirDate_rev(), comp_priority(), comp_programid(), comp_programid_rev(), comp_recordDate(), comp_recordDate_rev(), comp_recpriority2(), comp_recstart(), comp_timechannel(), CompleteJob(), PlaybackBox::CreateProgramInfoString(), CreateRecordBasename(), TV::customEvent(), StatusBox::customEvent(), ScheduleCommon::customEvent(), PlaybackBox::customEvent(), RecordingInfo::DeleteHistory(), LiveTVChain::DeleteProgram(), PlaybackBox::deleteSelected(), StatusBox::doAutoExpireList(), DoFlagCommercials(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), TV::DoQueueTranscode(), NuppelVideoPlayer::DoSkipCommercials(), JobQueue::DoTranscodeThread(), JobQueue::DoUserJobThread(), AutoExpire::ExpireRecordings(), extract_job_state(), AutoExpire::FillDBOrdered(), FillInRecordInfo(), ViewScheduled::FillList(), MythXML::FillProgramInfo(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindNextConflict(), PlaybackBox::FindProgramInUILists(), TVRec::FinishedRecording(), RecordingInfo::FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), RecordingInfo::ForgetHistory(), FromStringList(), GetAutoExpireFromRecorded(), GetBookmarkTimeStamp(), GetFilesize(), GetHeight(), GetMarkupMap(), Scheduler::GetNextLiveTVDir(), GetPlaybackURL(), GetPositionMap(), GetPreserveEpisodeFromRecorded(), GetProgramFromRecorded(), TVRec::GetProgramRingBufferForLiveTV(), GetRecordBasename(), Scheduler::GetRecStatus(), NuppelVideoPlayer::GetScreenGrabAtFrame(), GetTranscodedStatus(), GetWidth(), TV::HandleStateChange(), PlaybackBox::HandleUpdateProgramInfoEvent(), incomingCustomEvent(), init_jobs(), insert_program(), internal_play_media(), IsCommFlagged(), IsEditing(), IsInUse(), JobQueue::IsJobRunning(), EncoderLink::IsRecording(), LoadFromOldRecorded(), LoadFromRecorded(), ViewScheduled::LoadList(), ProgDetails::loadPage(), LoadProgramAtDateTime(), LoadProgramFromRecorded(), main(), MarkAsInUse(), Scheduler::MarkShowingsList(), EncoderLink::MatchesRecording(), PlaybackBox::PlaylistDelete(), print_comm_flag_output(), Scheduler::PrintList(), Scheduler::PrintRec(), TV::ProcessNetworkControlCommand(), ProgramInfo(), LiveTVChain::ProgramIsAt(), push_onto_del(), Scheduler::PutInactiveSlavesToSleep(), QueueCommFlagJob(), JobQueue::QueueRecordingJobs(), RecStatusDesc(), PlaybackBox::RemoveProgram(), PreviewGenerator::Run(), Scheduler::RunScheduler(), TVRec::RunTV(), Scheduler::SchedNewRecords(), TV::ScreenShot(), SendAddedEvent(), SendDeletedEvent(), SendMythSystemPlayEvent(), SendMythSystemRecEvent(), SendUpdateEvent(), SetAspectChange(), SetAutoExpire(), SetBookmark(), SetCommFlagged(), SetCutList(), SetDeleteFlag(), SetEditing(), SetFilesize(), SetMarkupMap(), SetPositionMap(), SetPositionMapDelta(), SetPreserveEpisode(), LiveTVChain::SetProgram(), PlayerContext::SetPseudoLiveTV(), SetRecordBasename(), SetResolution(), SetTranscoded(), NuppelVideoPlayer::SetWatched(), SetWatchedFlag(), PlaybackBox::showJobPopup(), ScheduleCommon::ShowNotRecordingDialog(), PlaybackBox::showPlaylistJobPopup(), ScheduleCommon::ShowRecordingDialog(), ViewScheduleDiff::showStatus(), Scheduler::ShutdownServer(), RecordingInfo::StartedRecording(), TVRec::StartRecording(), EncoderLink::StartRecording(), TV::StartTV(), PlaybackBox::stopPlaylistJobQueueJob(), SubstituteMatches(), TVRec::TeardownRecorder(), ToMap(), toString(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), ProgramInfoCache::Update(), UpdateLastDelete(), Scheduler::UpdateNextRecord(), UpdateRecGroup(), RecordingInfo::UpdateRecordingEnd(), PlaybackBox::UpdateUIListItem(), and EncoderLink::WouldConflict().

Definition at line 440 of file programinfo.h.

Referenced by Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), Scheduler::ChangeRecordingEnd(), clear(), clone(), comp_recstart(), ProgramRecPriority::countMatches(), PlaybackBox::CreateProgramInfoString(), MainServer::customEvent(), StatusBox::doAutoExpireList(), DoFlagCommercials(), MainServer::DoHandleDeleteRecording(), AutoExpire::FillDBOrdered(), FillInRecordInfo(), MythXML::FillProgramInfo(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), RecordingInfo::FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), FromStringList(), Scheduler::GetNextLiveTVDir(), TVRec::GetProgramRingBufferForLiveTV(), TVRec::GetRecordEndTime(), TVRec::HandlePendingRecordings(), MainServer::HandleQueryRecordings(), insert_program(), internal_play_media(), LoadFromOldRecorded(), LoadFromRecorded(), ViewScheduled::LoadList(), LoadProgramAtDateTime(), LoadProgramFromRecorded(), main(), Scheduler::PrintList(), Scheduler::PrintRec(), ProgramInfo(), Scheduler::PruneRedundants(), PlayerContext::SetInitialTVState(), TVRec::SetLiveRecording(), PlayerContext::SetPseudoLiveTV(), NuppelVideoPlayer::SetWatched(), ScheduleCommon::ShowNotRecordingDialog(), ScheduleCommon::ShowRecordingDialog(), ViewScheduleDiff::showStatus(), TVRec::StartRecording(), EncoderLink::StartRecording(), SubstituteMatches(), ToMap(), toString(), ToStringList(), TVRec::TuningRestartRecorder(), RecordingInfo::UpdateRecordingEnd(), and Scheduler::UpdateRecStatus().

Definition at line 445 of file programinfo.h.

Referenced by CalculateLength(), clear(), clone(), internal_play_media(), and ToMap().

Definition at line 452 of file programinfo.h.

Referenced by clear(), clone(), MarkAsInUse(), and UpdateInUseMark().

Definition at line 460 of file programinfo.h.

Referenced by RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), Scheduler::BackupRecStatus(), Scheduler::BuildListMaps(), Scheduler::BuildWorkList(), Scheduler::ChangeRecordingEnd(), clear(), clone(), comp_overlap(), comp_priority(), comp_recstart(), comp_redundant(), ProgramRecPriority::countMatches(), ScheduleCommon::customEvent(), PlaybackBox::customEvent(), MainServer::customEvent(), ProgramRecPriority::deactivate(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), StatusBox::doScheduleStatus(), ScheduleCommon::EditRecording(), PBHEventHandler::event(), extract_job_state(), extract_main_state(), FillInRecordInfo(), ViewScheduleDiff::fillList(), ViewScheduled::FillList(), ProgramRecPriority::FillList(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::FillRecordingDir(), TVRec::FinishedRecording(), RecordingInfo::FinishedRecording(), FromStringList(), Scheduler::getAllPending(), TVRec::GetRecording(), Scheduler::GetRecStatus(), LoadFromOldRecorded(), LoadFromRecorded(), ViewScheduled::LoadList(), ProgDetails::loadPage(), LoadProgramFromRecorded(), Scheduler::MarkShowingsList(), Scheduler::MoveHigherRecords(), TVRec::NotifySchedulerOfRecording(), plTitleSort::operator()(), ProgramInfo(), Scheduler::PruneRedundants(), Scheduler::PutInactiveSlavesToSleep(), Recording(), RecStatusChar(), RecStatusDesc(), RecStatusText(), RemoteGetCurrentlyRecordingList(), Scheduler::RestoreRecStatus(), Scheduler::RunScheduler(), TVRec::RunTV(), Scheduler::SchedNewRecords(), Scheduler::SchedPreserveLiveTV(), ProgramRecPriority::scheduleChanged(), TVRec::SetLiveRecording(), PlaybackBox::ShowActionPopup(), ScheduleCommon::ShowNotRecordingDialog(), ScheduleCommon::ShowRecordingDialog(), ViewScheduleDiff::showStatus(), Scheduler::SlaveConnected(), Scheduler::SlaveDisconnected(), TVRec::StartRecording(), TV::StartTV(), RecordingInfo::SubstituteMatches(), ToMap(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningFrequency(), ProgLister::updateButtonList(), ProgramRecPriority::updateInfo(), ProgramRecPriority::UpdateList(), Scheduler::UpdateNextRecord(), Scheduler::UpdateRecStatus(), and ViewScheduleDiff::updateUIList().

Definition at line 463 of file programinfo.h.

Referenced by clear(), and clone().

Definition at line 467 of file programinfo.h.

Referenced by RecordingInfo::AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), Scheduler::BuildListMaps(), Scheduler::ChangeRecordingEnd(), clear(), clone(), comp_overlap(), comp_priority(), comp_redundant(), ProgramRecPriority::countMatches(), ProgramRecPriority::deactivate(), RecordingInfo::DeleteHistory(), ProgLister::deleteRule(), GuideGrid::deleteRule(), ProgramRecPriority::edit(), ScheduleCommon::EditRecording(), FillInRecordInfo(), ProgramRecPriority::FillList(), MythXML::FillProgramInfo(), Scheduler::findAllScheduledPrograms(), RecordingInfo::ForgetHistory(), FromStringList(), RecordingInfo::getRecordID(), insert_program(), IsSameProgram(), RecordingRule::LoadByProgram(), CustomEdit::loadData(), LoadFromOldRecorded(), LoadFromRecorded(), ViewScheduled::LoadList(), ProgDetails::loadPage(), LoadProgramFromRecorded(), ScheduleCommon::MakeOverride(), Scheduler::MarkOtherShowings(), programRecTypeSort::operator()(), programRecPrioritySort::operator()(), titleSort::operator()(), ProgramInfo(), Scheduler::PruneOverlaps(), Scheduler::PruneRedundants(), ProgramRecPriority::remove(), Scheduler::RunScheduler(), ProgramRecPriority::saveRecPriority(), ProgramRecPriority::scheduleChanged(), ScheduleEditor::ScheduleEditor(), ProgLister::ShowMenu(), GuideGrid::showMenu(), TVRec::StartRecording(), ToStringList(), Scheduler::TryAnotherShowing(), ProgramRecPriority::upcoming(), ProgramRecPriority::updateInfo(), UpdateLastDelete(), ProgramRecPriority::UpdateList(), Scheduler::UpdateNextRecord(), PlaybackBox::UpdateUILists(), and UsesMaxEpisodes().

Definition at line 476 of file programinfo.h.

Referenced by Scheduler::AddNewRecords(), clear(), clone(), FromStringList(), and ToStringList().

Definition at line 496 of file programinfo.h.

Referenced by clear(), clone(), GetBookmark(), and GetDVDBookmark().

QString ProgramInfo::inUseForWhat [protected]

Definition at line 498 of file programinfo.h.

Referenced by clear(), clone(), MarkAsInUse(), and UpdateInUseMark().

QMutex ProgramInfo::staticDataLock [static, protected]

Definition at line 501 of file programinfo.h.

Referenced by LoadProgramAtDateTime(), and ProgramInfo().

QString ProgramInfo::unknownTitle [static, protected]

Definition at line 502 of file programinfo.h.

Referenced by LoadProgramAtDateTime().


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

Generated on Sun Jan 31 18:23:08 2010 for MythTV by  doxygen 1.5.9