Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

UT_Worker Class Reference

#include <ut_worker.h>

Inheritance diagram for UT_Worker:
UT_Idle UT_Timer UT_UnixIdle UT_Win32Idle UT_UNIXTimer UT_Win32Timer

List of all members.

Public Member Functions

virtual ~UT_Worker ()
virtual void stop (void)=0
virtual void start (void)=0
 suspend events
virtual void fire (void)
 resume events
UT_WorkerCallback getCallback () const
 fire off an event
void * getInstanceData () const

Protected Member Functions

 UT_Worker ()
 UT_Worker (UT_WorkerCallback cb, void *data)
void _setCallback (UT_WorkerCallback cb)
void _setInstanceData (void *data)

Private Member Functions

 UT_Worker (UT_Worker &)

Private Attributes

void * m_pInstanceData
UT_WorkerCallback m_pCallback

Detailed Description

This class is a generic "worker" class which will serve as a base-class for UT_Timers and UT_Idles

Constructor & Destructor Documentation

UT_Worker::~UT_Worker (  )  [virtual]

Public virtual destructor

UT_Worker::UT_Worker (  )  [protected]

Protected constructor for this base-class

UT_Worker::UT_Worker ( UT_WorkerCallback  cb,
void *  data 
) [protected]

Protected constructor for this base-class, accepts instance data and callback

UT_Worker::UT_Worker ( UT_Worker  )  [private]

Member Function Documentation

void UT_Worker::_setCallback ( UT_WorkerCallback  cb  )  [protected]

Sets the worker's callback function to


References m_pCallback.

Referenced by UT_Timer::setCallback().

void UT_Worker::_setInstanceData ( void *  data  )  [protected]

Sets the worker's instance data to


References m_pInstanceData.

Referenced by UT_Timer::setInstanceData().

void UT_Worker::fire ( void   )  [virtual]

resume events

Fires off the event with the proper callback data

References m_pCallback, and UT_ASSERT.

Referenced by UT_Win32Idle::_fireall(), _Timer_Proc(), FV_View::endDrag(), and Global_Win32TimerProc().

UT_WorkerCallback UT_Worker::getCallback (  )  const

fire off an event

Gets the worker's callback function

References m_pCallback.

Member Data Documentation

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