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