MythTV  master
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Task Class Referenceabstract

#include <taskqueue.h>

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

Public Member Functions

 Task (const QString &debugName)
 
long Id () const
 
virtual void Execute (TaskQueue *pQueue)=0
 
virtual QString Name ()=0
 
- 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...
 

Protected Member Functions

virtual ~Task ()=default
 
- Protected Member Functions inherited from ReferenceCounter
virtual ~ReferenceCounter (void)
 Called on destruction, will warn if object deleted with references in place. More...
 

Protected Attributes

long m_nTaskId
 
- 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}
 

Static Protected Attributes

static long m_nTaskCount = 0
 

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...
 

Detailed Description

Definition at line 53 of file taskqueue.h.

Constructor & Destructor Documentation

◆ ~Task()

virtual Task::~Task ( )
protectedvirtualdefault

◆ Task()

Task::Task ( const QString &  debugName)
explicit

Definition at line 41 of file taskqueue.cpp.

Member Function Documentation

◆ Id()

long Task::Id ( void  ) const
inline

Definition at line 70 of file taskqueue.h.

◆ Execute()

virtual void Task::Execute ( TaskQueue pQueue)
pure virtual

◆ Name()

virtual QString Task::Name ( )
pure virtual

Member Data Documentation

◆ m_nTaskCount

long Task::m_nTaskCount = 0
staticprotected

Definition at line 56 of file taskqueue.h.

Referenced by Task().

◆ m_nTaskId

long Task::m_nTaskId
protected

Definition at line 58 of file taskqueue.h.

Referenced by Id(), and Task().


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