2004-10-19 09:40:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2005-01-18 16:14:27 -05:00
|
|
|
// Name: wx/palmos/timer.h
|
2004-10-19 09:40:30 -04:00
|
|
|
// Purpose: wxTimer class
|
2005-01-18 16:14:27 -05:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
2004-10-19 09:40:30 -04:00
|
|
|
// Modified by:
|
|
|
|
// Created: 10/13/04
|
2005-01-18 16:14:27 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-10-19 09:40:30 -04:00
|
|
|
// Copyright: (c) William Osborne
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_TIMER_H_
|
|
|
|
#define _WX_TIMER_H_
|
|
|
|
|
2007-12-11 20:35:53 -05:00
|
|
|
class WXDLLIMPEXP_BASE wxTimer : public wxTimerBase
|
2004-10-19 09:40:30 -04:00
|
|
|
{
|
|
|
|
friend void wxProcessTimer(wxTimer& timer);
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxTimer() { Init(); }
|
|
|
|
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
|
|
|
|
{ Init(); }
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxTimer();
|
2004-10-19 09:40:30 -04:00
|
|
|
|
|
|
|
virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
|
|
|
|
virtual void Stop();
|
|
|
|
|
|
|
|
virtual bool IsRunning() const { return m_id != 0; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void Init();
|
|
|
|
|
|
|
|
unsigned long m_id;
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTimer)
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_TIMERH_
|