]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/timer.cpp
another compile problem fixed
[wxWidgets.git] / src / stubs / timer.cpp
CommitLineData
93cf77c0
JS
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
93cf77c0 18IMPLEMENT_ABSTRACT_CLASS(wxTimer, wxObject)
93cf77c0
JS
19
20wxTimer::wxTimer()
21{
22 m_milli = 0 ;
93cf77c0
JS
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 ;
34138703 35 if (milliseconds <= 0)
93cf77c0
JS
36 return FALSE;
37
34138703 38 m_milli = milliseconds;
93cf77c0
JS
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