[go: up one dir, main page]

File: totimer.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 (39 lines) | stat: -rw-r--r-- 788 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
//
// C++ Interface: toTimer
//
// Description: 
// A timer descendant which also keep track of the last timer setting sent to it.
//
// Copyright: See COPYING file that comes with this distribution
//

#ifndef TOTIMER_H
#define TOTIMER_H

#include <qtimer.h>

class toTimer : public QTimer
{
    int LastTimer;

public:

    /** Create timer.
     * @param parent Parent object of timer.
     * @param name Name of timer.
     */
    toTimer(QObject *parent = 0, const char * name = 0);

    /** Start timer.
     * @param msec Milliseconds to timeout.
     * @param sshot Set to true if only timeout once.
     */
    int start(int msec, bool sshot = false);

    /** Get last timer start timeout.
     * @return Last timeout in millisecond.
     */
    int lastTimer(void);
};

#endif