RecordingRule Class Reference

Internal representation of a recording rule, mirrors the record table. More...

#include <recordingrule.h>

List of all members.

Public Member Functions

 RecordingRule ()
 ~RecordingRule ()
bool Load (void)
bool LoadByProgram (const ProgramInfo *proginfo)
bool LoadBySearch (RecSearchType lsearch, QString textname, QString forwhat, QString from="")
bool ModifyPowerSearchByID (int rid, QString textname, QString forwhat, QString from="")
bool MakeOverride (void)
bool Save (bool sendSig=true)
bool Delete (bool sendSig=true)
bool IsLoaded () const
void UseTempTable (bool usetemp, QString table="record_tmp")
void ToMap (InfoMap &infoMap) const
AutoExpireType GetAutoExpire (void) const

Static Public Member Functions

static unsigned GetDefaultFilter (void)

Public Attributes

int m_recordID
int m_parentRecID
 Unique Recording Rule ID.
bool m_isInactive
QString m_title
 Recording rule is enabled?
QString m_subtitle
QString m_description
uint m_season
uint m_episode
QString m_category
QTime m_starttime
QDate m_startdate
QTime m_endtime
QDate m_enddate
QString m_seriesid
QString m_programid
QString m_inetref
int m_channelid
QString m_station
int m_findday
 callsign?
QTime m_findtime
 Day of the week for once per week etc.
int m_findid
 Time for timeslot rules.
RecordingType m_type
RecSearchType m_searchType
int m_recPriority
int m_prefInput
int m_startOffset
int m_endOffset
RecordingDupMethodType m_dupMethod
RecordingDupInType m_dupIn
unsigned m_filter
QString m_recProfile
QString m_recGroup
QString m_storageGroup
QString m_playGroup
bool m_autoExpire
int m_maxEpisodes
bool m_maxNewest
bool m_autoCommFlag
bool m_autoTranscode
int m_transcoder
bool m_autoUserJob1
bool m_autoUserJob2
bool m_autoUserJob3
bool m_autoUserJob4
bool m_autoMetadataLookup
QDateTime m_nextRecording
QDateTime m_lastRecorded
QDateTime m_lastDeleted
int m_averageDelay
QString m_recordTable
int m_tempID
bool m_isOverride

Static Public Attributes

static const int kNumFilters = 12

Private Member Functions

void AssignProgramInfo ()

Private Attributes

const ProgramInfom_progInfo
QString m_searchTypeString
QString m_searchFor
bool m_loaded

Detailed Description

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.


Constructor & Destructor Documentation

RecordingRule::RecordingRule (  ) 

Definition at line 21 of file recordingrule.cpp.

RecordingRule::~RecordingRule (  )  [inline]

Definition at line 36 of file recordingrule.h.


Member Function Documentation

bool RecordingRule::Load ( void   ) 
bool RecordingRule::LoadByProgram ( const ProgramInfo proginfo  ) 
bool RecordingRule::LoadBySearch ( RecSearchType  lsearch,
QString  textname,
QString  forwhat,
QString  from = "" 
)
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   ) 
bool RecordingRule::Save ( bool  sendSig = true  ) 
bool RecordingRule::Delete ( bool  sendSig = true  ) 
bool RecordingRule::IsLoaded (  )  const [inline]
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
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().


Member Data Documentation

const int RecordingRule::kNumFilters = 12 [static]

Definition at line 33 of file recordingrule.h.

Referenced by GetDefaultFilter(), and Scheduler::UpdateMatches().

Unique Recording Rule ID.

Definition at line 60 of file recordingrule.h.

Referenced by Dvr::AddRecordSchedule(), FillRecRuleInfo(), Load(), MakeOverride(), and Save().

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().

Definition at line 74 of file recordingrule.h.

Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().

Definition at line 75 of file recordingrule.h.

Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), Save(), and ToMap().

Definition at line 78 of file recordingrule.h.

Referenced by AssignProgramInfo(), FillRecRuleInfo(), Load(), and Save().

Definition at line 82 of file recordingrule.h.

Referenced by AssignProgramInfo(), FillRecRuleInfo(), 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 122 of file recordingrule.h.

Referenced by FillRecRuleInfo(), Load(), and Save().

Definition at line 123 of file recordingrule.h.

Referenced by FillRecRuleInfo(), Load(), and Save().

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().

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().

Definition at line 141 of file recordingrule.h.

Referenced by AssignProgramInfo(), and LoadByProgram().

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().

Definition at line 149 of file recordingrule.h.

Referenced by Load(), LoadByProgram(), LoadBySearch(), and ModifyPowerSearchByID().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri Feb 10 06:42:17 2012 for MythTV by  doxygen 1.6.3