ProgramInfo Class Reference

#include <programinfo.h>

Inheritance diagram for ProgramInfo:

ProgramRecPriorityInfo

List of all members.


Detailed Description

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

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 151 of file programinfo.h.


Public Member Functions

 ProgramInfo (void)
 Null constructor.
 ProgramInfo (const ProgramInfo &other)
 Copy constructor.
ProgramInfooperator= (const ProgramInfo &other)
 Copies important fields from other ProgramInfo.
ProgramInfoclone (const ProgramInfo &other)
 Copies important fields from other ProgramInfo.
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.
 ~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.
void ToMap (QMap< QString, QString > &progMap, bool showrerecord=false) const
 Converts ProgramInfo into QString QMap containing each field in ProgramInfo converted into localized strings.
int IsProgramRecurring (void) const
 Returns 0 if program is not recurring, 1 if recurring daily on weekdays, 2 if recurring weekly, and -1 when there is insufficient data.
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.
ScheduledRecordingGetScheduledRecording (void)
 Returns the "record" field, creating it if necessary.
int getRecordID (void)
 Returns a record id, creating "record" it if necessary.
int GetAutoRunJobs (void) const
 Returns a bitmap of which jobs are attached to this ProgramInfo.
RecordingType GetProgramRecordingStatus (void)
 Returns the recording type for this ProgramInfo, creating "record" field if necessary.
QString GetProgramRecordingProfile (void)
 Returns recording profile name that will be, or was used, for this program, creating "record" field if necessary.
void ApplyRecordStateChange (RecordingType newstate)
 Sets RecordingType of "record", creating "record" if it does not exist.
void ApplyRecordRecPriorityChange (int)
 Sets recording priority of "record", creating "record" if it does not exist.
void ToggleRecord (void)
 Cycles through recording types.
void ReactivateRecording (void)
 Asks the scheduler to restart this recording if possible.
void AddHistory (bool resched=true, bool forcedup=false)
 Adds recording history, creating "record" it if necessary.
void DeleteHistory (void)
 Deletes recording history, creating "record" it if necessary.
void ForgetHistory (void)
 Forget the recording of a program so it will be recorded again.
void SetDupHistory (void)
 Set the duplicate flag in oldrecorded.
void StartedRecording (QString ext)
 Inserts this ProgramInfo into the database as an existing recording.
void FinishedRecording (bool prematurestop)
 If not a premature stop, adds program to history of recorded programs.
void UpdateRecordingEnd (void)
 Update information in the recorded table when the end-time of a recording is changed.
void ApplyRecordRecID (void)
 Sets recordid to match ScheduledRecording recordid.
void ApplyRecordRecGroupChange (const QString &newrecgroup)
 Sets the recording group, both in this ProgramInfo and in the database.
void ApplyRecordPlayGroupChange (const QString &newrecgroup)
 Sets the recording group, both in this ProgramInfo and in the database.
void ApplyRecordRecTitleChange (const QString &newTitle, const QString &newSubtitle)
 Sets the recording title and subtitle, both in this ProgramInfo and in the database.
void ApplyTranscoderProfileChange (QString)
bool SetRecordBasename (QString basename)
 Sets a recording's basename in the database.
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)
 Returns filename or URL to be used to play back this recording.
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 () 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 PathnameExists (void)
void setIgnoreBookmark (bool ignore)
 If "ignore" is true GetBookmark() will return 0, otherwise GetBookmark() will return the bookmark position if it exists.
long long GetFilesize (void)
 Gets recording file size from database, and sets "filesize" field.
int GetMplexID (void) const
 Gets multiplex any recording would be made on, zero if unknown.
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.
int getProgramFlags (void) const
 Returns a bitmap of the recorded programmes flags.
void getProgramProperties (void)
bool GetChannel (QString &channum, QString &input) const
 Returns the channel and input needed to record the program.
QString GetFileName (void) const
QString toString (void) const
void SetFilesize (long long fsize)
 Sets recording file size in database, and sets "filesize" field.
void SetBookmark (long long pos) const
 Sets a bookmark position in database.
void SetDVDBookmark (QStringList fields) const
void SetEditing (bool edit) const
 Sets "editing" field in "recorded" table to "edit".
void SetTranscoded (int transFlag) const
 Set "transcoded" field in "recorded" table to "transFlag".
void SetWatchedFlag (bool watchedFlag) const
 Set "watched" field in "recorded" table to "watchedFlag".
void SetDeleteFlag (bool deleteFlag) const
 Set "deletepending" field in "recorded" table to "deleteFlag".
void SetCommFlagged (int flag) const
 Set "commflagged" field in "recorded" table to "flag".
void SetAutoExpire (int autoExpire, bool updateDelete=false) const
 Set "autoexpire" field in "recorded" table to "autoExpire".
void SetPreserveEpisode (bool preserveEpisode) const
 Set "preserve" field in "recorded" table to "preserveEpisode".
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 &) const
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 showDetails (void) const
 Pops up a DialogBox with program info, blocking until user exits the dialog.
void EditRecording (void)
 Creates a dialog for editing the recording status, blocking until user leaves dialog.
void EditScheduled (void)
 Creates a dialog for editing the recording status, blocking until user leaves dialog.
void MarkAsInUse (bool inuse, QString usedFor="")
void UpdateRecGroup (void)
 Update Rec Group if its changed by a different programinfo instance.

Static Public Member Functions

static ProgramInfoGetProgramAtDateTime (const QString &channel, const QDateTime &dtime, bool genUnknown=false, int clampHoursMax=0)
 Returns a new ProgramInfo for the program that air at "dtime" on "channel".
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 GetChannelRecPriority (const QString &channel)
 Returns Recording Priority of channel.
