CMAddFileTask Class Reference

#include <content_manager.h>

Inheritance diagram for CMAddFileTask:
GenericTask zmm::Object

Public Member Functions

 CMAddFileTask (zmm::String path, zmm::String rootpath, bool recursive=false, bool hidden=false, bool cancellable=true)
zmm::String getPath ()
zmm::String getRootPath ()
virtual void run ()
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 path
zmm::String rootpath
bool recursive
bool hidden
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 79 of file content_manager.h.

Constructor & Destructor Documentation

CMAddFileTask::CMAddFileTask ( zmm::String  path,
zmm::String  rootpath,
bool  recursive = false,
bool  hidden = false,
bool  cancellable = true 

Definition at line 2388 of file

References AddFile, and GenericTask::taskType.

Member Function Documentation

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

Definition at line 40 of file generic_task.h.

References GenericTask::description.

unsigned int GenericTask::getID (  )  [inline, inherited]

Definition at line 42 of file generic_task.h.

References GenericTask::taskID.

task_owner_t GenericTask::getOwner (  )  [inline, inherited]

Definition at line 49 of file generic_task.h.

References GenericTask::taskOwner.

unsigned int GenericTask::getParentID (  )  [inline, inherited]

Definition at line 43 of file generic_task.h.

References GenericTask::parentTaskID.

String CMAddFileTask::getPath (  ) 

Definition at line 2398 of file

References path.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file

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

String CMAddFileTask::getRootPath (  ) 

Definition at line 2403 of file

References rootpath.

task_type_t GenericTask::getType (  )  [inline, inherited]

Definition at line 41 of file generic_task.h.

References GenericTask::taskType.

void GenericTask::invalidate (  )  [inline, inherited]

Definition at line 48 of file generic_task.h.

References GenericTask::valid.

bool GenericTask::isCancellable (  )  [inline, inherited]

Definition at line 47 of file generic_task.h.

References GenericTask::cancellable.

bool GenericTask::isValid (  )  [inline, inherited]

Definition at line 46 of file generic_task.h.

References GenericTask::valid.

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

Definition at line 87 of file

References FREE.

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

Definition at line 83 of file

References MALLOC.

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

Definition at line 39 of file generic_task.h.

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

Definition at line 44 of file generic_task.h.

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

Definition at line 45 of file generic_task.h.

References GenericTask::parentTaskID.

Field Documentation

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

Definition at line 34 of file generic_task.h.

Referenced by GenericTask::GenericTask(), and GenericTask::isCancellable().

zmm::String GenericTask::description [protected, inherited]

Definition at line 28 of file generic_task.h.

Referenced by GenericTask::getDescription().

bool CMAddFileTask::hidden [protected]

Definition at line 85 of file content_manager.h.

Referenced by run().

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

Definition at line 82 of file content_manager.h.

Referenced by getPath(), and run().

bool CMAddFileTask::recursive [protected]

Definition at line 84 of file content_manager.h.

Referenced by run().

Definition at line 83 of file content_manager.h.

Referenced by getRootPath().

unsigned int GenericTask::taskID [protected, inherited]

Definition at line 32 of file generic_task.h.

Referenced by GenericTask::GenericTask(), and GenericTask::getID().

task_owner_t GenericTask::taskOwner [protected, inherited]

Definition at line 30 of file generic_task.h.

Referenced by GenericTask::getOwner().

task_type_t GenericTask::taskType [protected, inherited]
bool GenericTask::valid [protected, inherited]

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

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