]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/timer.h
Added wxStrnicmp and to wchar.h, not yet for Unicode mode.
[wxWidgets.git] / include / wx / os2 / timer.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
0e320a79 7// RCS-ID: $Id$
d90895ac
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
0e320a79
DW
15#include "wx/object.h"
16
17class WXDLLEXPORT wxTimer: public wxObject
18{
d90895ac
DW
19friend void wxProcessTimer(wxTimer& timer);
20
0e320a79
DW
21public:
22 wxTimer();
23 ~wxTimer();
24
25 virtual bool Start(int milliseconds = -1,
26 bool one_shot = FALSE); // Start timer
27 virtual void Stop(); // Stop timer
28
29 virtual void Notify() = 0; // Override this member
30
31 // Returns the current interval time (0 if stop)
d90895ac
DW
32 int Interval() const { return milli; };
33 bool OneShot() const { return oneShot; }
0e320a79
DW
34
35protected:
d90895ac
DW
36 bool oneShot ;
37 int milli ;
38 int lastMilli ;
0e320a79 39
d90895ac 40 long id;
0e320a79
DW
41
42private:
43 DECLARE_ABSTRACT_CLASS(wxTimer)
44};
45
0e320a79
DW
46#endif
47 // _WX_TIMER_H_