can be used to implement a background job More...
#include <backjob.h>
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 | |
can be used to implement a background job