• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/classic/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        timer.h
3// Purpose:     wxTimer class
4// Author:      Stefan Csomor
5// Modified by:
6// Created:     1998-01-01
7// RCS-ID:      $Id: timer.h 41020 2006-09-05 20:47:48Z VZ $
8// Copyright:   (c) Stefan Csomor
9// Licence:     wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_TIMER_H_
13#define _WX_TIMER_H_
14
15#include "wx/object.h"
16#include "wx/mac/macnotfy.h"
17
18class wxTimer ;
19
20struct MacTimerInfo ;
21
22class WXDLLEXPORT wxTimer: public wxTimerBase
23{
24public:
25    wxTimer() { Init(); }
26    wxTimer(wxEvtHandler *owner, int id = -1) : wxTimerBase(owner, id) { Init(); }
27    virtual ~wxTimer();
28
29    virtual bool Start(int milliseconds = -1,
30                       bool one_shot = FALSE); // Start timer
31    virtual void Stop();                       // Stop timer
32
33    virtual bool IsRunning() const ;
34
35    MacTimerInfo* m_info;
36protected :
37    void Init();
38private:
39
40    DECLARE_ABSTRACT_CLASS(wxTimer)
41};
42
43#endif
44    // _WX_TIMER_H_
45