X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..b1d66b5415f7befb45e050d7097571642b8bfa56:/include/wx/mgl/timer.h diff --git a/include/wx/mgl/timer.h b/include/wx/mgl/timer.h index 36142afcd2..680fc17e69 100644 --- a/include/wx/mgl/timer.h +++ b/include/wx/mgl/timer.h @@ -1,9 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// // 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 ///////////////////////////////////////////////////////////////////////////// @@ -19,27 +19,31 @@ // 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__