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