1 #ifndef RECORDING_RULE_H
2 #define RECORDING_RULE_H
9 #include <QCoreApplication>
33 static const int kNumFilters = 16;
38 void ensureSortFields(
void);
39 bool Load(
bool asTemplate =
false);
41 bool LoadBySearch(
RecSearchType lsearch,
const QString& textname,
const QString& forwhat,
42 QString joininfo =
"",
ProgramInfo *pginfo =
nullptr);
43 bool LoadTemplate(
const QString& title,
44 const QString& category =
"Default",
45 const QString& categoryType =
"Default");
47 bool ModifyPowerSearchByID(
int rid,
const QString& textname, QString forwhat,
48 QString joininfo =
"");
49 bool MakeOverride(
void);
50 bool MakeTemplate(QString category);
52 bool Save(
bool sendSig =
true);
53 bool Delete(
bool sendSig =
true);
56 void UseTempTable(
bool usetemp,
const QString& table =
"record_tmp");
57 static unsigned GetDefaultFilter(
void);
59 void ToMap(
InfoMap &infoMap,
uint date_format = 0)
const;
64 bool IsValid(QString &msg)
const;
67 static QStringList GetTemplateNames(
void);
71 int m_parentRecID {0};
74 bool m_isInactive {
false};
107 int m_recPriority {0};
109 int m_startOffset {0};
115 unsigned m_filter {0};
120 QString m_recProfile {tr(
"Default")};
121 QString m_storageGroup {tr(
"Default")};
122 QString m_playGroup {tr(
"Default")};
125 int m_maxEpisodes {0};
126 bool m_autoExpire {
false};
127 bool m_maxNewest {
false};
131 bool m_autoCommFlag {
true};
132 bool m_autoTranscode {
false};
133 bool m_autoUserJob1 {
false};
134 bool m_autoUserJob2 {
false};
135 bool m_autoUserJob3 {
false};
136 bool m_autoUserJob4 {
false};
137 bool m_autoMetadataLookup {
true};
141 int m_averageDelay {100};
147 QString m_recordTable {
"record"};
152 bool m_isOverride {
false};
156 bool m_isTemplate {
false};
160 void AssignProgramInfo();
171 bool m_loaded {
false};