static int GetRecordingTypeRecPriority (RecordingType type)
 Returns recording priority change needed due to RecordingType.
static QString GetRecGroupPassword (QString group)

Public Attributes

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

Private Member Functions

bool IsFindApplicable (void) const
 Returns true if a search should be employed to find a matcing program.
void ShowRecordingDialog (void)
void ShowNotRecordingDialog (void)
QString CreateRecordBasename (const QString &ext) const
 Returns a filename for a recording based on the recording channel and date.

Private Attributes

bool ignoreBookmark
class ScheduledRecordingrecord
QMutex regExpLock
QRegExp regExpSeries
QString inUseForWhat

Constructor & Destructor Documentation

ProgramInfo::ProgramInfo ( void   ) 

Null constructor.

Definition at line 73 of file programinfo.cpp.

ProgramInfo::ProgramInfo ( const ProgramInfo other  ) 

Copy constructor.

Definition at line 152 of file programinfo.cpp.

ProgramInfo::~ProgramInfo (  ) 

Destructor deletes "record" if it exists.

Definition at line 257 of file programinfo.cpp.


Member Function Documentation

ProgramInfo * ProgramInfo::GetProgramAtDateTime ( const QString &  channel,
const QDateTime &  dtime,
bool  genUnknown = false,
int  clampHoursMax = 0 
) [static]

Returns a new ProgramInfo for the program that air at "dtime" on "channel".

Parameters:
channel 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:
Pointer to a ProgramInfo from database if it succeeds, Pointer to an "Unknown" ProgramInfo if it does not find anything in database.

Definition at line 698 of file programinfo.cpp.

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

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 822 of file programinfo.cpp.

Referenced by 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 847 of file programinfo.cpp.

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

Copies important fields from other ProgramInfo.

Reimplemented in ProgramRecPriorityInfo.

Definition at line 161 of file programinfo.cpp.

ProgramInfo & ProgramInfo::clone ( const ProgramInfo other  ) 

Copies important fields from other ProgramInfo.

Definition at line 169 of file programinfo.cpp.

Referenced by operator=(), and ProgramInfo().

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 360 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 3360 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 3400 of file programinfo.cpp.

Referenced by ManualBox::startClicked().

void ProgramInfo::ToStringList ( QStringList &  list  )  const

void ProgramInfo::ToMap ( QMap< QString, QString > &  progMap,
bool  showrerecord = false 
) const

int ProgramInfo::IsProgramRecurring ( void   )  const

Returns 0 if program is not recurring, 1 if recurring daily on weekdays, 2 if recurring weekly, and -1 when there is insufficient data.

Definition at line 959 of file programinfo.cpp.

Referenced by InfoDialog::InfoDialog().

bool ProgramInfo::IsSameProgram ( const ProgramInfo other  )  const

Checks for duplicates according to dupmethod.

Parameters:
other ProgramInfo to compare this one with.

Definition at line 1390 of file programinfo.cpp.

Referenced by TV::IsSameProgram(), Scheduler::IsSameProgram(), and PlaybackBox::showDeletePopup().

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 1443 of file programinfo.cpp.

Referenced by Scheduler::AddNewRecords(), Scheduler::ChangeRecordingEnd(), FillInRecordInfo(), ProgramList::FromProgram(), Scheduler::MarkShowingsList(), 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 1461 of file programinfo.cpp.

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

int ProgramInfo::GetChannelRecPriority ( const QString &  channel  )  [static]

Returns Recording Priority of channel.

Parameters:
channel Channel ID of channel whose priority we desire.

Definition at line 1055 of file programinfo.cpp.

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

Returns recording priority change needed due to RecordingType.

Definition at line 1073 of file programinfo.cpp.

Referenced by Scheduler::AddNewRecords().

ScheduledRecording * ProgramInfo::GetScheduledRecording ( void   ) 

Returns the "record" field, creating it if necessary.

Definition at line 1370 of file programinfo.cpp.

Referenced by Scheduler::AddRecording(), load_profile(), TVRec::NotifySchedulerOfRecording(), and TVRec::TuningRestartRecorder().

int ProgramInfo::getRecordID ( void   ) 

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

Definition at line 1379 of file programinfo.cpp.

Referenced by ApplyRecordRecID(), and ProgramRecPriority::edit().

int ProgramInfo::GetAutoRunJobs ( void   )  const

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

See also:
JobTypes, getProgramFlags()

Definition at line 1040 of file programinfo.cpp.

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

RecordingType ProgramInfo::GetProgramRecordingStatus ( void   ) 

QString ProgramInfo::GetProgramRecordingProfile ( void   ) 

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

See also:
ScheduledRecording

Definition at line 1025 of file programinfo.cpp.

Referenced by MythXML::FillProgramInfo().

void ProgramInfo::ApplyRecordStateChange ( RecordingType  newstate  ) 

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

Parameters:
newstate State to apply to "record" RecordingType.

Definition at line 1134 of file programinfo.cpp.

Referenced by InfoDialog::selected(), ShowNotRecordingDialog(), ShowRecordingDialog(), ManualBox::startClicked(), and ToggleRecord().

void ProgramInfo::ApplyRecordRecPriorityChange ( int  newrecpriority  ) 

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

Parameters:
newrecpriority New recording priority.

Definition at line 1148 of file programinfo.cpp.

Referenced by ProgramRecPriority::saveRecPriority().

void ProgramInfo::ToggleRecord ( void   ) 

Cycles through recording types.

If the program recording status is kNotRecording, ApplyRecordStateChange(kSingleRecord) is called. If the program recording status is kSingleRecording, ApplyRecordStateChange(kFindOneRecord) is called.
etc...

