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

#include <libmythupnp/taskqueue.h>

Inheritance diagram for Task:
[legend]
Collaboration diagram for Task:
[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

 ~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 ( )
overrideprotecteddefault

◆ Task()

Task::Task ( const QString &  debugName)
explicit

Definition at line 42 of file taskqueue.cpp.

Member Function Documentation

◆ Id()

long Task::Id ( ) 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 57 of file taskqueue.h.

◆ m_nTaskId

long Task::m_nTaskId
protected

Definition at line 59 of file taskqueue.h.

Referenced by Id().


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