1 #ifndef RECORDING_RULE_H 2 #define RECORDING_RULE_H 9 #include <QCoreApplication> 36 static const int kNumFilters = 12;
41 void ensureSortFields(
void);
42 bool Load(
bool asTemplate =
false);
44 bool LoadBySearch(
RecSearchType lsearch, QString textname, QString forwhat,
45 QString joininfo =
"",
ProgramInfo *pginfo =
nullptr);
46 bool LoadTemplate(QString category, QString categoryType =
"Default");
48 bool ModifyPowerSearchByID(
int rid, QString textname, QString forwhat,
49 QString joininfo =
"");
50 bool MakeOverride(
void);
51 bool MakeTemplate(QString category);
53 bool Save(
bool sendSig =
true);
54 bool Delete(
bool sendSig =
true);
57 void UseTempTable(
bool usetemp, QString table =
"record_tmp");
58 static unsigned GetDefaultFilter(
void);
60 void ToMap(
InfoMap &infoMap)
const;
65 bool IsValid(QString &text);
67 static QString SearchTypeToString(
const RecSearchType searchType);
68 static QStringList GetTemplateNames(
void);
154 void AssignProgramInfo();
enum RecSearchTypes RecSearchType
QTime m_findtime
Day of the week for once per week etc.
enum RecordingDupInTypes RecordingDupInType
RecordingDupMethodType m_dupMethod
Q_DECLARE_METATYPE(GrabberScript *)
QDateTime m_nextRecording
Holds information on recordings and videos.
QHash< QString, QString > InfoMap
bool m_autoMetadataLookup
Internal representation of a recording rule, mirrors the record table.
int m_parentRecID
Unique Recording Rule ID.
RecordingDupInType m_dupIn
QString m_title
Recording rule is enabled?
const ProgramInfo * m_progInfo
enum AutoExpireTypes AutoExpireType
AutoExpireType GetAutoExpire(void) const
int m_findid
Time for timeslot rules.
RecSearchType m_searchType