]>
Commit | Line | Data |
---|---|---|
0e320a79 DW |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: timer.cpp | |
3 | // Purpose: wxTimer implementation | |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "timer.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/timer.h" | |
17 | ||
18 | #if !USE_SHARED_LIBRARY | |
19 | IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject) | |
20 | #endif | |
21 | ||
22 | wxTimer::wxTimer() | |
23 | { | |
24 | m_milli = 0 ; | |
25 | m_id = 0; | |
26 | m_oneShot = FALSE; | |
27 | } | |
28 | ||
29 | wxTimer::~wxTimer() | |
30 | { | |
31 | Stop(); | |
32 | } | |
33 | ||
34 | bool wxTimer::Start(int milliseconds,bool mode) | |
35 | { | |
36 | m_oneShot = mode ; | |
37 | if (milliseconds <= 0) | |
38 | return FALSE; | |
39 | ||
40 | m_milli = milliseconds; | |
41 | ||
42 | // TODO: set the timer going. | |
43 | return FALSE; | |
44 | } | |
45 | ||
46 | void wxTimer::Stop() | |
47 | { | |
48 | m_id = 0 ; | |
49 | m_milli = 0 ; | |
50 | } | |
51 | ||
52 |