[go: up one dir, main page]

File: tobackground.h

package info (click to toggle)
tora 1.3.23-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,984 kB
  • ctags: 14,460
  • sloc: cpp: 123,554; sh: 16,181; makefile: 966; xml: 69
file content (45 lines) | stat: -rw-r--r-- 915 bytes parent folder | download
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