MythTV  master
backendhousekeeper.h
Go to the documentation of this file.
1 #ifndef BACKENDHOUSEKEEPER_H_
2 #define BACKENDHOUSEKEEPER_H_
3 
4 #include "housekeeper.h"
5 #include "mythsystemlegacy.h"
6 
8 {
9  public:
11  bool DoRun(void) override; // HouseKeeperTask
12 };
13 
14 
16 {
17  public:
18  CleanupTask(void) : DailyHouseKeeperTask("DBCleanup", kHKGlobal) {};
19  bool DoRun(void) override; // HouseKeeperTask
20 
21  private:
22  static void CleanupOldRecordings(void);
23  static void CleanupInUsePrograms(void);
24  static void CleanupOrphanedLiveTV(void);
25  static void CleanupRecordedTables(void);
26  static void CleanupChannelTables(void);
27  static void CleanupProgramListings(void);
28 };
29 
31 {
32  public:
34  ~RadioStreamUpdateTask(void) override;
35  bool DoRun(void) override; // HouseKeeperTask
36  bool DoCheckRun(const QDateTime& now) override; // PeriodicHouseKeeperTask
37  void Terminate(void) override; // HouseKeeperTask
38  private:
39  MythSystemLegacy *m_msMU { nullptr };
40 };
41 
43 {
44  public:
45  ThemeUpdateTask(void) : DailyHouseKeeperTask("ThemeUpdateNotifications",
47  bool DoRun(void) override; // HouseKeeperTask
48  bool DoCheckRun(const QDateTime& now) override; // PeriodicHouseKeeperTask
49  void Terminate(void) override; // HouseKeeperTask
50  private:
51  bool LoadVersion(const QString &version, int download_log_level);
52 
53  bool m_running { false };
54  QString m_url;
55 };
56 
58 {
59  public:
60  ArtworkTask(void);
61  ~ArtworkTask(void) override;
62  bool DoRun(void) override; // HouseKeeperTask
63  bool DoCheckRun(const QDateTime& now) override; // PeriodicHouseKeeperTask
64  void Terminate(void) override; // HouseKeeperTask
65  private:
66  MythSystemLegacy *m_msMML { nullptr };
67 };
68 
69 
71 {
72  public:
73  JobQueueRecoverTask(void) : DailyHouseKeeperTask("JobQueueRecover",
74  kHKLocal) {};
75  bool DoRun(void) override; // HouseKeeperTask
76 };
77 
78 
80 {
81  public:
83  ~MythFillDatabaseTask(void) override;
84 
85  static bool UseSuggestedTime(void);
86 
87  bool DoCheckRun(const QDateTime& now) override; // PeriodicHouseKeeperTask
88  bool DoRun(void) override; // HouseKeeperTask
89 
90  void Terminate(void) override; // HouseKeeperTask
91 
92  void SetHourWindowFromDB(void);
93  private:
94  MythSystemLegacy *m_msMFD { nullptr };
95 // bool m_running;
96 };
97 
98 
99 
100 #endif
static void CleanupInUsePrograms(void)
static void CleanupChannelTables(void)
bool DoCheckRun(const QDateTime &now) override
void Terminate(void) override
bool DoRun(void) override
MythSystemLegacy * m_msMFD
~MythFillDatabaseTask(void) override
bool DoRun(void) override
bool DoCheckRun(const QDateTime &now) override
static void CleanupOrphanedLiveTV(void)
bool DoRun(void) override
void Terminate(void) override
bool DoRun(void) override
MythSystemLegacy * m_msMML
bool DoCheckRun(const QDateTime &now) override
task should only run once per cluster e.g.
Definition: housekeeper.h:25
~ArtworkTask(void) override
MythSystemLegacy * m_msMU
task is queued when HouseKeeper is started
Definition: housekeeper.h:35
void Terminate(void) override
static void CleanupOldRecordings(void)
static void CleanupRecordedTables(void)
Modified PeriodicHouseKeeperTask for tasks to be run once daily.
Definition: housekeeper.h:107
~RadioStreamUpdateTask(void) override
bool DoRun(void) override
bool DoCheckRun(const QDateTime &now) override
static void CleanupProgramListings(void)
bool DoRun(void) override
bool LoadVersion(const QString &version, int download_log_level)
static bool UseSuggestedTime(void)
bool DoRun(void) override
task should only run once per machine e.g.
Definition: housekeeper.h:27
void Terminate(void) override