The states in order are: kNotRecording, kSingleRecord, kFindOneRecord, kWeekslotRecord, kFindWeeklyRecord, kTimeslotRecord, kFindDailyRecord, kChannelRecord, kAllRecord.
And: kOverrideRecord, kDontRecord.

That is if you the recording is in any of the first set of states, we cycle through those, if not we toggle between kOverrideRecord and kDontRecord.

Definition at line 1299 of file programinfo.cpp.

Referenced by ProgFinder::getInfo(), ProgLister::quickRecord(), GuideGrid::quickRecord(), and TV::ToggleRecord().

void ProgramInfo::ReactivateRecording ( void   ) 

Asks the scheduler to restart this recording if possible.

Definition at line 2831 of file programinfo.cpp.

Referenced by ShowNotRecordingDialog(), and ShowRecordingDialog().

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

void ProgramInfo::DeleteHistory ( void   ) 

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

Definition at line 2913 of file programinfo.cpp.

void ProgramInfo::ForgetHistory ( void   ) 

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

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

Definition at line 2952 of file programinfo.cpp.

Referenced by MainServer::customEvent(), PlaybackBox::doAllowRerecord(), MainServer::HandleForgetRecording(), PreviousList::removalDialog(), and ShowNotRecordingDialog().

void ProgramInfo::SetDupHistory ( void   ) 

Set the duplicate flag in oldrecorded.

Definition at line 3013 of file programinfo.cpp.

Referenced by PreviousList::removalDialog().

void ProgramInfo::StartedRecording ( QString  ext  ) 

Inserts this ProgramInfo into the database as an existing recording.

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

Parameters:
ext File extension for recording

Definition at line 1618 of file programinfo.cpp.

Referenced by TVRec::StartedRecording().

void ProgramInfo::FinishedRecording ( bool  prematurestop  ) 

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

Parameters:
prematurestop If true, we only fetch the recording status.

Definition at line 1819 of file programinfo.cpp.

Referenced by TVRec::FinishedRecording().

void ProgramInfo::UpdateRecordingEnd ( void   ) 

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

Definition at line 1844 of file programinfo.cpp.

Referenced by TVRec::StartRecording().

void ProgramInfo::ApplyRecordRecID ( void   ) 

Sets recordid to match ScheduledRecording recordid.

Definition at line 1102 of file programinfo.cpp.

Referenced by TVRec::NotifySchedulerOfRecording().

void ProgramInfo::ApplyRecordRecGroupChange ( const QString &  newrecgroup  ) 

void ProgramInfo::ApplyRecordPlayGroupChange ( const QString &  newplaygroup  ) 

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

Parameters:
newplaygroup New recording group.

Definition at line 1183 of file programinfo.cpp.

Referenced by PlaybackBox::setPlayGroup().

void ProgramInfo::ApplyRecordRecTitleChange ( const QString &  newTitle,
const QString &  newSubtitle 
)

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

Parameters:
newTitle New recording title.
newSubtitle New recording subtitle

Definition at line 1207 of file programinfo.cpp.

Referenced by PlaybackBox::setRecTitle().

void ProgramInfo::ApplyTranscoderProfileChange ( QString  profile  ) 

bool ProgramInfo::SetRecordBasename ( QString  basename  ) 

Sets a recording's basename in the database.

Definition at line 1491 of file programinfo.cpp.

Referenced by CompleteJob().

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

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

Definition at line 1515 of file programinfo.cpp.

Referenced by CompleteJob(), JobQueue::GetJobCommand(), GetPlaybackURL(), NuppelVideoPlayer::GetScreenGrabAtFrame(), MainServer::HandleFillProgramInfo(), NuppelVideoPlayer::OpenFile(), and showDetails().

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

QString ProgramInfo::MakeUniqueKey ( void   )  const

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

Definition at line 269 of file programinfo.cpp.

Referenced by TV::AskAllowRecording(), PlaybackBox::doRemove(), PlaybackBox::FillList(), PlaybackBox::showActionPopup(), PlaybackBox::togglePlayListItem(), and PlaybackBox::updateShowTitles().

int ProgramInfo::CalculateLength ( void   )  const

Returns length of program/recording in seconds.

Definition at line 670 of file programinfo.cpp.

Referenced by TV::Playback().

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 682 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 approriate 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 3346 of file programinfo.cpp.

Referenced by ManualSchedule::recordClicked(), ToMap(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), ProgLister::updateList(), and PreviousList::updateList().

QString ProgramInfo::RecTypeChar ( void   )  const

Converts "rectype" into a human readable character.

Definition at line 3040 of file programinfo.cpp.

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

QString ProgramInfo::RecTypeText ( void   )  const

Converts "rectype" into a human readable description.

Definition at line 3072 of file programinfo.cpp.

Referenced by ViewScheduled::remove(), ProgramRecPriority::remove(), ProgLister::remove(), GuideGrid::remove(), showDetails(), and ToMap().

QString ProgramInfo::RecStatusChar ( void   )  const

Converts "recstatus" into a human readable character.

Definition at line 3103 of file programinfo.cpp.

Referenced by Scheduler::PrintRec(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), ProgLister::updateList(), and PreviousList::updateList().

QString ProgramInfo::RecStatusText ( void   )  const

Converts "recstatus" into a short human readable description.

Definition at line 3162 of file programinfo.cpp.

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

QString ProgramInfo::RecStatusDesc ( void   )  const

Converts "recstatus" into a long human readable description.

Definition at line 3225 of file programinfo.cpp.

Referenced by ShowNotRecordingDialog(), ShowRecordingDialog(), and ViewScheduleDiff::statusDialog().

void ProgramInfo::UpdateInUseMark ( bool  force = false  ) 

bool ProgramInfo::PathnameExists ( void   ) 

Definition at line 4043 of file programinfo.cpp.

