1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-04-20 01:29:16 +00:00
|
|
|
// Name: wx/palmos/private/timer.h
|
1998-05-20 14:12:05 +00:00
|
|
|
// Purpose: wxTimer class
|
2007-04-20 01:29:16 +00:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
1998-05-20 14:12:05 +00:00
|
|
|
// Modified by:
|
2007-04-20 01:29:16 +00:00
|
|
|
// Created: 10/13/04
|
1998-05-20 14:12:05 +00:00
|
|
|
// RCS-ID: $Id$
|
2007-04-20 01:29:16 +00:00
|
|
|
// Copyright: (c) William Osborne
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 14:12:05 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 23:52:45 +00:00
|
|
|
#ifndef _WX_TIMER_H_
|
|
|
|
#define _WX_TIMER_H_
|
1998-05-20 14:12:05 +00:00
|
|
|
|
2008-03-02 00:53:32 +00:00
|
|
|
#include "wx/private/timer.h"
|
2007-04-20 01:29:16 +00:00
|
|
|
|
2008-03-26 15:06:00 +00:00
|
|
|
class WXDLLIMPEXP_CORE wxPalmOSTimerImpl : public wxTimerImpl
|
1998-05-20 14:12:05 +00:00
|
|
|
{
|
1998-10-14 23:53:24 +00:00
|
|
|
friend void wxProcessTimer(wxTimer& timer);
|
|
|
|
|
1998-10-12 13:09:15 +00:00
|
|
|
public:
|
2007-04-20 01:29:16 +00:00
|
|
|
wxPalmOSTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
|
|
|
|
virtual ~wxPalmOSTimerImpl();
|
1998-10-12 13:09:15 +00:00
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
|
1999-11-12 19:19:38 +00:00
|
|
|
virtual void Stop();
|
1998-10-12 13:09:15 +00:00
|
|
|
|
1999-11-12 19:19:38 +00:00
|
|
|
virtual bool IsRunning() const { return m_id != 0; }
|
1998-10-12 13:09:15 +00:00
|
|
|
|
1998-10-14 23:53:24 +00:00
|
|
|
protected:
|
2000-02-05 01:57:38 +00:00
|
|
|
void Init();
|
|
|
|
|
2003-09-24 14:48:33 +00:00
|
|
|
unsigned long m_id;
|
1998-05-20 14:12:05 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 23:52:45 +00:00
|
|
|
// _WX_TIMERH_
|