]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/timer.cpp
Include wx/cmndata.h according to precompiled headers of wx/wx.h (with other minor...
[wxWidgets.git] / src / palmos / timer.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/palmos/timer.cpp
3 // Purpose: wxTimer implementation
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // For compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
14
15 #ifdef __BORLANDC__
16 #pragma hdrstop
17 #endif
18
19 #if wxUSE_TIMER
20
21 #include "wx/timer.h"
22
23 #ifndef WX_PRECOMP
24 #include "wx/list.h"
25 #include "wx/window.h"
26 #include "wx/event.h"
27 #include "wx/app.h"
28 #include "wx/intl.h"
29 #include "wx/log.h"
30 #endif
31
32 #include "wx/hashmap.h"
33
34 #include "wx/palmos/private.h"
35
36 // from utils.cpp
37 extern "C" WXDLLIMPEXP_BASE HWND
38 wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
39
40 // ----------------------------------------------------------------------------
41 // private globals
42 // ----------------------------------------------------------------------------
43
44 // define a hash containing all the timers: it is indexed by timer id and
45 // contains the corresponding timer
46 WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,
47 wxTimerMap);
48
49 static wxTimerMap g_timerMap;
50
51 // ----------------------------------------------------------------------------
52 // private functions
53 // ----------------------------------------------------------------------------
54
55 void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
56
57 // ----------------------------------------------------------------------------
58 // macros
59 // ----------------------------------------------------------------------------
60
61 IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
62
63 // ============================================================================
64 // implementation
65 // ============================================================================
66
67 // ----------------------------------------------------------------------------
68 // wxTimer class
69 // ----------------------------------------------------------------------------
70
71 void wxTimer::Init()
72 {
73 }
74
75 wxTimer::~wxTimer()
76 {
77 }
78
79 bool wxTimer::Start(int milliseconds, bool oneShot)
80 {
81 return false;
82 }
83
84 void wxTimer::Stop()
85 {
86 }
87
88 // ----------------------------------------------------------------------------
89 // private functions
90 // ----------------------------------------------------------------------------
91
92 void wxProcessTimer(wxTimer& timer)
93 {
94 }
95
96 void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
97 {
98 }
99
100 #endif // wxUSE_TIMER