X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4bbc9f720cbd99d7092e8944e671a6291068b13..af01f1ba0d697c07173f436ab661b4c833258a91:/include/wx/mgl/timer.h diff --git a/include/wx/mgl/timer.h b/include/wx/mgl/timer.h index b9b2841651..680fc17e69 100644 --- a/include/wx/mgl/timer.h +++ b/include/wx/mgl/timer.h @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // Name: timer.h -// Purpose: +// Purpose: wxTimer class // Author: Vaclav Slavik // Id: $Id$ // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) @@ -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 ) { return TRUE; } - 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__