]> git.saurik.com Git - wxWidgets.git/blob - include/wx/motif/private/timer.h
Remove all lines containing cvs/svn "$Id$" keyword.
[wxWidgets.git] / include / wx / motif / private / timer.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/private/timer.h
3 // Purpose: wxTimer class
4 // Author: Julian Smart
5 // Created: 17/09/98
6 // Copyright: (c) Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_MOTIF_PRIVATE_TIMER_H_
11 #define _WX_MOTIF_PRIVATE_TIMER_H_
12
13 #include "wx/private/timer.h"
14
15 class WXDLLIMPEXP_CORE wxMotifTimerImpl : public wxTimerImpl
16 {
17 public:
18 wxMotifTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { m_id = 0; }
19 virtual ~wxMotifTimerImpl();
20
21 virtual bool Start(int milliseconds = -1, bool oneShot = false);
22 virtual void Stop();
23 virtual bool IsRunning() const { return m_id != 0; }
24
25 // override this to rearm the timer if necessary (i.e. if not one shot) as
26 // X timeouts are removed automatically when they expire
27 virtual void Notify();
28
29 protected:
30 // common part of Start() and Notify()
31 void DoStart();
32
33 long m_id;
34 };
35
36 #endif // _WX_MOTIF_PRIVATE_TIMER_H_