macosx_timer.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * macosx_timer.hpp
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: 29d59f9431b6781fc087225f39b499795bf96d25 $
00006  *
00007  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License along
00020  * with this program; if not, write to the Free Software Foundation, Inc.,
00021  * 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef MACOSX_TIMER_HPP
00025 #define MACOSX_TIMER_HPP
00026 
00027 #include "../src/os_timer.hpp"
00028 
00029 // Forward declaration
00030 class MacOSXTimerLoop;
00031 class CmdGeneric;
00032 
00033 
00034 // MacOSX specific timer
00035 class MacOSXTimer: public OSTimer
00036 {
00037 public:
00038     MacOSXTimer( intf_thread_t *pIntf, CmdGeneric &rCmd );
00039     virtual ~MacOSXTimer();
00040 
00041     /// (Re)start the timer with the given delay (in ms). If oneShot is
00042     /// true, stop it after the first execution of the callback.
00043     virtual void start( int delay, bool oneShot );
00044 
00045     /// Stop the timer
00046     virtual void stop();
00047 
00048 private:
00049     /// Command to execute
00050     CmdGeneric &m_rCommand;
00051 };
00052 
00053 
00054 #endif

Generated on Tue May 25 08:04:58 2010 for VLC by  doxygen 1.5.6