]> git.saurik.com Git - wxWidgets.git/blame - src/mac/timer.cpp
wxSocekt now uses wxPostEvent.
[wxWidgets.git] / src / mac / timer.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: timer.cpp
3// Purpose: wxTimer implementation
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "timer.h"
14#endif
15
16#include "wx/timer.h"
17
e9576ca5 18IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
e9576ca5
SC
19
20wxTimer::wxTimer()
21{
22 m_milli = 0 ;
23 m_id = 0;
24 m_oneShot = FALSE;
25}
26
27wxTimer::~wxTimer()
28{
29 Stop();
30}
31
32bool wxTimer::Start(int milliseconds,bool mode)
33{
34 m_oneShot = mode ;
35 if (milliseconds <= 0)
36 return FALSE;
37
38 m_milli = milliseconds;
39
40 // TODO: set the timer going.
41 return FALSE;
42}
43
44void wxTimer::Stop()
45{
46 m_id = 0 ;
47 m_milli = 0 ;
48}
49
50