1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
//
// C++ Interface: toBackground
//
// Copyright: See COPYING file that comes with this distribution
//
#ifndef TOBACKGROUND_H
#define TOBACKGROUND_H
#include "config.h"
#include "totimer.h"
class toMain;
/**
* A descendant of timer which will indicate in the statusbar of the
* main window when any timer is running. Can not do singleshots, only
* periodic intervals.
*/
class toBackground : public toTimer
{
public:
/**
* Create a background timer widget.
* @param parent Parent widget.
* @param name Name of widget.
*/
toBackground(QObject* parent = 0, const char* name = 0);
~toBackground();
/** Start repeating timer with msec interval.
* @param msec Millsecond repeat interval.
*/
void start(int msec);
/** Stop timer
*/
void stop(void);
static void init(void);
private:
static int Running;
toMain* main;
};
#endif
|