GenericTask Class Reference

#include <generic_task.h>

Inheritance diagram for GenericTask:
zmm::Object CMAddFileTask CMLoadAccountingTask CMRemoveObjectTask CMRescanDirectoryTask

Public Member Functions

 GenericTask (task_owner_t taskOwner)
virtual void run ()=0
void setDescription (zmm::String description)
zmm::String getDescription ()
task_type_t getType ()
unsigned int getID ()
unsigned int getParentID ()
void setID (unsigned int taskID)
void setParentID (unsigned int parentTaskID=0)
bool isValid ()
bool isCancellable ()
void invalidate ()
task_owner_t getOwner ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

zmm::String description
task_type_t taskType
task_owner_t taskOwner
unsigned int parentTaskID
unsigned int taskID
bool valid
bool cancellable
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 25 of file generic_task.h.


Constructor & Destructor Documentation

GenericTask::GenericTask ( task_owner_t  taskOwner  ) 

Definition at line 10 of file generic_task.cc.

References cancellable, Invalid, parentTaskID, taskID, taskType, and valid.


Member Function Documentation

zmm::String GenericTask::getDescription (  )  [inline]

Definition at line 40 of file generic_task.h.

References description.

unsigned int GenericTask::getID (  )  [inline]

Definition at line 42 of file generic_task.h.

References taskID.

task_owner_t GenericTask::getOwner (  )  [inline]

Definition at line 49 of file generic_task.h.

References taskOwner.

unsigned int GenericTask::getParentID (  )  [inline]

Definition at line 43 of file generic_task.h.

References parentTaskID.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

task_type_t GenericTask::getType (  )  [inline]

Definition at line 41 of file generic_task.h.

References taskType.

void GenericTask::invalidate (  )  [inline]

Definition at line 48 of file generic_task.h.

References valid.

bool GenericTask::isCancellable (  )  [inline]

Definition at line 47 of file generic_task.h.

References cancellable.

bool GenericTask::isValid (  )  [inline]

Definition at line 46 of file generic_task.h.

References valid.

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]
virtual void GenericTask::run (  )  [pure virtual]
void GenericTask::setDescription ( zmm::String  description  )  [inline]

Definition at line 39 of file generic_task.h.

void GenericTask::setID ( unsigned int  taskID  )  [inline]

Definition at line 44 of file generic_task.h.

void GenericTask::setParentID ( unsigned int  parentTaskID = 0  )  [inline]

Definition at line 45 of file generic_task.h.

References parentTaskID.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
bool GenericTask::cancellable [protected]

Definition at line 34 of file generic_task.h.

Referenced by GenericTask(), and isCancellable().

Definition at line 28 of file generic_task.h.

Referenced by getDescription().

pthread_mutex_t zmm::Object::mutex [protected, inherited]
unsigned int GenericTask::parentTaskID [protected]

Definition at line 31 of file generic_task.h.

Referenced by GenericTask(), getParentID(), and setParentID().

unsigned int GenericTask::taskID [protected]

Definition at line 32 of file generic_task.h.

Referenced by GenericTask(), and getID().

Definition at line 30 of file generic_task.h.

Referenced by getOwner().

bool GenericTask::valid [protected]

Definition at line 33 of file generic_task.h.

Referenced by GenericTask(), invalidate(), and isValid().


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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1