]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/palmos/private/timer.h
set m_isBeingDeleted to true (only) in SendDestroyEvent(); call it as early as possib...
[wxWidgets.git] / include / wx / palmos / private / timer.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/palmos/private/timer.h
3// Purpose: wxTimer class
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#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
15#include "wx/private/timer.h"
16
17class WXDLLIMPEXP_CORE wxPalmOSTimerImpl : public wxTimerImpl
18{
19friend void wxProcessTimer(wxTimer& timer);
20
21public:
22 wxPalmOSTimerImpl(wxTimer* timer) : wxTimerImpl(timer) { Init(); }
23 virtual ~wxPalmOSTimerImpl();
24
25 virtual bool Start(int milliseconds = -1, bool oneShot = FALSE);
26 virtual void Stop();
27
28 virtual bool IsRunning() const { return m_id != 0; }
29
30protected:
31 void Init();
32
33 unsigned long m_id;
34};
35
36#endif
37 // _WX_TIMERH_