|
MythTV
0.26-pre
|
Internal representation of a recording rule, mirrors the record table. More...
#include <recordingrule.h>
Internal representation of a recording rule, mirrors the record table.
Please keep clean and tidy, don't let this class become a dumping ground for single use utility functions, UI related stuff or anything which has a tenuous link to recording rules. See RecordingInfo or ProgramInfo instead.
Definition at line 30 of file recordingrule.h.
Definition at line 26 of file recordingrule.cpp.
| RecordingRule::~RecordingRule | ( | ) | [inline] |
Definition at line 37 of file recordingrule.h.
| bool RecordingRule::Load | ( | bool | asTemplate = false | ) |
Definition at line 80 of file recordingrule.cpp.
Referenced by LookerUpper::CopyRuleInetrefsToRecordings(), ScheduleEditor::Create(), Dvr::DisableRecordSchedule(), Dvr::EnableRecordSchedule(), Dvr::GetRecordSchedule(), GuessLookupType(), MainServer::HandleGetPendingRecordings(), LoadByProgram(), LoadBySearch(), LoadTemplate(), ModifyPowerSearchByID(), ProgramRecPriority::remove(), and ProgramRecPriority::scheduleChanged().
| bool RecordingRule::LoadByProgram | ( | const ProgramInfo * | proginfo | ) |
Definition at line 196 of file recordingrule.cpp.
Referenced by ScheduleEditor::Create(), LookerUpper::customEvent(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), ProgramRecPriority::edit(), RecordingInfo::GetAutoRunJobs(), RecordingInfo::GetProgramRecordingProfile(), RecordingInfo::GetProgramRecordingStatus(), ProgDetails::loadPage(), ScheduleCommon::MakeOverride(), ScheduleEditor::RunScheduleEditor(), ProgLister::ShowDeleteRuleMenu(), and RecordingInfo::StartedRecording().
| bool RecordingRule::LoadBySearch | ( | RecSearchType | lsearch, |
| QString | textname, | ||
| QString | forwhat, | ||
| QString | from = "" |
||
| ) |
Definition at line 221 of file recordingrule.cpp.
Referenced by CustomEdit::recordClicked(), PhrasePopup::recordClicked(), and PowerSearchPopup::recordClicked().
| bool RecordingRule::LoadTemplate | ( | QString | category, |
| QString | categoryType = "Default" |
||
| ) |
Definition at line 271 of file recordingrule.cpp.
Referenced by TV::InitFromDB(), LoadByProgram(), LoadBySearch(), ScheduleEditor::LoadTemplate(), MakeTemplate(), and PlaybackBox::setRecGroup().
| bool RecordingRule::ModifyPowerSearchByID | ( | int | rid, |
| QString | textname, | ||
| QString | forwhat, | ||
| QString | from = "" |
||
| ) |
Definition at line 331 of file recordingrule.cpp.
Referenced by CustomEdit::recordClicked().
Definition at line 351 of file recordingrule.cpp.
Referenced by RecordingInfo::ApplyRecordStateChange(), and ScheduleCommon::MakeOverride().
| bool RecordingRule::MakeTemplate | ( | QString | category | ) |
Definition at line 306 of file recordingrule.cpp.
Referenced by doUpgradeTVDatabaseSchema(), and ProgramRecPriority::newTemplate().
| bool RecordingRule::Save | ( | bool | sendSig = true | ) |
Definition at line 373 of file recordingrule.cpp.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordRecPriorityChange(), RecordingInfo::ApplyRecordStateChange(), LookerUpper::customEvent(), Dvr::DisableRecordSchedule(), doUpgradeTVDatabaseSchema(), Dvr::EnableRecordSchedule(), TVRec::NotifySchedulerOfRecording(), ScheduleEditor::Save(), and UseTempTable().
| bool RecordingRule::Delete | ( | bool | sendSig = true | ) |
Definition at line 479 of file recordingrule.cpp.
Referenced by RecordingInfo::ApplyRecordStateChange(), ViewScheduled::customEvent(), ProgLister::customEvent(), ProgramRecPriority::customEvent(), GuideGrid::customEvent(), ScheduleEditor::DeleteRule(), and Dvr::RemoveRecordSchedule().
| bool RecordingRule::IsLoaded | ( | ) | const [inline] |
Definition at line 53 of file recordingrule.h.
Referenced by ScheduleEditor::Create(), Dvr::DisableRecordSchedule(), and Dvr::EnableRecordSchedule().
| void RecordingRule::UseTempTable | ( | bool | usetemp, |
| QString | table = "record_tmp" |
||
| ) |
Definition at line 610 of file recordingrule.cpp.
Referenced by ScheduleEditor::ShowPreview().
| unsigned RecordingRule::GetDefaultFilter | ( | void | ) | [static] |
Definition at line 717 of file recordingrule.cpp.
| void RecordingRule::ToMap | ( | InfoMap & | infoMap | ) | const |
Definition at line 513 of file recordingrule.cpp.
Referenced by ScheduleEditor::Load(), and SchedEditChild::SetTextFromMaps().
| AutoExpireType RecordingRule::GetAutoExpire | ( | void | ) | const [inline] |
Definition at line 59 of file recordingrule.h.
Referenced by TVRec::TuningRestartRecorder().
| QString RecordingRule::SearchTypeToString | ( | const RecSearchType | searchType | ) | [static] |
Definition at line 736 of file recordingrule.cpp.
Referenced by LoadBySearch(), and ToMap().
| QStringList RecordingRule::GetTemplateNames | ( | void | ) | [static] |
Definition at line 765 of file recordingrule.cpp.
Referenced by ScheduleEditor::showTemplateMenu().
| void RecordingRule::AssignProgramInfo | ( | ) | [private] |
Definition at line 670 of file recordingrule.cpp.
Referenced by LoadByProgram(), and MakeOverride().
const int RecordingRule::kNumFilters = 12 [static] |
Definition at line 34 of file recordingrule.h.
Referenced by GetDefaultFilter(), and Scheduler::UpdateMatches().
Definition at line 65 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), LookerUpper::CopyRuleInetrefsToRecordings(), ScheduleEditor::Create(), Delete(), Dvr::DisableRecordSchedule(), ProgramRecPriority::edit(), Dvr::EnableRecordSchedule(), FillRecRuleInfo(), RecordingInfo::getRecordID(), Dvr::GetRecordSchedule(), GuessLookupType(), MainServer::HandleGetPendingRecordings(), Load(), LoadByProgram(), LoadBySearch(), LoadTemplate(), MakeOverride(), MakeTemplate(), ModifyPowerSearchByID(), ProgramRecPriority::remove(), Dvr::RemoveRecordSchedule(), Save(), ScheduleEditor::Save(), ProgramRecPriority::scheduleChanged(), ScheduleEditor::ScheduleEditor(), ScheduleEditor::showPrevious(), ScheduleEditor::showUpcomingByRule(), ScheduleEditor::showUpcomingByTitle(), and UseTempTable().
Unique Recording Rule ID.
Definition at line 66 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), MakeOverride(), and Save().
Definition at line 68 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), Dvr::DisableRecordSchedule(), Dvr::EnableRecordSchedule(), FillRecRuleInfo(), SchedOptMixin::Load(), Load(), MakeOverride(), SchedOptMixin::Save(), Save(), and ProgramRecPriority::scheduleChanged().
| QString RecordingRule::m_title |
Recording rule is enabled?
Definition at line 71 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), Delete(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), FillRecRuleInfo(), MetadataOptions::FindNetArt(), Load(), LoadBySearch(), ProgDetails::loadPage(), MetadataFactory::Lookup(), MakeTemplate(), ModifyPowerSearchByID(), MetadataOptions::OnImageSearchListSelection(), MetadataOptions::PerformQuery(), ProgramRecPriority::remove(), Save(), ProgramRecPriority::scheduleChanged(), ProgLister::ShowDeleteRuleMenu(), ScheduleEditor::ShowPreview(), ScheduleEditor::showUpcomingByTitle(), and ToMap().
| QString RecordingRule::m_subtitle |
Definition at line 72 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), MetadataOptions::FindNetArt(), GuessLookupType(), Load(), LoadBySearch(), MetadataFactory::Lookup(), ModifyPowerSearchByID(), MetadataOptions::OnImageSearchListSelection(), MetadataOptions::PerformQuery(), Save(), and ToMap().
| QString RecordingRule::m_description |
Definition at line 73 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), ProgDetails::loadPage(), ModifyPowerSearchByID(), Save(), and ToMap().
Definition at line 74 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), GuessLookupType(), Load(), MetadataFactory::Lookup(), MetadataOptions::MetadataOptions(), Save(), MetadataOptions::Save(), and ToMap().
Definition at line 75 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), GuessLookupType(), Load(), MetadataFactory::Lookup(), Save(), MetadataOptions::Save(), and ToMap().
| QString RecordingRule::m_category |
Definition at line 76 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), ScheduleEditor::Load(), MakeTemplate(), Save(), ProgramRecPriority::scheduleChanged(), and ToMap().
Definition at line 78 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
Definition at line 79 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), Save(), and ToMap().
| QTime RecordingRule::m_endtime |
Definition at line 80 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QDate RecordingRule::m_enddate |
Definition at line 81 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QString RecordingRule::m_seriesid |
Definition at line 83 of file recordingrule.h.
Referenced by AssignProgramInfo(), MetadataOptions::customEvent(), FillRecRuleInfo(), Load(), Save(), and ScheduleEditor::showUpcomingByTitle().
| QString RecordingRule::m_programid |
Definition at line 84 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), and Save().
| QString RecordingRule::m_inetref |
Definition at line 85 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), LookerUpper::CopyRuleInetrefsToRecordings(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), Load(), MetadataFactory::Lookup(), MetadataOptions::MetadataOptions(), Save(), MetadataOptions::Save(), and ToMap().
Definition at line 88 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QString RecordingRule::m_station |
Definition at line 89 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), ScheduleEditor::Load(), Save(), and ToMap().
callsign?
Definition at line 90 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), Save(), and ToMap().
Day of the week for once per week etc.
Definition at line 91 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
Time for timeslot rules.
Definition at line 92 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), and Save().
Definition at line 95 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordStateChange(), doUpgradeTVDatabaseSchema(), FillRecRuleInfo(), RecordingInfo::GetProgramRecordingStatus(), Load(), ScheduleEditor::Load(), LoadByProgram(), ScheduleCommon::MakeOverride(), MakeOverride(), MakeTemplate(), TVRec::NotifySchedulerOfRecording(), SchedOptMixin::RuleChanged(), StoreOptMixin::RuleChanged(), PostProcMixin::RuleChanged(), ScheduleEditor::RuleChanged(), Save(), ScheduleEditor::Save(), ProgramRecPriority::scheduleChanged(), ScheduleEditor::ShowFilters(), ScheduleEditor::ShowMetadataOptions(), ScheduleEditor::ShowNextView(), ScheduleEditor::ShowPostProc(), ScheduleEditor::ShowPreview(), ScheduleEditor::showPrevious(), ScheduleEditor::ShowPreviousView(), ScheduleEditor::ShowSchedInfo(), ScheduleEditor::ShowSchedOpt(), ScheduleEditor::ShowStoreOpt(), ScheduleEditor::showUpcomingByRule(), ScheduleEditor::showUpcomingByTitle(), and ToMap().
Definition at line 96 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), LookerUpper::customEvent(), ProgramRecPriority::edit(), FillRecRuleInfo(), MainServer::HandleGetPendingRecordings(), Load(), ScheduleEditor::Load(), LoadByProgram(), LoadBySearch(), ProgDetails::loadPage(), MakeOverride(), ModifyPowerSearchByID(), Save(), ScheduleEditor::showUpcomingByTitle(), and ToMap().
Definition at line 97 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordRecPriorityChange(), FillRecRuleInfo(), RecordingInfo::InsertProgram(), Load(), SchedOptMixin::Load(), SchedOptMixin::Save(), Save(), and ProgramRecPriority::scheduleChanged().
Definition at line 98 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), SchedOptMixin::Load(), SchedOptMixin::Save(), and Save().
Definition at line 99 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), SchedOptMixin::Load(), SchedOptMixin::Save(), and Save().
Definition at line 100 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), SchedOptMixin::Load(), TVRec::NotifySchedulerOfRecording(), SchedOptMixin::Save(), and Save().
Definition at line 101 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), SchedOptMixin::DupMethodChanged(), FillRecRuleInfo(), Load(), SchedOptMixin::Load(), SchedOptMixin::RuleChanged(), SchedOptMixin::Save(), and Save().
Definition at line 102 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), SchedOptMixin::Load(), SchedOptMixin::Save(), and Save().
| unsigned RecordingRule::m_filter |
Definition at line 103 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), SchedFilterEditor::Load(), Save(), and SchedFilterEditor::Save().
| QString RecordingRule::m_recProfile |
Definition at line 107 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetProgramRecordingProfile(), RecordingInfo::InsertProgram(), Load(), StoreOptMixin::Load(), load_profile(), ProgDetails::loadPage(), Save(), StoreOptMixin::Save(), and ProgramRecPriority::scheduleChanged().
| QString RecordingRule::m_recGroup |
Definition at line 108 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), StoreOptMixin::Load(), Save(), StoreOptMixin::Save(), and TVRec::TuningRestartRecorder().
| QString RecordingRule::m_storageGroup |
Definition at line 109 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), StoreOptMixin::Load(), Save(), and StoreOptMixin::Save().
| QString RecordingRule::m_playGroup |
Definition at line 110 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), StoreOptMixin::Load(), LoadByProgram(), Save(), and StoreOptMixin::Save().
Definition at line 112 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), TV::InitFromDB(), RecordingInfo::InsertProgram(), Load(), StoreOptMixin::Load(), Save(), StoreOptMixin::Save(), and PlaybackBox::setRecGroup().
Definition at line 113 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), StoreOptMixin::Load(), StoreOptMixin::MaxEpisodesChanged(), StoreOptMixin::RuleChanged(), Save(), and StoreOptMixin::Save().
Definition at line 114 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), StoreOptMixin::Load(), Save(), and StoreOptMixin::Save().
Definition at line 117 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 118 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), PostProcMixin::RuleChanged(), Save(), PostProcMixin::Save(), and PostProcMixin::TranscodeChanged().
Definition at line 119 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::InsertProgram(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 120 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 121 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 122 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 123 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
Definition at line 124 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), Load(), PostProcMixin::Load(), Save(), and PostProcMixin::Save().
| QDateTime RecordingRule::m_nextRecording |
Definition at line 128 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), Save(), and ToMap().
| QDateTime RecordingRule::m_lastRecorded |
Definition at line 129 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), Save(), ProgramRecPriority::scheduleChanged(), and ToMap().
| QDateTime RecordingRule::m_lastDeleted |
Definition at line 130 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), Save(), and ToMap().
Definition at line 131 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), and Save().
| QString RecordingRule::m_recordTable |
Definition at line 134 of file recordingrule.h.
Referenced by Save(), and UseTempTable().
Definition at line 135 of file recordingrule.h.
Referenced by Save(), ScheduleEditor::ShowPreview(), and UseTempTable().
Definition at line 139 of file recordingrule.h.
Referenced by Load(), ScheduleEditor::Load(), and MakeOverride().
Definition at line 143 of file recordingrule.h.
Referenced by ScheduleEditor::Create(), SchedOptEditor::Create(), SchedFilterEditor::Create(), StoreOptEditor::Create(), PostProcEditor::Create(), MetadataOptions::Create(), Load(), ScheduleEditor::Load(), MakeTemplate(), ScheduleEditor::showMenu(), ScheduleEditor::ShowNextView(), and ScheduleEditor::ShowPreviousView().
QString RecordingRule::m_template [private] |
Definition at line 150 of file recordingrule.h.
const ProgramInfo* RecordingRule::m_progInfo [private] |
Definition at line 154 of file recordingrule.h.
Referenced by AssignProgramInfo(), and LoadByProgram().
bool RecordingRule::m_loaded [private] |
Definition at line 158 of file recordingrule.h.
Referenced by Load(), LoadByProgram(), LoadBySearch(), MakeTemplate(), and ModifyPowerSearchByID().
1.7.6.1