]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/timer.h
SN: Don't include (non-existing) pmstddlg.h for EMX
[wxWidgets.git] / include / wx / os2 / timer.h
CommitLineData
0e320a79
DW
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.h
3// Purpose: wxTimer class
d90895ac 4// Author: David Webster
0e320a79 5// Modified by:
d90895ac 6// Created: 10/17/99
0e320a79 7// RCS-ID: $Id$
d90895ac
DW
8// Copyright: (c) David Webster
9// Licence: wxWindows licence
0e320a79
DW
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
0e320a79
DW
15#include "wx/object.h"
16
9ed0fac8 17class WXDLLEXPORT wxTimer: public wxTimerBase
0e320a79 18{
d90895ac
DW
19friend void wxProcessTimer(wxTimer& timer);
20
0e320a79
DW
21public:
22 wxTimer();
23 ~wxTimer();
24
9ed0fac8
DW
25 virtual bool Start( int nMilliseconds = -1
26 ,bool bOneShot = FALSE
27 );
28 virtual void Stop(void);
0e320a79 29
9ed0fac8 30 inline virtual bool IsRunning(void) const { return m_ulId != 0L; }
0e320a79
DW
31
32protected:
9ed0fac8
DW
33 ULONG m_ulId;
34 HAB m_Hab;
0e320a79
DW
35
36private:
37 DECLARE_ABSTRACT_CLASS(wxTimer)
38};
39
0e320a79
DW
40#endif
41 // _WX_TIMER_H_