1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-04-19 21:29:16 -04:00
|
|
|
// Name: wx/os2/private/timer.h
|
1999-07-29 01:11:30 -04:00
|
|
|
// Purpose: wxTimer class
|
1999-10-17 23:30:47 -04:00
|
|
|
// Author: David Webster
|
1999-07-29 01:11:30 -04:00
|
|
|
// Modified by:
|
1999-10-17 23:30:47 -04:00
|
|
|
// Created: 10/17/99
|
1999-07-29 01:11:30 -04:00
|
|
|
// RCS-ID: $Id$
|
1999-10-17 23:30:47 -04:00
|
|
|
// Copyright: (c) David Webster
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1999-07-29 01:11:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-04-22 08:31:08 -04:00
|
|
|
#ifndef _WX_OS2_PRIVATE_TIMER_H_
|
|
|
|
#define _WX_OS2_PRIVATE_TIMER_H_
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2007-04-22 08:31:08 -04:00
|
|
|
#include "wx/private/timer.h"
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxOS2TimerImpl: public wxTimerImpl
|
1999-07-29 01:11:30 -04:00
|
|
|
{
|
2007-04-19 21:29:16 -04:00
|
|
|
friend void wxProcessTimer(wxOS2TimerImpl& timer);
|
1999-10-17 23:30:47 -04:00
|
|
|
|
1999-07-29 01:11:30 -04:00
|
|
|
public:
|
2007-04-22 08:31:08 -04:00
|
|
|
wxOS2TimerImpl(wxTimer *timer) : wxTimerImpl(timer) { m_ulId = 0; }
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2007-04-22 08:31:08 -04:00
|
|
|
virtual bool Start(int nMilliseconds = -1, bool bOneShot = FALSE);
|
1999-11-14 23:50:09 -05:00
|
|
|
virtual void Stop(void);
|
1999-07-29 01:11:30 -04:00
|
|
|
|
2007-04-22 08:31:08 -04:00
|
|
|
virtual bool IsRunning(void) const { return m_ulId != 0L; }
|
1999-07-29 01:11:30 -04:00
|
|
|
|
|
|
|
protected:
|
1999-11-14 23:50:09 -05:00
|
|
|
ULONG m_ulId;
|
|
|
|
HAB m_Hab;
|
1999-07-29 01:11:30 -04:00
|
|
|
};
|
|
|
|
|
2000-11-28 17:12:58 -05:00
|
|
|
extern ULONG wxTimerProc( HWND WXUNUSED(hwnd)
|
|
|
|
,ULONG
|
|
|
|
,int nIdTimer
|
|
|
|
,ULONG
|
|
|
|
);
|
2007-04-22 08:31:08 -04:00
|
|
|
#endif // _WX_OS2_PRIVATE_TIMER_H_
|