]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/timer.cpp
Updating with Vadim's API changes.
[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 #include "wx/hashmap.h"
31 #endif
32
33 #include "wx/palmos/private.h"
34
35 // from utils.cpp
36 extern "C" WXDLLIMPEXP_BASE HWND
37 wxCreateHiddenWindow(LPCTSTR *pclassname, LPCTSTR classname, WNDPROC wndproc);
38
39 // ----------------------------------------------------------------------------
40 // private globals
41 // ----------------------------------------------------------------------------
42
43 // define a hash containing all the timers: it is indexed by timer id and
44 // contains the corresponding timer
45 WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,
46 wxTimerMap);
47
48 static wxTimerMap g_timerMap;
49
50 // ----------------------------------------------------------------------------
51 // private functions
52 // ----------------------------------------------------------------------------
53
54 void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
55
56 // ----------------------------------------------------------------------------
57 // macros
58 // ----------------------------------------------------------------------------
59
60 IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
61
62 // ============================================================================
63 // implementation
64 // ============================================================================
65
66 // ----------------------------------------------------------------------------
67 // wxTimer class
68 // ----------------------------------------------------------------------------
69
70 void wxTimer::Init()
71 {
72 }
73
74 wxTimer::~wxTimer()
75 {
76 }
77
78 bool wxTimer::Start(int milliseconds, bool oneShot)
79 {
80 return false;
81 }
82
83 void wxTimer::Stop()
84 {
85 }
86
87 // ----------------------------------------------------------------------------
88 // private functions
89 // ----------------------------------------------------------------------------
90
91 void wxProcessTimer(wxTimer& timer)
92 {
93 }
94
95 void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
96 {
97 }
98
99 #endif // wxUSE_TIMER