2001-06-26 21:05:06 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2007-04-20 01:29:16 +00:00
|
|
|
// Name: wx/generic/private/timer.h
|
2002-02-17 14:55:41 +00:00
|
|
|
// Purpose: Generic implementation of wxTimer class
|
2001-06-26 21:05:06 +00:00
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Id: $Id$
|
2003-03-17 12:27:00 +00:00
|
|
|
// Copyright: (c) Vaclav Slavik
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2001-06-26 21:05:06 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#ifndef _WX_GENERIC_PRIVATE_TIMER_H_
|
|
|
|
#define _WX_GENERIC_PRIVATE_TIMER_H_
|
|
|
|
|
2007-07-11 00:00:33 +00:00
|
|
|
#if wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#include "wx/private/timer.h"
|
2001-06-26 21:05:06 +00:00
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxTimer
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
2001-11-11 18:59:30 +00:00
|
|
|
class wxTimerDesc;
|
|
|
|
|
2007-12-12 01:35:53 +00:00
|
|
|
class WXDLLIMPEXP_BASE wxGenericTimerImpl : public wxTimerImpl
|
2001-06-26 21:05:06 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-04-20 01:29:16 +00:00
|
|
|
wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
|
|
|
|
virtual ~wxGenericTimerImpl();
|
2001-06-26 21:05:06 +00:00
|
|
|
|
2004-06-17 16:22:36 +00:00
|
|
|
virtual bool Start(int millisecs = -1, bool oneShot = false);
|
2001-11-11 18:59:30 +00:00
|
|
|
virtual void Stop();
|
2001-06-26 21:05:06 +00:00
|
|
|
|
2001-11-11 18:59:30 +00:00
|
|
|
virtual bool IsRunning() const;
|
2001-06-26 21:05:06 +00:00
|
|
|
|
2001-11-11 18:59:30 +00:00
|
|
|
// implementation
|
|
|
|
static void NotifyTimers();
|
2001-06-26 21:05:06 +00:00
|
|
|
|
2001-11-11 18:59:30 +00:00
|
|
|
protected:
|
|
|
|
void Init();
|
2001-06-26 21:05:06 +00:00
|
|
|
|
|
|
|
private:
|
2001-11-11 18:59:30 +00:00
|
|
|
wxTimerDesc *m_desc;
|
2001-06-26 21:05:06 +00:00
|
|
|
};
|
|
|
|
|
2007-07-11 00:00:33 +00:00
|
|
|
#endif // wxUSE_TIMER
|
|
|
|
|
2007-04-20 01:29:16 +00:00
|
|
|
#endif // _WX_GENERIC_PRIVATE_TIMER_H_
|