]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/timer.cpp
Declare namespace std {} before using namespace std; for MetroWerks
[wxWidgets.git] / src / palmos / timer.cpp
CommitLineData
ffecfa5a
JS
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
41extern "C" WXDLLIMPEXP_BASE HWND
42wxCreateHiddenWindow(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
50WX_DECLARE_HASH_MAP(unsigned long, wxTimer *, wxIntegerHash, wxIntegerEqual,
51 wxTimerMap);
52
53static wxTimerMap g_timerMap;
54
55// ----------------------------------------------------------------------------
56// private functions
57// ----------------------------------------------------------------------------
58
59void WINAPI wxTimerProc(HWND hwnd, WORD, int idTimer, DWORD);
60
61// ----------------------------------------------------------------------------
62// macros
63// ----------------------------------------------------------------------------
64
65IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxEvtHandler)
66
67// ============================================================================
68// implementation
69// ============================================================================
70
71// ----------------------------------------------------------------------------
72// wxTimer class
73// ----------------------------------------------------------------------------
74
75void wxTimer::Init()
76{
77}
78
79wxTimer::~wxTimer()
80{
81}
82
83bool wxTimer::Start(int milliseconds, bool oneShot)
84{
85 return false;
86}
87
88void wxTimer::Stop()
89{
90}
91
92// ----------------------------------------------------------------------------
93// private functions
94// ----------------------------------------------------------------------------
95
96void wxProcessTimer(wxTimer& timer)
97{
98}
99
100void WINAPI wxTimerProc(HWND WXUNUSED(hwnd), WORD, int idTimer, DWORD)
101{
102}
103
104#endif // wxUSE_TIMER
105