Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Attributes

Timer Class Reference

Inheritance diagram for Timer:
NamedObject CallBacker

List of all members.

Public Types

enum  ScriptPolicy { DefaultPolicy, DontWait, UserWait, KeepWaiting }

Public Member Functions

 Timer (const char *nm="Timer")
virtual ~Timer ()
bool isActive () const
bool isSingleShot () const
void start (int msec, bool singleshot=false)
void stop ()
void notifyHandler ()
void setScriptPolicy (ScriptPolicy)
ScriptPolicy scriptPolicy () const

Static Public Member Functions

static bool setUserWaitFlag (bool)
static Notifier< Timer > * timerStarts ()
static Notifier< Timer > * timerStopped ()
static Notifier< Timer > * timerShoots ()
static Notifier< Timer > * timerShot ()

Public Attributes

Notifier< Timertick

Protected Attributes

QTimer * timer_
QTimerCommcomm_
ScriptPolicy scriptpolicy_

Member Enumeration Documentation

Enumerator:
DefaultPolicy 
DontWait 
UserWait 
KeepWaiting 

Constructor & Destructor Documentation

Timer::Timer ( const char *  nm = "Timer"  ) 
virtual Timer::~Timer (  )  [virtual]

Member Function Documentation

bool Timer::isActive (  )  const
bool Timer::isSingleShot (  )  const
void Timer::notifyHandler (  ) 
ScriptPolicy Timer::scriptPolicy (  )  const
void Timer::setScriptPolicy ( ScriptPolicy   ) 
static bool Timer::setUserWaitFlag ( bool   )  [static]
void Timer::start ( int  msec,
bool  singleshot = false 
)
void Timer::stop (  ) 
static Notifier<Timer>* Timer::timerShoots (  )  [static]
static Notifier<Timer>* Timer::timerShot (  )  [static]
static Notifier<Timer>* Timer::timerStarts (  )  [static]
static Notifier<Timer>* Timer::timerStopped (  )  [static]

Member Data Documentation

QTimerComm* Timer::comm_ [protected]
QTimer* Timer::timer_ [protected]