]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/private/timer.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / generic / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/private/timer.h
3 // Purpose: Generic implementation of wxTimer class
4 // Author: Vaclav Slavik
5 // Copyright: (c) Vaclav Slavik
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _WX_GENERIC_PRIVATE_TIMER_H_
10 #define _WX_GENERIC_PRIVATE_TIMER_H_
11
12 #if wxUSE_TIMER
13
14 #include "wx/private/timer.h"
15
16 //-----------------------------------------------------------------------------
17 // wxTimer
18 //-----------------------------------------------------------------------------
19
20 class wxTimerDesc;
21
22 class WXDLLIMPEXP_BASE wxGenericTimerImpl : public wxTimerImpl
23 {
24 public:
25 wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
26 virtual ~wxGenericTimerImpl();
27
28 virtual bool Start(int millisecs = -1, bool oneShot = false);
29 virtual void Stop();
30
31 virtual bool IsRunning() const;
32
33 // implementation
34 static void NotifyTimers();
35
36 protected:
37 void Init();
38
39 private:
40 wxTimerDesc *m_desc;
41 };
42
43 #endif // wxUSE_TIMER
44
45 #endif // _WX_GENERIC_PRIVATE_TIMER_H_