]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/timer.cpp
disallow creation of wxDC objects and made wxDC an ABC; use wxDCTemp instead of wxDC...
[wxWidgets.git] / src / palmos / timer.cpp
... / ...
CommitLineData
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#ifndef WX_PRECOMP
22 #include "wx/window.h"
23 #include "wx/list.h"
24 #include "wx/event.h"
25 #include "wx/app.h"
26 #include "wx/intl.h"
27 #include "wx/log.h"
28#endif
29
30#include "wx/hashmap.h"
31
32#include "wx/timer.h"
33
34#include "wx/palmos/private.h"
35
36// from utils.cpp
37extern "C" WXDLLIMPEXP_BASE HWND
38wxCreateHiddenWindow(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
46WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,
47 wxTimerMap);
48
49static wxTimerMap g_timerMap;
50
51// ----------------------------------------------------------------------------
52// private functions
53// ----------------------------------------------------------------------------
54
55void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
56
57// ----------------------------------------------------------------------------
58// macros
59// ----------------------------------------------------------------------------
60
61IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
62
63// ============================================================================
64// implementation
65// ============================================================================
66
67// ----------------------------------------------------------------------------
68// wxTimer class
69// ----------------------------------------------------------------------------
70
71void wxTimer::Init()
72{
73}
74
75wxTimer::~wxTimer()
76{
77}
78
79bool wxTimer::Start(int milliseconds, bool oneShot)
80{
81 return false;
82}
83
84void wxTimer::Stop()
85{
86}
87
88// ----------------------------------------------------------------------------
89// private functions
90// ----------------------------------------------------------------------------
91
92void wxProcessTimer(wxTimer& timer)
93{
94}
95
96void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
97{
98}
99
100#endif // wxUSE_TIMER
101