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
ArtworkTask::ArtworkTask
ArtworkTask(void)
Definition: backendhousekeeper.cpp:562
JobQueueRecoverTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:623
ThemeUpdateTask::m_running
bool m_running
Definition: backendhousekeeper.h:53
ThemeUpdateTask
Definition: backendhousekeeper.h:43
ThemeUpdateTask::ThemeUpdateTask
ThemeUpdateTask(void)
Definition: backendhousekeeper.h:45
MythFillDatabaseTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:713
MythSystemLegacy
Definition: mythsystemlegacy.h:68
MythFillDatabaseTask::SetHourWindowFromDB
void SetHourWindowFromDB(void)
Definition: backendhousekeeper.cpp:635
JobQueueRecoverTask::JobQueueRecoverTask
JobQueueRecoverTask(void)
Definition: backendhousekeeper.h:73
housekeeper.h
CleanupTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:111
RadioStreamUpdateTask::Terminate
void Terminate(void) override
Definition: backendhousekeeper.cpp:555
ThemeUpdateTask::DoCheckRun
bool DoCheckRun(const QDateTime &now) override
Definition: backendhousekeeper.cpp:393
LogCleanerTask::LogCleanerTask
LogCleanerTask(void)
Definition: backendhousekeeper.h:10
CleanupTask::CleanupInUsePrograms
static void CleanupInUsePrograms(void)
Definition: backendhousekeeper.cpp:135
MythFillDatabaseTask::m_msMFD
MythSystemLegacy * m_msMFD
Definition: backendhousekeeper.h:94
ArtworkTask::DoCheckRun
bool DoCheckRun(const QDateTime &now) override
Definition: backendhousekeeper.cpp:610
RadioStreamUpdateTask
Definition: backendhousekeeper.h:31
RadioStreamUpdateTask::~RadioStreamUpdateTask
~RadioStreamUpdateTask(void) override
Definition: backendhousekeeper.cpp:539
ThemeUpdateTask::Terminate
void Terminate(void) override
Definition: backendhousekeeper.cpp:489
ArtworkTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:567
CleanupTask::CleanupOldRecordings
static void CleanupOldRecordings(void)
Definition: backendhousekeeper.cpp:123
ThemeUpdateTask::m_url
QString m_url
Definition: backendhousekeeper.h:54
RadioStreamUpdateTask::m_msMU
MythSystemLegacy * m_msMU
Definition: backendhousekeeper.h:39
LogCleanerTask
Definition: backendhousekeeper.h:8
mythsystemlegacy.h
CleanupTask::CleanupTask
CleanupTask(void)
Definition: backendhousekeeper.h:18
RadioStreamUpdateTask::RadioStreamUpdateTask
RadioStreamUpdateTask(void)
Definition: backendhousekeeper.cpp:496
MythFillDatabaseTask::MythFillDatabaseTask
MythFillDatabaseTask(void)
Definition: backendhousekeeper.cpp:629
CleanupTask::CleanupRecordedTables
static void CleanupRecordedTables(void)
Definition: backendhousekeeper.cpp:187
ArtworkTask::~ArtworkTask
~ArtworkTask(void) override
Definition: backendhousekeeper.cpp:604
MythFillDatabaseTask::~MythFillDatabaseTask
~MythFillDatabaseTask(void) override
Definition: backendhousekeeper.cpp:755
MythFillDatabaseTask::Terminate
void Terminate(void) override
Definition: backendhousekeeper.cpp:761
ThemeUpdateTask::LoadVersion
bool LoadVersion(const QString &version, int download_log_level)
Definition: backendhousekeeper.cpp:442
CleanupTask::CleanupOrphanedLiveTV
static void CleanupOrphanedLiveTV(void)
Definition: backendhousekeeper.cpp:147
ArtworkTask
Definition: backendhousekeeper.h:58
CleanupTask::CleanupProgramListings
static void CleanupProgramListings(void)
Definition: backendhousekeeper.cpp:307
JobQueueRecoverTask
Definition: backendhousekeeper.h:71
ThemeUpdateTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:399
ArtworkTask::Terminate
void Terminate(void) override
Definition: backendhousekeeper.cpp:616
ArtworkTask::m_msMML
MythSystemLegacy * m_msMML
Definition: backendhousekeeper.h:66
CleanupTask
Definition: backendhousekeeper.h:16
MythFillDatabaseTask::UseSuggestedTime
static bool UseSuggestedTime(void)
Definition: backendhousekeeper.cpp:657
LogCleanerTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:31
CleanupTask::CleanupChannelTables
static void CleanupChannelTables(void)
Definition: backendhousekeeper.cpp:277
kHKRunOnStartup
@ kHKRunOnStartup
task is queued when HouseKeeper is started
Definition: housekeeper.h:35
RadioStreamUpdateTask::DoCheckRun
bool DoCheckRun(const QDateTime &now) override
Definition: backendhousekeeper.cpp:545
MythFillDatabaseTask
Definition: backendhousekeeper.h:80
RadioStreamUpdateTask::DoRun
bool DoRun(void) override
Definition: backendhousekeeper.cpp:501
kHKLocal
@ kHKLocal
task should only run once per machine e.g.
Definition: housekeeper.h:27
nv_python_libs.bbciplayer.bbciplayer_api.version
string version
Definition: bbciplayer_api.py:81
DailyHouseKeeperTask
Modified PeriodicHouseKeeperTask for tasks to be run once daily.
Definition: housekeeper.h:108
kHKGlobal
@ kHKGlobal
task should only run once per cluster e.g.
Definition: housekeeper.h:25
MythFillDatabaseTask::DoCheckRun
bool DoCheckRun(const QDateTime &now) override
Definition: backendhousekeeper.cpp:680