Referenced by PlaybackBox::fileExists(), and TV::RunTV().

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 238 of file programinfo.h.

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

long long ProgramInfo::GetFilesize ( void   ) 

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

Definition at line 1885 of file programinfo.cpp.

Referenced by PlaybackBox::play().

int ProgramInfo::GetMplexID ( void   )  const

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

Definition at line 1909 of file programinfo.cpp.

Referenced by Scheduler::FindNextConflict().

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 1970 of file programinfo.cpp.

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

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 1995 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 2102 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::EnableEdit(), PlaybackBox::getPixmap(), 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 2170 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 2194 of file programinfo.cpp.

Referenced by PlaybackBox::showAvailablePopup().

int ProgramInfo::GetAutoExpireFromRecorded ( void   )  const

int ProgramInfo::GetTranscodedStatus ( void   )  const

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

Definition at line 2242 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::SetWatched().

bool ProgramInfo::GetPreserveEpisodeFromRecorded ( void   )  const

Returns "preserve" field from "recorded" table.

Definition at line 2406 of file programinfo.cpp.

Referenced by PlaybackBox::showStoragePopup().

bool ProgramInfo::UsesMaxEpisodes ( void   )  const

Returns "maxepisodes" field from "record" table.

Definition at line 2428 of file programinfo.cpp.

int ProgramInfo::getProgramFlags ( void   )  const

Returns a bitmap of the recorded programmes flags.

See also:
GetAutoRunJobs(void)

Definition at line 3975 of file programinfo.cpp.

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

void ProgramInfo::getProgramProperties ( void   ) 

Definition at line 4007 of file programinfo.cpp.

Referenced by GetProgramFromRecorded().

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 4207 of file programinfo.cpp.

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

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

QString ProgramInfo::toString ( void   )  const

Definition at line 807 of file programinfo.cpp.

Referenced by TVRec::GetProgramRingBufferForLiveTV(), and TVRec::RunTV().

void ProgramInfo::SetFilesize ( long long  fsize  ) 

void ProgramInfo::SetBookmark ( long long  pos  )  const

void ProgramInfo::SetDVDBookmark ( QStringList  fields  )  const

Definition at line 2030 of file programinfo.cpp.

Referenced by NuppelVideoPlayer::SetDVDBookmark().

void ProgramInfo::SetEditing ( bool  edit  )  const

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

Parameters:
edit Editing state to set.

Definition at line 2125 of file programinfo.cpp.

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

void ProgramInfo::SetTranscoded ( int  transFlag  )  const

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

Parameters:
transFlag value to set transcoded field to.

Definition at line 2265 of file programinfo.cpp.

Referenced by JobQueue::DoTranscodeThread().

void ProgramInfo::SetWatchedFlag ( bool  watchedFlag  )  const

Set "watched" field in "recorded" table to "watchedFlag".

Parameters:
watchedFlag value to set watched field to.

Definition at line 2071 of file programinfo.cpp.

Referenced by PlaybackBox::setUnwatched(), PlaybackBox::setWatched(), and NuppelVideoPlayer::SetWatched().

void ProgramInfo::SetDeleteFlag ( bool  deleteFlag  )  const

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

Parameters:
deleteFlag value to set delete pending field to.

Definition at line 2146 of file programinfo.cpp.

Referenced by MainServer::DoDeleteThread(), and MainServer::DoHandleDeleteRecording().

void ProgramInfo::SetCommFlagged ( int  flag  )  const

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

Parameters:
flag value to set commercial flagging field to.

Definition at line 2286 of file programinfo.cpp.

Referenced by CompleteJob(), DoFlagCommercials(), ProgramList::FromRecorded(), MainServer::HandleQueryRecordings(), and TVRec::StartedRecording().

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

void ProgramInfo::SetPreserveEpisode ( bool  preserveEpisode  )  const

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

Parameters:
preserveEpisode value to set preserve field to.

Definition at line 2307 of file programinfo.cpp.

Referenced by PlaybackBox::togglePreserveEpisode().

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 2351 of file programinfo.cpp.

Referenced by MainServer::DoHandleDeleteRecording(), MainServer::DoHandleUndeleteRecording(), PlaybackBox::doRemove(), SetAutoExpire(), SetPreserveEpisode(), SetWatchedFlag(), and TV::StartTV().

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  )  const

void ProgramInfo::SetCommBreakList ( frm_dir_map_t frames  )  const

Definition at line 2476 of file programinfo.cpp.

Referenced by DoFlagCommercials().

bool ProgramInfo::CheckMarkupFlag ( int  type  )  const

Definition at line 2631 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 2596 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 2534 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 2489 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 2653 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 2711 of file programinfo.cpp.

Referenced by DecoderBase::SetPositionMap(), and UpdatePositionMap().

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

Definition at line 2790 of file programinfo.cpp.

Referenced by RecorderBase::SavePositionMap().

void ProgramInfo::showDetails ( void   )  const

void ProgramInfo::EditRecording ( void   ) 

Creates a dialog for editing the recording status, blocking until user leaves dialog.

Definition at line 3439 of file programinfo.cpp.

Referenced by GuideGrid::editRecording(), ProgFinder::getInfo(), ProgLister::select(), and ViewScheduled::selected().

void ProgramInfo::EditScheduled ( void   ) 

Creates a dialog for editing the recording status, blocking until user leaves dialog.

Definition at line 3453 of file programinfo.cpp.

Referenced by ViewScheduled::edit(), ViewScheduleDiff::edit(), ProgLister::edit(), PreviousList::edit(), EditRecording(), and GuideGrid::editScheduled().

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

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

void ProgramInfo::UpdateRecGroup ( void   ) 

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

Definition at line 4081 of file programinfo.cpp.

Referenced by TV::PromptRecGroupPassword().

