MythTV  master
Public Member Functions | Static Private Member Functions | List of all members
CleanupTask Class Reference

#include <backendhousekeeper.h>

Inheritance diagram for CleanupTask:
Inheritance graph
[legend]
Collaboration diagram for CleanupTask:
Collaboration graph
[legend]

Public Member Functions

 CleanupTask (void)
 
bool DoRun (void) override
 
- Public Member Functions inherited from DailyHouseKeeperTask
 DailyHouseKeeperTask (const QString &dbTag, HouseKeeperScope scope=kHKGlobal, HouseKeeperStartup startup=kHKNormal)
 
 DailyHouseKeeperTask (const QString &dbTag, std::chrono::hours minhour, std::chrono::hours maxhour, HouseKeeperScope scope=kHKGlobal, HouseKeeperStartup startup=kHKNormal)
 
virtual void SetHourWindow (std::chrono::hours min, std::chrono::hours max)
 
bool InWindow (const QDateTime &now) override
 
- Public Member Functions inherited from PeriodicHouseKeeperTask
 PeriodicHouseKeeperTask (const QString &dbTag, std::chrono::seconds period, float min=0.5, float max=1.1, std::chrono::seconds retry=0s, HouseKeeperScope scope=kHKGlobal, HouseKeeperStartup startup=kHKNormal)
 
bool DoCheckRun (const QDateTime &now) override
 
virtual bool PastWindow (const QDateTime &now)
 
QDateTime UpdateLastRun (const QDateTime &last, bool successful=true) override
 
void SetLastRun (const QDateTime &last, bool successful=true) override
 
virtual void SetWindow (float min, float max)
 
- Public Member Functions inherited from HouseKeeperTask
 HouseKeeperTask (const QString &dbTag, HouseKeeperScope scope=kHKGlobal, HouseKeeperStartup startup=kHKNormal)
 
 ~HouseKeeperTask () override=default
 
bool CheckRun (const QDateTime &now)
 
bool Run (void)
 
bool ConfirmRun (void) const
 
bool IsRunning (void) const
 
bool CheckImmediate (void)
 
bool CheckStartup (void)
 
QString GetTag (void)
 
QDateTime GetLastRun (void)
 
QDateTime GetLastSuccess (void)
 
HouseKeeperScope GetScope (void)
 
QDateTime QueryLastRun (void)
 
QDateTime QueryLastSuccess (void)
 
QDateTime UpdateLastRun (bool successful=true)
 
virtual void Terminate (void)
 
- Public Member Functions inherited from ReferenceCounter
 ReferenceCounter (const QString &debugName, bool logDebug=true)
 Creates reference counter with an initial value of 1. More...
 
virtual int IncrRef (void)
 Increments reference count. More...
 
virtual int DecrRef (void)
 Decrements reference count and deletes on 0. More...
 

Static Private Member Functions

static void CleanupOldRecordings (void)
 
static void CleanupInUsePrograms (void)
 
static void CleanupOrphanedLiveTV (void)
 
static void CleanupRecordedTables (void)
 
static void CleanupChannelTables (void)
 
static void CleanupProgramListings (void)
 

Additional Inherited Members

- Static Public Member Functions inherited from ReferenceCounter
static void PrintDebug (void)
 Print out any leaks if that level of debugging is enabled. More...
 
- Protected Member Functions inherited from DailyHouseKeeperTask
void CalculateWindow (void) override
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 
- Protected Attributes inherited from PeriodicHouseKeeperTask
std::chrono::seconds m_period
 
std::chrono::seconds m_retry
 
QPair< float, float > m_windowPercent
 
QPair< std::chrono::seconds, std::chrono::seconds > m_windowElapsed
 
double m_currentProb
 
- Protected Attributes inherited from ReferenceCounter
bool m_logDebug
 This is used to suppress creating LoggingItem classes for LoggingItem reference count changes. More...
 
QAtomicInt m_referenceCount {1}
 

Detailed Description

Definition at line 15 of file backendhousekeeper.h.

Constructor & Destructor Documentation

◆ CleanupTask()

CleanupTask::CleanupTask ( void  )
inline

Definition at line 18 of file backendhousekeeper.h.

Member Function Documentation

◆ DoRun()

bool CleanupTask::DoRun ( void  )
overridevirtual

Reimplemented from HouseKeeperTask.

Definition at line 115 of file backendhousekeeper.cpp.

◆ CleanupOldRecordings()

void CleanupTask::CleanupOldRecordings ( void  )
staticprivate

Definition at line 127 of file backendhousekeeper.cpp.

Referenced by DoRun().

◆ CleanupInUsePrograms()

void CleanupTask::CleanupInUsePrograms ( void  )
staticprivate

Definition at line 139 of file backendhousekeeper.cpp.

Referenced by DoRun().

◆ CleanupOrphanedLiveTV()

void CleanupTask::CleanupOrphanedLiveTV ( void  )
staticprivate

Definition at line 151 of file backendhousekeeper.cpp.

Referenced by DoRun().

◆ CleanupRecordedTables()

void CleanupTask::CleanupRecordedTables ( void  )
staticprivate

Definition at line 191 of file backendhousekeeper.cpp.

Referenced by DoRun().

◆ CleanupChannelTables()

void CleanupTask::CleanupChannelTables ( void  )
staticprivate

Definition at line 281 of file backendhousekeeper.cpp.

Referenced by DoRun().

◆ CleanupProgramListings()

void CleanupTask::CleanupProgramListings ( void  )
staticprivate

Definition at line 311 of file backendhousekeeper.cpp.

Referenced by DoRun().


The documentation for this class was generated from the following files: