]>
Commit | Line | Data |
---|---|---|
ffecfa5a | 1 | ///////////////////////////////////////////////////////////////////////////// |
e1d63b79 | 2 | // Name: wx/palmos/timer.h |
ffecfa5a | 3 | // Purpose: wxTimer class |
e1d63b79 | 4 | // Author: William Osborne - minimal working wxPalmOS port |
ffecfa5a JS |
5 | // Modified by: |
6 | // Created: 10/13/04 | |
e1d63b79 | 7 | // RCS-ID: $Id$ |
ffecfa5a JS |
8 | // Copyright: (c) William Osborne |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_TIMER_H_ | |
13 | #define _WX_TIMER_H_ | |
14 | ||
ffecfa5a JS |
15 | class WXDLLEXPORT wxTimer : public wxTimerBase |
16 | { | |
17 | friend void wxProcessTimer(wxTimer& timer); | |
18 | ||
19 | public: | |
20 | wxTimer() { Init(); } | |
21 | wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) | |
22 | { Init(); } | |
23 | ~wxTimer(); | |
24 | ||
25 | virtual bool Start(int milliseconds = -1, bool oneShot = FALSE); | |
26 | virtual void Stop(); | |
27 | ||
28 | virtual bool IsRunning() const { return m_id != 0; } | |
29 | ||
30 | protected: | |
31 | void Init(); | |
32 | ||
33 | unsigned long m_id; | |
34 | ||
35 | private: | |
36 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxTimer) | |
37 | }; | |
38 | ||
39 | #endif | |
40 | // _WX_TIMERH_ |