bool ProgramInfo::IsFindApplicable ( void   )  const [private]

Returns true if a search should be employed to find a matcing program.

Definition at line 949 of file programinfo.cpp.

Referenced by ShowNotRecordingDialog(), and ShowRecordingDialog().

void ProgramInfo::ShowRecordingDialog ( void   )  [private]

Definition at line 4235 of file programinfo.cpp.

Referenced by EditRecording().

void ProgramInfo::ShowNotRecordingDialog ( void   )  [private]

Definition at line 4381 of file programinfo.cpp.

Referenced by EditRecording().

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

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

Definition at line 1478 of file programinfo.cpp.

Referenced by StartedRecording().


Member Data Documentation

Definition at line 318 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), ApplyRecordRecTitleChange(), TV::AskAllowRecording(), Scheduler::BuildListMaps(), clone(), comp_overlap(), comp_redundant(), CustomEdit::CustomEdit(), ProgFinder::customEvent(), CustomPriority::CustomPriority(), DeleteHistory(), GuideGrid::details(), StatusBox::doAutoExpireList(), TV::DoDisplayJumpMenu(), DoFlagCommercials(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), StatusBox::doJobQueueStatus(), ScheduledRecording::doneRecording(), JobQueue::DoTranscodeThread(), StatusBox::doTunerStatus(), JobQueue::DoUserJobThread(), GuideGrid::editRecording(), GuideGrid::editScheduled(), AutoExpire::ExpireRecordings(), AutoExpire::FillDBOrdered(), ProgLister::fillItemList(), PreviousList::fillItemList(), ProgramRecPriority::FillList(), PlaybackBox::FillList(), TV::FillMenuLiveTV(), TV::FillMenuPlaying(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindConflict(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), FlagCommercials(), ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), ProgFinder::getInfo(), PlayGroup::GetInitialName(), JobQueue::GetJobCommand(), Scheduler::GetNextLiveTVDir(), GetProgramAtDateTime(), GetProgramFromRecorded(), RecordingSelector::getRecordingList(), MainServer::HandleGenPreviewPixmap(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryRecordings(), PlaybackBox::initPopup(), insert_program(), internal_play_media(), IsProgramRecurring(), IsSameProgram(), IsSameProgramTimeslot(), IsSameTimeslot(), ProgFinder::keyPressEvent(), GuideGrid::keyPressEvent(), Scheduler::MarkOtherShowings(), InfoDialog::numberPress(), RecordingSelector::OKPressed(), ProgramRecPriorityInfo::operator=(), TV::Playback(), AutoExpire::PrintExpireList(), Scheduler::PrintRec(), ProgramInfo(), GuideGrid::quickRecord(), ReactivateRecording(), ManualSchedule::recordClicked(), RemoteGetRecordingStatus(), PreviousList::removalDialog(), Scheduler::RunScheduler(), ScheduledRecording::runTitleList(), TV::RunTV(), Save(), SetDupHistory(), SetDVDBookmark(), TV::SetJumpToProgram(), ScheduledRecording::setProgram(), TV::SetPseudoLiveTV(), RecorderBase::SetRecording(), setScheduledWakeupTime(), PlaybackBox::showAvailablePopup(), showDetails(), TV::ShowLCDChannelInfo(), ShowNotRecordingDialog(), ProgFinder::showProgramList(), ShowRecordingDialog(), PlaybackBox::showRecTitleChanger(), ProgFinder::showSearchList(), Scheduler::SlaveConnected(), Scheduler::SlaveDisconnected(), ManualBox::startClicked(), StartedRecording(), TVRec::StartRecording(), TV::StartTV(), ViewScheduleDiff::statusDialog(), RecordingSelector::titleChanged(), TV::ToggleOSD(), TV::ToggleRecord(), ToMap(), toString(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), ViewScheduled::upcoming(), ViewScheduleDiff::upcoming(), ProgramRecPriority::upcoming(), ProgLister::upcoming(), ProgFinder::upcoming(), PreviousList::upcoming(), PlaybackBox::upcoming(), GuideGrid::upcoming(), ProgramRecPriority::updateInfo(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), ProgramRecPriority::updateList(), ProgLister::updateList(), PreviousList::updateList(), RecordingSelector::updateRecordingList(), WelcomeDialog::updateScheduledList(), and PlaybackBox::updateShowTitles().

Definition at line 319 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), ApplyRecordRecTitleChange(), clone(), CustomEdit::CustomEdit(), StatusBox::doAutoExpireList(), TV::DoDisplayJumpMenu(), JobQueue::DoFlagCommercialsThread(), ScheduledRecording::doneRecording(), JobQueue::DoTranscodeThread(), StatusBox::doTunerStatus(), AutoExpire::FillDBOrdered(), ProgLister::fillItemList(), MythXML::FillProgramInfo(), Scheduler::findAllScheduledPrograms(), ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), JobQueue::GetJobCommand(), GetProgramAtDateTime(), GetProgramFromRecorded(), MainServer::HandleGenPreviewPixmap(), MainServer::HandlePixmapLastModified(), MainServer::HandleQueryRecordings(), PlaybackBox::initPopup(), insert_program(), internal_play_media(), IsSameProgram(), RecordingSelector::OKPressed(), ProgramRecPriorityInfo::operator=(), TV::Playback(), AutoExpire::PrintExpireList(), Scheduler::PrintRec(), ProgramInfo(), RemoteGetRecordingStatus(), PreviousList::removalDialog(), Scheduler::RunScheduler(), Save(), SetDupHistory(), TV::SetJumpToProgram(), ScheduledRecording::setProgram(), setScheduledWakeupTime(), PlaybackBox::showAvailablePopup(), showDetails(), TV::ShowLCDChannelInfo(), ShowNotRecordingDialog(), ShowRecordingDialog(), PlaybackBox::showRecTitleChanger(), ManualBox::startClicked(), ViewScheduleDiff::statusDialog(), RecordingSelector::titleChanged(), ToMap(), ToStringList(), ProgramRecPriority::updateInfo(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), ProgramRecPriority::updateList(), ProgLister::updateList(), PreviousList::updateList(), WelcomeDialog::updateScheduledList(), and PlaybackBox::updateShowTitles().

