/////////////////////////////////////////////////////////////////////////////
// Name: timer.h
-// Purpose:
+// Purpose: wxTimer class
// Author: Vaclav Slavik
// Id: $Id$
-// Copyright: (c) 2001 Vaclav Slavik
+// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// wxTimer
//-----------------------------------------------------------------------------
-//FIXME_MGL
+class wxTimerDesc;
+
class WXDLLEXPORT wxTimer : public wxTimerBase
{
public:
wxTimer() { Init(); }
wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id)
{ Init(); }
- ~wxTimer() {}
+ ~wxTimer();
- virtual bool Start( int millisecs = -1, bool oneShot = FALSE ) {}
- virtual void Stop() {}
+ virtual bool Start(int millisecs = -1, bool oneShot = FALSE);
+ virtual void Stop();
- virtual bool IsRunning() const { return m_tag != -1; }
+ virtual bool IsRunning() const;
-protected:
- void Init() {}
+ // implementation
+ static void NotifyTimers();
- int m_tag;
+protected:
+ void Init();
private:
+ wxTimerDesc *m_desc;
+
DECLARE_ABSTRACT_CLASS(wxTimer)
};
-#endif // __GTKTIMERH__
+#endif // __WX_TIMER_H__