]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/private/timer.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / os2 / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/private/timer.h
3 // Purpose: wxTimer class
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/17/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_OS2_PRIVATE_TIMER_H_
12 #define _WX_OS2_PRIVATE_TIMER_H_
13
14 #include "wx/private/timer.h"
15
16 class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl
17 {
18 friend void wxProcessTimer(wxOS2TimerImpl& timer);
19
20 public:
21 wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
22
23 virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
24 virtual void Stop(void);
25
26 virtual bool IsRunning(void) const { return m_ulId != 0L; }
27
28 protected:
29 ULONG m_ulId;
30 HAB m_Hab;
31 };
32
33 extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
34 ,ULONG
35 ,int nIdTimer
36 ,ULONG
37 );
38 #endif // _WX_OS2_PRIVATE_TIMER_H_