Definition at line 323 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), ApplyRecordPlayGroupChange(), ApplyRecordRecGroupChange(), ApplyRecordRecID(), ApplyRecordRecTitleChange(), ApplyTranscoderProfileChange(), TV::BrowseStart(), TVRec::CheckForRecGroupChange(), ClearMarkupMap(), ClearPositionMap(), clone(), commDetectorGotNewCommercialBreakList(), comp_overlap(), comp_timechannel(), CompleteJob(), CreateRecordBasename(), TV::customEvent(), PreviousList::deleteItem(), LiveTVChain::DeleteProgram(), TV::doEditSchedule(), DoFlagCommercials(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), PlaybackBox::doJobQueueJob(), ScheduledRecording::doneRecording(), PlaybackBox::doPlaylistJobQueueJob(), TV::DoQueueTranscode(), NuppelVideoPlayer::DoSkipCommercials(), JobQueue::DoUserJobThread(), AutoExpire::ExpireRecordings(), MythXML::FillChannelInfo(), AutoExpire::FillDBOrdered(), PlaybackBox::FillList(), TV::FillMenuPlaying(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), PlaybackBox::findMatchingProg(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), GetAutoExpireFromRecorded(), GetChannel(), GetFilesize(), JobQueue::GetJobCommand(), JobQueue::GetJobQueueKey(), GetMarkupMap(), GetMplexID(), PlaybackBox::getPixmap(), GetPlaybackURL(), GetPositionMap(), GetPreserveEpisodeFromRecorded(), GetProgramAtDateTime(), getProgramFlags(), GetProgramFromRecorded(), MythXML::GetProgramGuide(), getProgramProperties(), TVRec::GetProgramRingBufferForLiveTV(), GetRecordBasename(), NuppelVideoPlayer::GetScreenGrabAtFrame(), GetTranscodedStatus(), MainServer::HandleQueryRecordings(), TV::HandleStateChange(), incomingCustomEvent(), init_jobs(), insert_program(), IsCommFlagged(), IsEditing(), IsInUse(), JobQueue::IsJobRunning(), IsProgramRecurring(), EncoderLink::IsRecording(), IsSameProgramTimeslot(), IsSameTimeslot(), TV::ITVRestart(), MakeUniqueKey(), MarkAsInUse(), EncoderLink::MatchesRecording(), plTimeSort::operator()(), ProgramRecPriorityInfo::operator=(), PlaybackBox::previewReady(), TV::ProcessNetworkControlCommand(), LiveTVChain::ProgramIsAt(), QueueCommFlagJob(), JobQueue::QueueRecordingJobs(), ManualSchedule::recordClicked(), PreviewGenerator::Run(), Scheduler::RunScheduler(), TV::RunTV(), Save(), TV::ScreenShot(), SetAutoExpire(), SetBookmark(), SetCommFlagged(), SetCutList(), SetDeleteFlag(), SetEditing(), SetFilesize(), TVRec::SetLiveRecording(), SetMarkupMap(), SetPositionMap(), SetPositionMapDelta(), SetPreserveEpisode(), ScheduledRecording::setProgram(), LiveTVChain::SetProgram(), SetRecordBasename(), SetTranscoded(), SetWatchedFlag(), showDetails(), PlaybackBox::showJobPopup(), PlaybackBox::showPlaylistJobPopup(), ShowRecordingDialog(), ManualBox::startClicked(), StartedRecording(), TVRec::StartRecording(), EncoderLink::StartRecording(), PlaybackBox::stopPlaylistJobQueueJob(), ToMap(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), UpdateRecGroup(), UpdateRecordingEnd(), and Scheduler::UpdateRecStatus().

