libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
bbb::Timer Class Reference

Simple timer. More...

#include <timer.h>

+ Inheritance diagram for bbb::Timer:

Public Types

typedef bool(* kbTimer )(Timer *t)
 the callback that we're informing
 

Public Member Functions

 Timer (void)
 constructor;
 
virtual ~Timer (void)
 destructor;
 
kbTimer callback (void) const
 the callback
 
bool isRunning (void) const
 is it running
 
bool start (int msec)
 start the timer More...
 
void stop (void)
 stop the timer
 
void setCallback (kbTimer kb)
 set the callback that is invoked when interval ellapses occurs
 

Protected Member Functions

void timerEvent (QTimerEvent *event)
 internal timer fires;
 

Detailed Description

Simple timer.

Notice that it needs an event loop to work

Member Function Documentation

bool Timer::start ( int  msec)

start the timer

If already started the interval is changed


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