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

can be used to implement a background job More...

#include <backjob.h>

+ Inheritance diagram for bbb::BackJob:

Public Types

typedef void(* KbTimeout )(BackJob *bkj)
 the function to call when the timeout expires
 

Signals

void timeout (void)
 fired on regular intervals when the job is active
 

Public Member Functions

 BackJob (QObject *parent=NULL)
 constructor;
 
virtual ~BackJob (void)
 destructor;
 
void stop (void)
 starts the timer
 
void start (void)
 stops the timer
 
bool isStarted (void)
 tell if the imer is running
 
void setCallback (KbTimeout val)
 sets the callback to use
 
KbTimeout callback (void)
 retrieves the callback used
 
void setFrequency (int val)
 sets the callback to use
 
int frequency (void)
 retrieves the callback used
 

Protected Member Functions

void timerEvent (QTimerEvent *event)
 fired on regular intervals when started
 

Detailed Description

can be used to implement a background job


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