Definition at line 339 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), TV::BrowseStart(), CalculateLength(), clone(), comp_originalAirDate(), comp_originalAirDate_rev(), comp_overlap(), comp_recordDate(), comp_recordDate_rev(), comp_redundant(), CustomEdit::CustomEdit(), PreviousList::deleteItem(), DoFlagCommercials(), AutoExpire::FillDBOrdered(), ViewScheduleDiff::FillList(), PlaybackBox::FillList(), TV::FillMenuPlaying(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::findAllScheduledPrograms(), TVRec::FinishedRecording(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), InfoDialog::getDateLabel(), JobQueue::GetJobCommand(), GetProgramAtDateTime(), GetProgramFromRecorded(), MainServer::HandleQueryRecordings(), insert_program(), internal_play_media(), IsProgramRecurring(), IsSameProgramTimeslot(), IsSameTimeslot(), RecordingSelector::OKPressed(), plTimeSort::operator()(), plTitleSort::operator()(), pbTimeSort::operator()(), pbTitleSort::operator()(), ProgramRecPriorityInfo::operator=(), AutoExpire::PrintExpireList(), TV::ProcessNetworkControlCommand(), ProgramInfo(), ReactivateRecording(), ManualSchedule::recordClicked(), RemoteGetRecordingStatus(), Save(), SecsTillStart(), TVRec::SetLiveRecording(), ScheduledRecording::setProgram(), showDetails(), ShowNotRecordingDialog(), ShowRecordingDialog(), Scheduler::SlaveConnected(), ManualBox::startClicked(), StartedRecording(), TVRec::StartRecording(), RecordingSelector::titleChanged(), ToMap(), toString(), ToStringList(), ProgLister::updateList(), PreviousList::updateList(), RecordingSelector::updateRecordingList(), and Scheduler::UpdateRecStatus().

QDateTime ProgramInfo::endts

Definition at line 341 of file programinfo.h.

Referenced by Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), ApplyRecordPlayGroupChange(), ApplyRecordRecGroupChange(), ApplyRecordRecID(), ApplyRecordRecTitleChange(), ApplyTranscoderProfileChange(), BuildVideoMarkup(), TVRec::CheckForRecGroupChange(), 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(), CreateRecordBasename(), TV::customEvent(), DeleteHistory(), LiveTVChain::DeleteProgram(), StatusBox::doAutoExpireList(), DoFlagCommercials(), JobQueue::DoFlagCommercialsThread(), MainServer::DoHandleDeleteRecording(), PlaybackBox::doJobQueueJob(), PlaybackBox::doPlaylistJobQueueJob(), TV::DoQueueTranscode(), NuppelVideoPlayer::DoSkipCommercials(), JobQueue::DoUserJobThread(), AutoExpire::ExpireRecordings(), AutoExpire::FillDBOrdered(), FillInRecordInfo(), ViewScheduled::FillList(), ViewScheduleDiff::FillList(), PlaybackBox::FillList(), MythXML::FillProgramInfo(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), PlaybackBox::findMatchingProg(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), GetAutoExpireFromRecorded(), GetFilesize(), JobQueue::GetJobCommand(), JobQueue::GetJobQueueKey(), GetMarkupMap(), Scheduler::GetNextLiveTVDir(), PlaybackBox::getPixmap(), GetPlaybackURL(), GetPositionMap(), GetPreserveEpisodeFromRecorded(), GetProgramAtDateTime(), getProgramFlags(), GetProgramFromRecorded(), getProgramProperties(), TVRec::GetProgramRingBufferForLiveTV(), GetRecordBasename(), NuppelVideoPlayer::GetScreenGrabAtFrame(), GetTranscodedStatus(), MainServer::HandleQueryRecordings(), TV::HandleStateChange(), incomingCustomEvent(), init_jobs(), PlaybackBox::initPopup(), insert_program(), internal_play_media(), IsCommFlagged(), IsEditing(), IsInUse(), JobQueue::IsJobRunning(), EncoderLink::IsRecording(), MakeUniqueKey(), MarkAsInUse(), Scheduler::MarkShowingsList(), EncoderLink::MatchesRecording(), PlaybackBox::previewReady(), Scheduler::PrintList(), Scheduler::PrintRec(), TV::ProcessNetworkControlCommand(), ProgramInfo(), LiveTVChain::ProgramIsAt(), QueueCommFlagJob(), JobQueue::QueueRecordingJobs(), RecStatusDesc(), PreviewGenerator::Run(), Scheduler::RunScheduler(), TVRec::RunTV(), Scheduler::SchedNewRecords(), TV::ScreenShot(), SetAutoExpire(), SetBookmark(), SetCommFlagged(), SetCutList(), SetDeleteFlag(), SetEditing(), SetFilesize(), SetMarkupMap(), SetPositionMap(), SetPositionMapDelta(), SetPreserveEpisode(), LiveTVChain::SetProgram(), TV::SetPseudoLiveTV(), SetRecordBasename(), setScheduledWakeupTime(), SetTranscoded(), NuppelVideoPlayer::SetWatched(), SetWatchedFlag(), showDetails(), PlaybackBox::showJobPopup(), ShowNotRecordingDialog(), PlaybackBox::showPlaylistJobPopup(), ShowRecordingDialog(), Scheduler::ShutdownServer(), StartedRecording(), TVRec::StartRecording(), EncoderLink::StartRecording(), ViewScheduleDiff::statusDialog(), PlaybackBox::stopPlaylistJobQueueJob(), TVRec::TeardownRecorder(), ToMap(), toString(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningRestartRecorder(), UpdateLastDelete(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), Scheduler::UpdateNextRecord(), UpdateRecGroup(), UpdateRecordingEnd(), WelcomeDialog::updateScheduledList(), PlaybackBox::updateShowTitles(), and EncoderLink::WouldConflict().

Definition at line 342 of file programinfo.h.

Referenced by Scheduler::AddNewRecords(), Scheduler::AddNotListed(), LiveTVChain::AppendNewProgram(), BuildVideoMarkup(), Scheduler::ChangeRecordingEnd(), clone(), comp_recstart(), ProgramRecPriority::countMatches(), StatusBox::doAutoExpireList(), DoFlagCommercials(), MainServer::DoHandleDeleteRecording(), AutoExpire::FillDBOrdered(), FillInRecordInfo(), ViewScheduled::FillList(), ViewScheduleDiff::FillList(), MythXML::FillProgramInfo(), Scheduler::FillRecordingDir(), Scheduler::findAllScheduledPrograms(), Scheduler::FindNextConflict(), TVRec::FinishedRecording(), FinishedRecording(), LiveTVChain::FinishedRecording(), FlagCommercials(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), JobQueue::GetJobCommand(), Scheduler::GetNextLiveTVDir(), PlaybackBox::getPixmap(), GetProgramAtDateTime(), GetProgramFromRecorded(), TVRec::GetProgramRingBufferForLiveTV(), TVRec::GetRecordEndTime(), TVRec::HandlePendingRecordings(), MainServer::HandleQueryRecordings(), PlaybackBox::initPopup(), insert_program(), internal_play_media(), TV::Playback(), Scheduler::PrintList(), Scheduler::PrintRec(), ProgramInfo(), Scheduler::PruneRedundants(), TVRec::SetLiveRecording(), TV::SetPseudoLiveTV(), setScheduledWakeupTime(), NuppelVideoPlayer::SetWatched(), ShowNotRecordingDialog(), ShowRecordingDialog(), TVRec::StartRecording(), EncoderLink::StartRecording(), ViewScheduleDiff::statusDialog(), ToMap(), toString(), ToStringList(), TVRec::TuningRestartRecorder(), UpdateRecordingEnd(), Scheduler::UpdateRecStatus(), and WelcomeDialog::updateScheduledList().

Definition at line 347 of file programinfo.h.

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

Definition at line 354 of file programinfo.h.

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

Definition at line 362 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), Scheduler::BackupRecStatus(), Scheduler::BuildListMaps(), Scheduler::BuildWorkList(), Scheduler::ChangeRecordingEnd(), clone(), comp_overlap(), comp_priority(), comp_recstart(), comp_redundant(), ProgramRecPriority::countMatches(), ProgramRecPriority::deactivate(), MainServer::DoHandleDeleteRecording(), MainServer::DoHandleStopRecording(), ScheduledRecording::doneRecording(), StatusBox::doScheduleStatus(), ProgramRecPriority::edit(), EditRecording(), FillInRecordInfo(), ViewScheduled::FillList(), ViewScheduleDiff::FillList(), ProgramRecPriority::FillList(), MythXML::FillProgramInfo(), GuideGrid::fillProgramRowInfos(), Scheduler::FillRecordingDir(), TVRec::FinishedRecording(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), Scheduler::getAllPending(), GetProgramFromRecorded(), TVRec::GetRecording(), MainServer::HandleQueryRecordings(), Scheduler::MarkShowingsList(), Scheduler::MoveHigherRecords(), TVRec::NotifySchedulerOfRecording(), plTitleSort::operator()(), ProgramRecPriorityInfo::operator=(), PlaybackBox::play(), ProgramInfo(), Scheduler::PruneRedundants(), Recording(), RecStatusChar(), RecStatusDesc(), RecStatusText(), RemoteGetCurrentlyRecordingList(), Scheduler::RestoreRecStatus(), Scheduler::RunScheduler(), Scheduler::SchedNewRecords(), Scheduler::SchedPreserveLiveTV(), TVRec::SetLiveRecording(), setScheduledWakeupTime(), PlaybackBox::showActionPopup(), showDetails(), ShowNotRecordingDialog(), ProgFinder::showProgramList(), ShowRecordingDialog(), ProgFinder::showSearchList(), Scheduler::SlaveConnected(), Scheduler::SlaveDisconnected(), TVRec::StartRecording(), ViewScheduleDiff::statusDialog(), ToMap(), ToStringList(), Scheduler::TryAnotherShowing(), TVRec::TuningFrequency(), ProgramRecPriority::updateInfo(), ViewScheduled::updateList(), ViewScheduleDiff::updateList(), ProgramRecPriority::updateList(), ProgLister::updateList(), PreviousList::updateList(), Scheduler::UpdateNextRecord(), Scheduler::UpdateRecStatus(), WelcomeDialog::updateScheduledList(), and PlaybackBox::updateShowTitles().

