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