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
Collaboration diagram for Task:
Collaboration graph

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

 ~Task () override=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 54 of file taskqueue.h.

Constructor & Destructor Documentation

◆ ~Task()

Task::~Task ( )

◆ Task()

Task::Task ( const QString &  debugName)

Definition at line 42 of file taskqueue.cpp.

Member Function Documentation

◆ Id()

long Task::Id ( ) const

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

Definition at line 57 of file taskqueue.h.

Referenced by Task().

◆ m_nTaskId

long Task::m_nTaskId

Definition at line 59 of file taskqueue.h.

Referenced by Id(), and Task().

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