Definition at line 365 of file programinfo.h.

Definition at line 369 of file programinfo.h.

Referenced by AddHistory(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), Scheduler::AddRecording(), Scheduler::BuildListMaps(), Scheduler::ChangeRecordingEnd(), clone(), comp_overlap(), comp_priority(), comp_redundant(), ProgramRecPriority::countMatches(), ProgramRecPriority::customEdit(), CustomEdit::CustomEdit(), ProgramRecPriority::deactivate(), DeleteHistory(), PlaybackBox::doRemove(), ProgramRecPriority::edit(), EditRecording(), FillInRecordInfo(), ViewScheduled::FillList(), ProgramRecPriority::FillList(), PlaybackBox::FillList(), MythXML::FillProgramInfo(), Scheduler::findAllScheduledPrograms(), ForgetHistory(), ProgramList::FromOldRecorded(), ProgramList::FromProgram(), ProgramList::FromRecorded(), FromStringList(), GetProgramFromRecorded(), getRecordID(), MainServer::HandleQueryRecordings(), insert_program(), IsSameProgram(), ScheduledRecording::loadByProgram(), ScheduledRecording::makeOverride(), Scheduler::MarkOtherShowings(), programRecTypeSort::operator()(), programRecPrioritySort::operator()(), titleSort::operator()(), ProgramRecPriorityInfo::operator=(), ProgramInfo(), Scheduler::PruneOverlaps(), Scheduler::PruneRedundants(), ViewScheduled::remove(), ProgramRecPriority::remove(), ProgLister::remove(), GuideGrid::remove(), Scheduler::RunScheduler(), ProgramRecPriority::saveRecPriority(), showDetails(), PlaybackBox::startPlayer(), TVRec::StartRecording(), ToStringList(), Scheduler::TryAnotherShowing(), ProgramRecPriority::upcoming(), ProgramRecPriority::updateInfo(), UpdateLastDelete(), ProgramRecPriority::updateList(), Scheduler::UpdateNextRecord(), and UsesMaxEpisodes().

Definition at line 398 of file programinfo.h.

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

class ScheduledRecording* ProgramInfo::record [mutable, private]

QMutex ProgramInfo::regExpLock [mutable, private]

Definition at line 400 of file programinfo.h.

Referenced by IsSameProgram().

QRegExp ProgramInfo::regExpSeries [private]

Definition at line 401 of file programinfo.h.

Referenced by IsSameProgram().

QString ProgramInfo::inUseForWhat [private]

Definition at line 403 of file programinfo.h.

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


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

Generated on Sat Dec 18 05:16:09 2010 for MythTV by  doxygen 1.5.5