[go: up one dir, main page]

File: tobackground.h

package info (click to toggle)
tora 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 27,560 kB
  • ctags: 21,885
  • sloc: cpp: 189,278; sh: 17,561; makefile: 692; python: 159; xml: 69; ansic: 56
file content (45 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (4)
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