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 29 of file recordingrule.h.
| RecordingRule::RecordingRule | ( | ) |
Definition at line 21 of file recordingrule.cpp.
| RecordingRule::~RecordingRule | ( | ) | [inline] |
Definition at line 36 of file recordingrule.h.
| bool RecordingRule::Load | ( | void | ) |
Definition at line 73 of file recordingrule.cpp.
Referenced by ScheduleEditor::Create(), Dvr::DisableRecordSchedule(), Dvr::EnableRecordSchedule(), Dvr::GetRecordSchedule(), MainServer::HandleGetPendingRecordings(), LoadByProgram(), LoadBySearch(), ModifyPowerSearchByID(), and ProgramRecPriority::remove().
| bool RecordingRule::LoadByProgram | ( | const ProgramInfo * | proginfo | ) |
Definition at line 169 of file recordingrule.cpp.
Referenced by LookerUpper::CopyRuleInetrefsToRecordings(), ScheduleEditor::Create(), LookerUpper::customEvent(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), ProgramRecPriority::edit(), RecordingInfo::GetAutoRunJobs(), RecordingInfo::GetProgramRecordingProfile(), RecordingInfo::GetProgramRecordingStatus(), GuessLookupType(), 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 193 of file recordingrule.cpp.
Referenced by PowerSearchPopup::recordClicked(), PhrasePopup::recordClicked(), and CustomEdit::recordClicked().
| bool RecordingRule::ModifyPowerSearchByID | ( | int | rid, | |
| QString | textname, | |||
| QString | forwhat, | |||
| QString | from = "" | |||
| ) |
Definition at line 259 of file recordingrule.cpp.
Referenced by CustomEdit::recordClicked().
| bool RecordingRule::MakeOverride | ( | void | ) |
Definition at line 280 of file recordingrule.cpp.
Referenced by RecordingInfo::ApplyRecordStateChange(), and ScheduleCommon::MakeOverride().
Definition at line 302 of file recordingrule.cpp.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordRecPriorityChange(), RecordingInfo::ApplyRecordStateChange(), LookerUpper::customEvent(), Dvr::DisableRecordSchedule(), Dvr::EnableRecordSchedule(), TVRec::NotifySchedulerOfRecording(), ScheduleEditor::Save(), and UseTempTable().
Definition at line 407 of file recordingrule.cpp.
Referenced by RecordingInfo::ApplyRecordStateChange(), ViewScheduled::customEvent(), ProgramRecPriority::customEvent(), ProgLister::customEvent(), GuideGrid::customEvent(), ScheduleEditor::DeleteRule(), and Dvr::RemoveRecordSchedule().
| bool RecordingRule::IsLoaded | ( | ) | const [inline] |
Definition at line 50 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 511 of file recordingrule.cpp.
Referenced by ScheduleEditor::ShowPreview().
| unsigned RecordingRule::GetDefaultFilter | ( | void | ) | [static] |
Definition at line 614 of file recordingrule.cpp.
| void RecordingRule::ToMap | ( | InfoMap & | infoMap | ) | const |
Definition at line 440 of file recordingrule.cpp.
Referenced by MetadataOptions::Load(), PostProcEditor::Load(), StoreOptEditor::Load(), SchedFilterEditor::Load(), SchedOptEditor::Load(), and ScheduleEditor::Load().
| AutoExpireType RecordingRule::GetAutoExpire | ( | void | ) | const [inline] |
Definition at line 56 of file recordingrule.h.
Referenced by TVRec::TuningRestartRecorder().
| void RecordingRule::AssignProgramInfo | ( | ) | [private] |
Definition at line 571 of file recordingrule.cpp.
Referenced by LoadByProgram(), and MakeOverride().
const int RecordingRule::kNumFilters = 12 [static] |
Definition at line 33 of file recordingrule.h.
Referenced by GetDefaultFilter(), and Scheduler::UpdateMatches().
Definition at line 59 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), ScheduleEditor::Create(), Delete(), Dvr::DisableRecordSchedule(), ProgramRecPriority::edit(), Dvr::EnableRecordSchedule(), FillRecRuleInfo(), RecordingInfo::getRecordID(), Dvr::GetRecordSchedule(), MainServer::HandleGetPendingRecordings(), Load(), LoadByProgram(), LoadBySearch(), MakeOverride(), ModifyPowerSearchByID(), ProgramRecPriority::remove(), Dvr::RemoveRecordSchedule(), ScheduleEditor::Save(), Save(), ScheduleEditor::ScheduleEditor(), ScheduleEditor::showPrevious(), ScheduleEditor::showUpcomingByRule(), and UseTempTable().
Unique Recording Rule ID.
Definition at line 60 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), MakeOverride(), and Save().
Definition at line 62 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), Dvr::DisableRecordSchedule(), Dvr::EnableRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), MakeOverride(), SchedOptEditor::Save(), and Save().
| QString RecordingRule::m_title |
Recording rule is enabled?
Definition at line 65 of file recordingrule.h.
Referenced by AssignProgramInfo(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), FillRecRuleInfo(), MetadataOptions::FindNetArt(), Load(), LoadBySearch(), ProgDetails::loadPage(), MetadataFactory::Lookup(), ModifyPowerSearchByID(), MetadataOptions::OnImageSearchListSelection(), MetadataOptions::PerformQuery(), ProgramRecPriority::remove(), Save(), ProgLister::ShowDeleteRuleMenu(), ScheduleEditor::ShowPreview(), ScheduleEditor::showUpcomingByTitle(), and ToMap().
| QString RecordingRule::m_subtitle |
Definition at line 66 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 67 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), ProgDetails::loadPage(), ModifyPowerSearchByID(), Save(), and ToMap().
Definition at line 68 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), GuessLookupType(), Load(), MetadataFactory::Lookup(), MetadataOptions::MetadataOptions(), MetadataOptions::Save(), Save(), and ToMap().
Definition at line 69 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), GuessLookupType(), Load(), MetadataFactory::Lookup(), MetadataOptions::Save(), Save(), and ToMap().
| QString RecordingRule::m_category |
Definition at line 70 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
Definition at line 72 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
Definition at line 73 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), Save(), and ToMap().
| QTime RecordingRule::m_endtime |
Definition at line 74 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QDate RecordingRule::m_enddate |
Definition at line 75 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QString RecordingRule::m_seriesid |
Definition at line 77 of file recordingrule.h.
Referenced by AssignProgramInfo(), MetadataOptions::customEvent(), FillRecRuleInfo(), Load(), Save(), and ScheduleEditor::showUpcomingByTitle().
| QString RecordingRule::m_programid |
Definition at line 78 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), and Save().
| QString RecordingRule::m_inetref |
Definition at line 79 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), LookerUpper::CopyRuleInetrefsToRecordings(), MetadataOptions::Create(), LookerUpper::customEvent(), FillRecRuleInfo(), MetadataOptions::Load(), Load(), MetadataFactory::Lookup(), MetadataOptions::MetadataOptions(), MetadataOptions::Save(), Save(), and ToMap().
Definition at line 82 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
| QString RecordingRule::m_station |
Definition at line 83 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), ScheduleEditor::Load(), Load(), Save(), and ToMap().
callsign?
Definition at line 84 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 85 of file recordingrule.h.
Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().
Time for timeslot rules.
Definition at line 86 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), AssignProgramInfo(), FillRecRuleInfo(), Load(), LoadBySearch(), and Save().
Definition at line 89 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordStateChange(), SchedOptEditor::Create(), FillRecRuleInfo(), RecordingInfo::GetProgramRecordingStatus(), ScheduleEditor::Load(), Load(), ScheduleCommon::MakeOverride(), MakeOverride(), TVRec::NotifySchedulerOfRecording(), ScheduleEditor::RuleChanged(), ScheduleEditor::Save(), Save(), and ToMap().
Definition at line 90 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), ProgramRecPriority::edit(), FillRecRuleInfo(), MainServer::HandleGetPendingRecordings(), ScheduleEditor::Load(), Load(), LoadByProgram(), LoadBySearch(), ProgDetails::loadPage(), MakeOverride(), ModifyPowerSearchByID(), Save(), and ScheduleEditor::showUpcomingByTitle().
Definition at line 91 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), RecordingInfo::ApplyRecordRecPriorityChange(), FillRecRuleInfo(), RecordingInfo::InsertProgram(), SchedOptEditor::Load(), Load(), SchedOptEditor::Save(), and Save().
Definition at line 92 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), SchedOptEditor::Save(), and Save().
Definition at line 93 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), SchedOptEditor::Save(), and Save().
Definition at line 94 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), TVRec::NotifySchedulerOfRecording(), SchedOptEditor::Save(), and Save().
Definition at line 95 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), SchedOptEditor::Save(), and Save().
Definition at line 96 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedOptEditor::Load(), Load(), SchedOptEditor::Save(), and Save().
| unsigned RecordingRule::m_filter |
Definition at line 97 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), SchedFilterEditor::Load(), Load(), SchedFilterEditor::Save(), and Save().
| QString RecordingRule::m_recProfile |
Definition at line 101 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetProgramRecordingProfile(), RecordingInfo::InsertProgram(), StoreOptEditor::Load(), Load(), load_profile(), ProgDetails::loadPage(), StoreOptEditor::Save(), and Save().
| QString RecordingRule::m_recGroup |
Definition at line 102 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), StoreOptEditor::customEvent(), FillRecRuleInfo(), StoreOptEditor::Load(), Load(), StoreOptEditor::Save(), Save(), and TVRec::TuningRestartRecorder().
| QString RecordingRule::m_storageGroup |
Definition at line 103 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), StoreOptEditor::Load(), Load(), StoreOptEditor::Save(), and Save().
| QString RecordingRule::m_playGroup |
Definition at line 104 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), StoreOptEditor::Load(), Load(), LoadByProgram(), StoreOptEditor::Save(), and Save().
Definition at line 106 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::InsertProgram(), StoreOptEditor::Load(), Load(), StoreOptEditor::Save(), and Save().
Definition at line 107 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), StoreOptEditor::Load(), Load(), StoreOptEditor::Save(), and Save().
Definition at line 108 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), StoreOptEditor::Load(), Load(), StoreOptEditor::Save(), and Save().
Definition at line 111 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 112 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 113 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::InsertProgram(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 114 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 115 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 116 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 117 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
Definition at line 118 of file recordingrule.h.
Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), RecordingInfo::GetAutoRunJobs(), PostProcEditor::Load(), Load(), PostProcEditor::Save(), and Save().
| QDateTime RecordingRule::m_nextRecording |
Definition at line 122 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), and Save().
| QDateTime RecordingRule::m_lastRecorded |
Definition at line 123 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), and Save().
| QDateTime RecordingRule::m_lastDeleted |
Definition at line 124 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), and Save().
Definition at line 125 of file recordingrule.h.
Referenced by FillRecRuleInfo(), Load(), and Save().
| QString RecordingRule::m_recordTable |
Definition at line 128 of file recordingrule.h.
Referenced by Save(), and UseTempTable().
Definition at line 129 of file recordingrule.h.
Referenced by Save(), ScheduleEditor::ShowPreview(), and UseTempTable().
Definition at line 133 of file recordingrule.h.
Referenced by ScheduleEditor::Load(), Load(), and MakeOverride().
const ProgramInfo* RecordingRule::m_progInfo [private] |
Definition at line 141 of file recordingrule.h.
Referenced by AssignProgramInfo(), and LoadByProgram().
QString RecordingRule::m_searchTypeString [private] |
Definition at line 144 of file recordingrule.h.
Referenced by LoadBySearch(), ModifyPowerSearchByID(), and ToMap().
QString RecordingRule::m_searchFor [private] |
Definition at line 145 of file recordingrule.h.
Referenced by LoadBySearch(), ModifyPowerSearchByID(), and ToMap().
bool RecordingRule::m_loaded [private] |
Definition at line 149 of file recordingrule.h.
Referenced by Load(), LoadByProgram(), LoadBySearch(), and ModifyPowerSearchByID().
1.6.3