]>
Commit | Line | Data |
---|---|---|
32b8ec41 | 1 | ///////////////////////////////////////////////////////////////////////////// |
c2ca375c | 2 | // Name: wx/generic/private/timer.h |
a0cb0ba5 | 3 | // Purpose: Generic implementation of wxTimer class |
32b8ec41 VZ |
4 | // Author: Vaclav Slavik |
5 | // Id: $Id$ | |
6d89ddef | 6 | // Copyright: (c) Vaclav Slavik |
65571936 | 7 | // Licence: wxWindows licence |
32b8ec41 VZ |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
10 | ||
c2ca375c VZ |
11 | #ifndef _WX_GENERIC_PRIVATE_TIMER_H_ |
12 | #define _WX_GENERIC_PRIVATE_TIMER_H_ | |
13 | ||
14 | #include "wx/private/timer.h" | |
32b8ec41 | 15 | |
32b8ec41 VZ |
16 | //----------------------------------------------------------------------------- |
17 | // wxTimer | |
18 | //----------------------------------------------------------------------------- | |
19 | ||
1acd70f9 | 20 | class wxTimerDesc; |
1acd70f9 | 21 | |
c2ca375c | 22 | class WXDLLEXPORT wxGenericTimerImpl : public wxTimerImpl |
32b8ec41 VZ |
23 | { |
24 | public: | |
c2ca375c VZ |
25 | wxGenericTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); } |
26 | virtual ~wxGenericTimerImpl(); | |
32b8ec41 | 27 | |
ca65c044 | 28 | virtual bool Start(int millisecs = -1, bool oneShot = false); |
1acd70f9 | 29 | virtual void Stop(); |
32b8ec41 | 30 | |
1acd70f9 | 31 | virtual bool IsRunning() const; |
32b8ec41 | 32 | |
1acd70f9 VS |
33 | // implementation |
34 | static void NotifyTimers(); | |
32b8ec41 | 35 | |
1acd70f9 VS |
36 | protected: |
37 | void Init(); | |
32b8ec41 VZ |
38 | |
39 | private: | |
1acd70f9 | 40 | wxTimerDesc *m_desc; |
32b8ec41 VZ |
41 | }; |
42 | ||
c2ca375c | 43 | #endif // _WX_GENERIC_PRIVATE_TIMER_H_ |